SHAPER
9.12.0
|
Interface of providing only one active control for workshop. More...
Public Member Functions | |
XGUI_ActiveControlMgr (ModuleBase_IWorkshop *theWorkshop) | |
Constructor. More... | |
void | addSelector (XGUI_ActiveControlSelector *theSelector) |
Register selector to process activation of control. More... | |
XGUI_ActiveControlSelector * | getSelector (const QString &theType) |
Returns selector by type name. More... | |
XGUI_ActiveControlSelector * | activeSelector () const |
Returns the active selector. More... | |
void | deactivateSelector (XGUI_ActiveControlSelector *theSelector) |
Protected Slots | |
void | onSelectorActivated () |
Deactivates active selector and set the sender selector as active. More... | |
void | onSelectorDeactivated () |
Deactivate the active selector. More... | |
void | onSelectionChanged () |
Listens workshop selection and pass it to the active selector. More... | |
Protected Member Functions | |
void | activateSelector (XGUI_ActiveControlSelector *theSelector) |
Protected Attributes | |
ModuleBase_IWorkshop * | myWorkshop |
the current workshop More... | |
QList< XGUI_ActiveControlSelector * > | mySelectors |
workshop selectors More... | |
XGUI_ActiveControlSelector * | myActiveSelector |
active selector More... | |
bool | myIsBlocked |
blocking flag to avoid cycling signals processing More... | |
Interface of providing only one active control for workshop.
It has container of selectors, where only one might be active at the moment. Selection in 3D view is processed by the active selector.
XGUI_ActiveControlMgr::XGUI_ActiveControlMgr | ( | ModuleBase_IWorkshop * | theWorkshop | ) |
Constructor.
theWorkshop | the current workshop instance |
void XGUI_ActiveControlMgr::addSelector | ( | XGUI_ActiveControlSelector * | theSelector | ) |
Register selector to process activation of control.
XGUI_ActiveControlSelector * XGUI_ActiveControlMgr::getSelector | ( | const QString & | theType | ) |
Returns selector by type name.
theType | a selector type |
|
inline |
Returns the active selector.
|
protectedslot |
Deactivates active selector and set the sender selector as active.
|
protectedslot |
Deactivate the active selector.
|
protectedslot |
Listens workshop selection and pass it to the active selector.
|
protected |
the current workshop
|
protected |
workshop selectors
|
protected |
active selector
|
protected |
blocking flag to avoid cycling signals processing