#include <SUIT_SelectionMgr.h>
Signals | |
void | selectionChanged () |
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.
|
private |
|
private |
constructor. initialize myIterations and myIsSelChangeEnabled.
|
virtual |
destructor. mySelectors auto delete.
References mySelectors.
void SUIT_SelectionMgr::appendSelectionModes | ( | const int | mode | ) |
Append selection mode mode to list of selection modes.
Append selection modes lst list.
References mySelModes.
bool SUIT_SelectionMgr::autoDeleteFilter | ( | ) | const |
Sets auto delete filter.
References myAutoDelFilter.
|
virtual |
Clear filters list.
References autoDeleteFilter(), and myFilters.
void SUIT_SelectionMgr::clearSelected | ( | ) |
Clear selected data owners.
References setSelected().
|
private |
Gets good data owners list to out from in.
References SUIT_DataOwnerPtrList::append(), SUIT_DataOwnerPtrList::clear(), and isOk().
bool SUIT_SelectionMgr::hasFilter | ( | SUIT_SelectionFilter * | f | ) | const |
Checks selection manager has filter f?
References myFilters.
bool SUIT_SelectionMgr::hasSelectionMode | ( | const int | mode | ) | const |
Checks: Is selection manager has selection mode mode?
References mySelModes.
|
virtual |
Install filter f and set selected, if update = true.
References hasFilter(), myFilters, selected(), and setSelected().
|
protectedvirtual |
Add selector sel to selectors list,if it's not exists in list.
References mySelectors.
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::isSynchronizing | ( | ) | const |
Returns true if selection manger is in synchronising mode (during synchonisation of the selectors selection).
References myIsSelChangeEnabled.
|
virtual |
Remove filter f from filters list.
References autoDeleteFilter(), and myFilters.
void SUIT_SelectionMgr::removeSelectionModes | ( | const int | mode | ) |
Remove selection mode mode from list.
Remove selection modea lst from list.
References mySelModes.
|
protectedvirtual |
Remove selector sel from list.
References mySelectors.
|
virtual |
Gets selected data owners from list with type type to list lst.
References SUIT_DataOwnerPtrList::append(), SUIT_DataOwnerPtrList::clear(), and mySelectors.
|
signal |
|
protectedvirtual |
On selection sel changed.
Reimplemented in LightApp_SelectionMgr.
References filterOwners(), SUIT_Selector::isEnabled(), myIsSelChangeEnabled, myIterations, mySelectors, SUIT_Selector::selected(), and selectionChanged().
void SUIT_SelectionMgr::selectionModes | ( | QList< int > & | vals | ) | const |
Gets selection modes to list vals.
References mySelModes.
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::setAutoDeleteFilter | ( | const bool | on | ) |
Sets auto delete filter to on.
References myAutoDelFilter.
Sets ebabled to on for all data owners with type typ.
References mySelectors.
|
virtual |
Sets selected data owners from lst and append to list, if append - true.
Reimplemented in LightApp_SelectionMgr.
References SUIT_DataOwnerPtrList::append(), filterOwners(), and mySelectors.
void SUIT_SelectionMgr::setSelectionModes | ( | const int | mode | ) |
Set selection mode mode to list of selection modes.
Sets selection modes list from lst.
References mySelModes.
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |