Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LightApp_OBSelector Class Reference

Object browser selection handler class.

#include <LightApp_OBSelector.h>

Inheritance diagram for LightApp_OBSelector:
Inheritance graph

Public Member Functions

 LightApp_OBSelector (SUIT_DataBrowser *, SUIT_SelectionMgr *)
 Constructor. More...
 
virtual ~LightApp_OBSelector ()
 Destructor. More...
 
SUIT_DataBrowserbrowser () const
 Get object browser. More...
 
virtual QString type () const
 Get selector type. More...
 
unsigned long getModifiedTime () const
 Get the time of the last selection changing. More...
 
void setModified ()
 Update the time of the latest selection changing. More...
 
- Public Member Functions inherited from SUIT_Selector
 SUIT_Selector (SUIT_SelectionMgr *, QObject *=0)
 
virtual ~SUIT_Selector ()
 
SUIT_SelectionMgrselectionMgr () const
 
bool isEnabled () const
 
virtual void setEnabled (const bool)
 
bool autoBlock () const
 
virtual void setAutoBlock (const bool)
 
void selected (SUIT_DataOwnerPtrList &) const
 
void setSelected (const SUIT_DataOwnerPtrList &)
 
bool hasSelectionMode (const int) const
 
void selectionModes (QList< int > &) const
 
QObjectowner () const
 

Protected Member Functions

virtual void getSelection (SUIT_DataOwnerPtrList &) const
 Get list of currently selected objects. More...
 
virtual void setSelection (const SUIT_DataOwnerPtrList &)
 Set selection. More...
 
- Protected Member Functions inherited from SUIT_Selector
void selectionChanged ()
 

Private Slots

void onSelectionChanged ()
 Called when the Object browser selection is changed. More...
 

Private Member Functions

void fillEntries (QMap< QString, LightApp_DataObject * > &)
 Fill map of the data objects currently shown in the Object Browser. More...
 

Private Attributes

SUIT_DataBrowsermyBrowser
 
SUIT_DataOwnerPtrList mySelectedList
 
QMap< QString,
LightApp_DataObject * > 
myEntries
 
unsigned long myModifiedTime
 

Constructor & Destructor Documentation

LightApp_OBSelector::LightApp_OBSelector ( SUIT_DataBrowser ob,
SUIT_SelectionMgr mgr 
)
Parameters
obobject browser
mgrselection manager

References myBrowser, onSelectionChanged(), SUIT_Selector::selectionChanged(), and setModified().

LightApp_OBSelector::~LightApp_OBSelector ( )
virtual

Member Function Documentation

SUIT_DataBrowser * LightApp_OBSelector::browser ( ) const
Returns
a pointer to the object browser

References myBrowser.

void LightApp_OBSelector::fillEntries ( QMap< QString, LightApp_DataObject * > &  entries)
private
unsigned long LightApp_OBSelector::getModifiedTime ( ) const
Returns
latest selection changing time

References myModifiedTime.

void LightApp_OBSelector::onSelectionChanged ( )
privateslot
void LightApp_OBSelector::setModified ( )

References myModifiedTime.

void LightApp_OBSelector::setSelection ( const SUIT_DataOwnerPtrList theList)
protectedvirtual
QString LightApp_OBSelector::type ( ) const
virtual
Returns
selector type

Implements SUIT_Selector.

Member Data Documentation

SUIT_DataBrowser* LightApp_OBSelector::myBrowser
private
QMap<QString, LightApp_DataObject*> LightApp_OBSelector::myEntries
private
unsigned long LightApp_OBSelector::myModifiedTime
private
SUIT_DataOwnerPtrList LightApp_OBSelector::mySelectedList
private

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