#include <SUIT_Selector.h>
Classes | |
class | Destroyer |
Public Member Functions | |
SUIT_Selector (SUIT_SelectionMgr *, QObject *=0) | |
virtual | ~SUIT_Selector () |
virtual QString | type () const =0 |
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 |
QObject * | owner () const |
Protected Member Functions | |
void | selectionChanged () |
virtual void | getSelection (SUIT_DataOwnerPtrList &) const =0 |
virtual void | setSelection (const SUIT_DataOwnerPtrList &)=0 |
Private Attributes | |
SUIT_SelectionMgr * | mySelMgr |
bool | myBlock |
bool | myEnabled |
bool | myAutoBlock |
Destroyer * | myDestroyer |
Class provide selector for data owners.
Base class for all selectors used in SUIT-based applications. Provides functionality to get/set selection from/into some widget (ObjectBrowser, viewers, etc) Used by selection manager for selection synhronizing
SUIT_Selector::SUIT_Selector | ( | SUIT_SelectionMgr * | selMgr, |
QObject * | parent = 0 |
||
) |
Constructor.
References SUIT_SelectionMgr::installSelector(), and myDestroyer.
|
virtual |
Destructor.
References myDestroyer, SUIT_SelectionMgr::removeSelector(), selectionMgr(), SUIT_Selector::Destroyer::selector(), and SUIT_Selector::Destroyer::setSelector().
bool SUIT_Selector::autoBlock | ( | ) | const |
Checks: Is selector auto block?
References myAutoBlock.
|
protectedpure virtual |
bool SUIT_Selector::hasSelectionMode | ( | const int | mode | ) | const |
Checks: Is selection manager has selection mode mode?
References SUIT_SelectionMgr::hasSelectionMode(), and selectionMgr().
bool SUIT_Selector::isEnabled | ( | ) | const |
Checks: Is selctor enabled?
References myEnabled.
QObject * SUIT_Selector::owner | ( | ) | const |
Get owner of this selector.
References myDestroyer.
void SUIT_Selector::selected | ( | SUIT_DataOwnerPtrList & | lst | ) | const |
Puts to lst selection list of data owners.
References SUIT_DataOwnerPtrList::clear(), and getSelection().
|
protected |
On selection changed.
References autoBlock(), isEnabled(), myBlock, SUIT_SelectionMgr::selectionChanged(), and selectionMgr().
SUIT_SelectionMgr * SUIT_Selector::selectionMgr | ( | ) | const |
Gets selection manager.
References mySelMgr.
void SUIT_Selector::selectionModes | ( | QList< int > & | lst | ) | const |
Puts to list lst selection modes from selection manager.
References selectionMgr(), and SUIT_SelectionMgr::selectionModes().
|
virtual |
Sets selctor autoblock to on.
References myAutoBlock.
|
virtual |
Sets selctor anbled to on.
References myEnabled.
void SUIT_Selector::setSelected | ( | const SUIT_DataOwnerPtrList & | lst | ) |
Puts to selection list of data owners lst..
References isEnabled(), myBlock, and setSelection().
|
protectedpure virtual |
|
pure virtual |
|
private |
|
private |
|
private |
|
private |
|
private |