Object browser selection handler class.
#include <LightApp_OBSelector.h>

Public Member Functions | |
| LightApp_OBSelector (SUIT_DataBrowser *, SUIT_SelectionMgr *) | |
| Constructor. | |
| virtual | ~LightApp_OBSelector () |
| Destructor. | |
| SUIT_DataBrowser * | browser () const |
| Get object browser. | |
| virtual QString | type () const |
| Get selector type. | |
| unsigned long | getModifiedTime () const |
| Get the time of the last selection changing. | |
| void | setModified () |
| Update the time of the latest selection changing. | |
| SUIT_SelectionMgr * | selectionMgr () 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 |
Protected Member Functions | |
| virtual void | getSelection (SUIT_DataOwnerPtrList &) const |
| Get list of currently selected objects. | |
| virtual void | setSelection (const SUIT_DataOwnerPtrList &) |
| Set selection. | |
| void | selectionChanged () |
Private Slots | |
| void | onSelectionChanged () |
| Called when the Object browser selection is changed. | |
Private Member Functions | |
| void | fillEntries (QMap< QString, LightApp_DataObject * > &) |
| Fill map of the data objects currently shown in the Object Browser. | |
Private Attributes | |
| SUIT_DataBrowser * | myBrowser |
| SUIT_DataOwnerPtrList | mySelectedList |
| QMap< QString, LightApp_DataObject * > | myEntries |
| unsigned long | myModifiedTime |
| LightApp_OBSelector::LightApp_OBSelector | ( | SUIT_DataBrowser * | ob, |
| SUIT_SelectionMgr * | mgr | ||
| ) |
| ob | object browser |
| mgr | selection manager |
References myBrowser, onSelectionChanged(), SUIT_Selector.selectionChanged(), and setModified().
| LightApp_OBSelector::~LightApp_OBSelector | ( | ) | [virtual] |
| SUIT_DataBrowser * LightApp_OBSelector::browser | ( | ) | const |
References myBrowser.
| QString LightApp_OBSelector::type | ( | ) | const [virtual] |
Implements SUIT_Selector.
| unsigned long LightApp_OBSelector::getModifiedTime | ( | ) | const |
References myModifiedTime.
| void LightApp_OBSelector::setModified | ( | ) |
References myModifiedTime.
| void LightApp_OBSelector::onSelectionChanged | ( | ) | [private, slot] |
References SUIT_DataOwnerPtrList.clear(), mySelectedList, and SUIT_Selector.selectionChanged().
| void LightApp_OBSelector::getSelection | ( | SUIT_DataOwnerPtrList & | theList | ) | const [protected, virtual] |
| theList | list to be filled with the selected objects owners |
Implements SUIT_Selector.
References SUIT_Session.activeApplication(), SUIT_DataOwnerPtrList.append(), LightApp_Application.checkDataObject(), LightApp_DataObject.componentDataType(), LightApp_DataObject.entry(), SUIT_DataBrowser.getSelected(), Handle(), myBrowser, mySelectedList, SUIT_DataObject.name(), PyInterp.obj, and SUIT_Session.session().
| void LightApp_OBSelector::setSelection | ( | const SUIT_DataOwnerPtrList & | theList | ) | [protected, virtual] |
| theList | list of the object owners to be set selected |
Implements SUIT_Selector.
References SUIT_DataOwnerPtrList.clear(), LightApp_DataOwner.entry(), fillEntries(), OB_Browser.getModifiedTime(), myBrowser, myEntries, myModifiedTime, mySelectedList, and SUIT_DataBrowser.setSelected().
| void LightApp_OBSelector::fillEntries | ( | QMap< QString, LightApp_DataObject * > & | entries | ) | [private] |
| entries | map to be filled |
References SUIT_DataObjectIterator.current(), SUIT_DataObjectIterator.DepthLeft, LightApp_DataObject.entry(), myBrowser, PyInterp.obj, SUIT_DataBrowser.root(), and setModified().
| SUIT_SelectionMgr * SUIT_Selector::selectionMgr | ( | ) | const [inherited] |
Gets selection manager.
References SUIT_Selector.mySelMgr.
| bool SUIT_Selector::isEnabled | ( | ) | const [inherited] |
Checks: Is selctor enabled?
References SUIT_Selector.myEnabled.
| void SUIT_Selector::setEnabled | ( | const bool | on | ) | [virtual, inherited] |
Sets selctor anbled to on.
References SUIT_Selector.myEnabled.
| bool SUIT_Selector::autoBlock | ( | ) | const [inherited] |
Checks: Is selector auto block?
References SUIT_Selector.myAutoBlock.
| void SUIT_Selector::setAutoBlock | ( | const bool | on | ) | [virtual, inherited] |
Sets selctor autoblock to on.
References SUIT_Selector.myAutoBlock.
| void SUIT_Selector::selected | ( | SUIT_DataOwnerPtrList & | lst | ) | const [inherited] |
Puts to lst selection list of data owners.
References SUIT_DataOwnerPtrList.clear(), and SUIT_Selector.getSelection().
| void SUIT_Selector::setSelected | ( | const SUIT_DataOwnerPtrList & | lst | ) | [inherited] |
Puts to selection list of data owners lst..
References SUIT_Selector.isEnabled(), SUIT_Selector.myBlock, and SUIT_Selector.setSelection().
| bool SUIT_Selector::hasSelectionMode | ( | const int | mode | ) | const [inherited] |
Checks: Is selection manager has selection mode mode?
References SUIT_SelectionMgr.hasSelectionMode(), and SUIT_Selector.selectionMgr().
| void SUIT_Selector::selectionModes | ( | QList< int > & | lst | ) | const [inherited] |
Puts to list lst selection modes from selection manager.
References SUIT_Selector.selectionMgr(), and SUIT_SelectionMgr.selectionModes().
| void SUIT_Selector::selectionChanged | ( | ) | [protected, inherited] |
On selection changed.
References SUIT_Selector.autoBlock(), SUIT_Selector.isEnabled(), SUIT_Selector.myBlock, SUIT_SelectionMgr.selectionChanged(), and SUIT_Selector.selectionMgr().
SUIT_DataBrowser* LightApp_OBSelector.myBrowser [private] |
QMap<QString, LightApp_DataObject*> LightApp_OBSelector.myEntries [private] |
unsigned long LightApp_OBSelector.myModifiedTime [private] |