Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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_TextTreeWdg theWidget,
GEOMGUI_AnnotationMgr theAnnotationMgr,
SUIT_SelectionMgr *  theManager 
)
Parameters
widgettext tree widget
theManagerselection manager

References myTextTree, and onSelectionChanged().

GEOMGUI_TextTreeSelector::~GEOMGUI_TextTreeSelector ( )
virtual

Member Function Documentation

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 anIndices, anIO, GEOMGUI_TextTreeWdg::getSelected(), Handle(), myAnnotationMgr, mySelectedList, and myTextTree.

void GEOMGUI_TextTreeSelector::onSelectionChanged ( )
privateslot

References mySelectedList.

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

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

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

References myTextTree.

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

Member Data Documentation

GEOMGUI_AnnotationMgr* GEOMGUI_TextTreeSelector::myAnnotationMgr
private
SUIT_DataOwnerPtrList GEOMGUI_TextTreeSelector::mySelectedList
private
GEOMGUI_TextTreeWdg* GEOMGUI_TextTreeSelector::myTextTree
private

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