#include <SUIT_SelectionMgr.h>

Signals | |
| void | selectionChanged () |
Public Member Functions | |
| SUIT_SelectionMgr (const bool=true, QObject *=0) | |
| virtual | ~SUIT_SelectionMgr () |
| void | clearSelected () |
| virtual void | selected (SUIT_DataOwnerPtrList &, const QString &=QString()) const |
| virtual void | setSelected (const SUIT_DataOwnerPtrList &, const bool=false) |
| void | selectors (QList< SUIT_Selector * > &) const |
| void | selectors (const QString &, QList< SUIT_Selector * > &) const |
| void | setEnabled (const bool, const QString &=QString()) |
| bool | hasSelectionMode (const int) const |
| void | selectionModes (QList< int > &) const |
| void | setSelectionModes (const int) |
| virtual void | setSelectionModes (const QList< int > &) |
| void | appendSelectionModes (const int) |
| virtual void | appendSelectionModes (const QList< int > &) |
| void | removeSelectionModes (const int) |
| virtual void | removeSelectionModes (const QList< int > &) |
| bool | isOk (const SUIT_DataOwner *) const |
| bool | isOk (const SUIT_DataOwnerPtr &) const |
| bool | hasFilter (SUIT_SelectionFilter *) const |
| virtual void | installFilter (SUIT_SelectionFilter *, const bool=true) |
| virtual void | removeFilter (SUIT_SelectionFilter *) |
| virtual void | clearFilters () |
| bool | autoDeleteFilter () const |
| void | setAutoDeleteFilter (const bool) |
| bool | isSynchronizing () const |
Protected Member Functions | |
| virtual void | selectionChanged (SUIT_Selector *) |
| virtual void | installSelector (SUIT_Selector *) |
| virtual void | removeSelector (SUIT_Selector *) |
Private Types | |
| typedef QList< SUIT_Selector * > | SelectorList |
| typedef QList < SUIT_SelectionFilter * > | SelFilterList |
Private Member Functions | |
| void | filterOwners (const SUIT_DataOwnerPtrList &, SUIT_DataOwnerPtrList &) const |
Private Attributes | |
| SelFilterList | myFilters |
| QList< int > | mySelModes |
| SelectorList | mySelectors |
| int | myIterations |
| bool | myAutoDelFilter |
| bool | myIsSelChangeEnabled |
Friends | |
| class | SUIT_Selector |
Provide selection manager. Manipulate by selection filters, modes, data owners.
typedef QList<SUIT_Selector*> SUIT_SelectionMgr.SelectorList [private] |
typedef QList<SUIT_SelectionFilter*> SUIT_SelectionMgr.SelFilterList [private] |
| SUIT_SelectionMgr::SUIT_SelectionMgr | ( | const bool | Feedback = true, |
| QObject * | p = 0 |
||
| ) |
constructor. initialize myIterations and myIsSelChangeEnabled.
| SUIT_SelectionMgr::~SUIT_SelectionMgr | ( | ) | [virtual] |
destructor. mySelectors auto delete.
References mySelectors.
| void SUIT_SelectionMgr::clearSelected | ( | ) |
Clear selected data owners.
References setSelected().
| void SUIT_SelectionMgr::selected | ( | SUIT_DataOwnerPtrList & | lst, |
| const QString & | type = QString() |
||
| ) | const [virtual] |
Gets selected data owners from list with type type to list lst.
References SUIT_DataOwnerPtrList.append(), SUIT_DataOwnerPtrList.clear(), and mySelectors.
| void SUIT_SelectionMgr::setSelected | ( | const SUIT_DataOwnerPtrList & | lst, |
| const bool | append = false |
||
| ) | [virtual] |
Sets selected data owners from lst and append to list, if append - true.
References SUIT_DataOwnerPtrList.append(), filterOwners(), and mySelectors.
| void SUIT_SelectionMgr::selectors | ( | QList< SUIT_Selector * > & | lst | ) | const |
Gets selectors list to lst.
References mySelectors.
| void SUIT_SelectionMgr::selectors | ( | const QString & | typ, |
| QList< SUIT_Selector * > & | lst | ||
| ) | const |
Gets selectors list to lst with type typ.
References mySelectors.
| void SUIT_SelectionMgr::setEnabled | ( | const bool | on, |
| const QString & | typ = QString() |
||
| ) |
Sets ebabled to on for all data owners with type typ.
References mySelectors.
| bool SUIT_SelectionMgr::hasSelectionMode | ( | const int | mode | ) | const |
Checks: Is selection manager has selection mode mode?
References mySelModes.
| void SUIT_SelectionMgr::selectionModes | ( | QList< int > & | vals | ) | const |
Gets selection modes to list vals.
References mySelModes.
| void SUIT_SelectionMgr::setSelectionModes | ( | const int | mode | ) |
Set selection mode mode to list of selection modes.
| void SUIT_SelectionMgr::setSelectionModes | ( | const QList< int > & | lst | ) | [virtual] |
Sets selection modes list from lst.
References mySelModes.
| void SUIT_SelectionMgr::appendSelectionModes | ( | const int | mode | ) |
Append selection mode mode to list of selection modes.
| void SUIT_SelectionMgr::appendSelectionModes | ( | const QList< int > & | lst | ) | [virtual] |
Append selection modes lst list.
References mySelModes.
| void SUIT_SelectionMgr::removeSelectionModes | ( | const int | mode | ) |
Remove selection mode mode from list.
| void SUIT_SelectionMgr::removeSelectionModes | ( | const QList< int > & | lst | ) | [virtual] |
Remove selection modea lst from list.
References mySelModes.
| bool SUIT_SelectionMgr::isOk | ( | const SUIT_DataOwner * | owner | ) | const |
Checks data owner is ok?
References myFilters.
| bool SUIT_SelectionMgr::isOk | ( | const SUIT_DataOwnerPtr & | ptr | ) | const |
Checks data owner pointer is ok?
References SmartPtr< T >.isNull(), and isOk().
| bool SUIT_SelectionMgr::hasFilter | ( | SUIT_SelectionFilter * | f | ) | const |
Checks selection manager has filter f?
References myFilters.
| void SUIT_SelectionMgr::installFilter | ( | SUIT_SelectionFilter * | f, |
| const bool | updateSelection = true |
||
| ) | [virtual] |
Install filter f and set selected, if update = true.
References hasFilter(), myFilters, selected(), and setSelected().
| void SUIT_SelectionMgr::removeFilter | ( | SUIT_SelectionFilter * | f | ) | [virtual] |
Remove filter f from filters list.
References autoDeleteFilter(), and myFilters.
| void SUIT_SelectionMgr::clearFilters | ( | ) | [virtual] |
Clear filters list.
References autoDeleteFilter(), and myFilters.
| bool SUIT_SelectionMgr::autoDeleteFilter | ( | ) | const |
Sets auto delete filter.
References myAutoDelFilter.
| void SUIT_SelectionMgr::setAutoDeleteFilter | ( | const bool | on | ) |
Sets auto delete filter to on.
References myAutoDelFilter.
| bool SUIT_SelectionMgr::isSynchronizing | ( | ) | const |
Returns true if selection manger is in synchronising mode (during synchonisation of the selectors selection).
References myIsSelChangeEnabled.
| void SUIT_SelectionMgr.selectionChanged | ( | ) | [signal] |
| void SUIT_SelectionMgr::selectionChanged | ( | SUIT_Selector * | sel | ) | [protected, virtual] |
On selection sel changed.
Reimplemented in LightApp_SelectionMgr.
References filterOwners(), SUIT_Selector.isEnabled(), myIsSelChangeEnabled, myIterations, mySelectors, SUIT_Selector.selected(), and selectionChanged().
| void SUIT_SelectionMgr::installSelector | ( | SUIT_Selector * | sel | ) | [protected, virtual] |
Add selector sel to selectors list,if it's not exists in list.
References mySelectors.
| void SUIT_SelectionMgr::removeSelector | ( | SUIT_Selector * | sel | ) | [protected, virtual] |
Remove selector sel from list.
References mySelectors.
| void SUIT_SelectionMgr::filterOwners | ( | const SUIT_DataOwnerPtrList & | in, |
| SUIT_DataOwnerPtrList & | out | ||
| ) | const [private] |
Gets good data owners list to out from in.
References SUIT_DataOwnerPtrList.append(), SUIT_DataOwnerPtrList.clear(), and isOk().
friend class SUIT_Selector [friend] |
SelFilterList SUIT_SelectionMgr.myFilters [private] |
QList<int> SUIT_SelectionMgr.mySelModes [private] |
SelectorList SUIT_SelectionMgr.mySelectors [private] |
int SUIT_SelectionMgr.myIterations [private] |
bool SUIT_SelectionMgr.myAutoDelFilter [private] |
bool SUIT_SelectionMgr.myIsSelChangeEnabled [private] |