Version: 9.12.0
GEOMGUI_TextTreeSelector Class Reference

Text tree selection handler class. It provides selection synchronization between application and text tree widget. This selector listens item selection changed signal of text tree widget to emit common selection changed signal of SUIT selector to start selection synchronization. In get/setSelection selector processes annotation items. These items have specific entry generated in annotation manager, having the "object entry:annotation_id" structure.

#include <GEOMGUI_TextTreeSelector.h>

Inheritance diagram for GEOMGUI_TextTreeSelector:
Inheritance graph

Public Member Functions

 GEOMGUI_TextTreeSelector (GEOMGUI_TextTreeWdg *theWidget, GEOMGUI_AnnotationMgr *theAnnotationMgr, SUIT_SelectionMgr *theManager)
 Constructor. More...
 
virtual ~GEOMGUI_TextTreeSelector ()
 Destructor. More...
 
GEOMGUI_TextTreeWdgtextTree () const
 Get object browser. More...
 
virtual QString type () const
 Get selector unique type. More...
 

Protected Member Functions

virtual void getSelection (SUIT_DataOwnerPtrList &) const
 Get list of currently selected annotation objects. More...
 
virtual void setSelection (const SUIT_DataOwnerPtrList &)
 Set selection. More...
 

Private Slots

void onSelectionChanged ()
 Called when the Object browser selection is changed. It emits signal to synchronize selection in application. More...
 

Private Attributes

GEOMGUI_TextTreeWdgmyTextTree
 
GEOMGUI_AnnotationMgrmyAnnotationMgr
 
SUIT_DataOwnerPtrList mySelectedList
 

Constructor & Destructor Documentation

◆ GEOMGUI_TextTreeSelector()

GEOMGUI_TextTreeSelector::GEOMGUI_TextTreeSelector ( GEOMGUI_TextTreeWdg theWidget,
GEOMGUI_AnnotationMgr theAnnotationMgr,
SUIT_SelectionMgr *  theManager 
)
Parameters
widgettext tree widget
theManagerselection manager

References myTextTree, and onSelectionChanged().

◆ ~GEOMGUI_TextTreeSelector()

GEOMGUI_TextTreeSelector::~GEOMGUI_TextTreeSelector ( )
virtual

Member Function Documentation

◆ getSelection()

void GEOMGUI_TextTreeSelector::getSelection ( SUIT_DataOwnerPtrList &  theList) const
protectedvirtual
Parameters
theListlist to be filled with the selected objects owners The list contains owners for interactive objects of annotations

References GEOMGUI_TextTreeWdg::getSelected(), Handle(), myAnnotationMgr, mySelectedList, and myTextTree.

◆ onSelectionChanged

void GEOMGUI_TextTreeSelector::onSelectionChanged ( )
privateslot

References mySelectedList.

◆ setSelection()

void GEOMGUI_TextTreeSelector::setSelection ( const SUIT_DataOwnerPtrList &  theList)
protectedvirtual
Parameters
theListlist of the object owners to be set selected

References GEOMGUI_AnnotationMgr::GetEntrySeparator(), Handle(), mySelectedList, myTextTree, and GEOMGUI_TextTreeWdg::setSelected().

◆ textTree()

GEOMGUI_TextTreeWdg * GEOMGUI_TextTreeSelector::textTree ( ) const
Returns
a pointer to the text tree widget

References myTextTree.

◆ type()

QString GEOMGUI_TextTreeSelector::type ( ) const
virtual
Returns
selector type

Member Data Documentation

◆ myAnnotationMgr

GEOMGUI_AnnotationMgr* GEOMGUI_TextTreeSelector::myAnnotationMgr
private

◆ mySelectedList

SUIT_DataOwnerPtrList GEOMGUI_TextTreeSelector::mySelectedList
private

◆ myTextTree

GEOMGUI_TextTreeWdg* GEOMGUI_TextTreeSelector::myTextTree
private

The documentation for this class was generated from the following files: