20 #ifndef XGUI_ActiveControlMgr_H
21 #define XGUI_ActiveControlMgr_H
Class which provides access to Workshop object services.
Definition: ModuleBase_IWorkshop.h:48
Interface of providing only one active control for workshop.
Definition: XGUI_ActiveControlMgr.h:38
void onSelectionChanged()
Listens workshop selection and pass it to the active selector.
Definition: XGUI_ActiveControlMgr.cpp:131
ModuleBase_IWorkshop * myWorkshop
the current workshop
Definition: XGUI_ActiveControlMgr.h:73
XGUI_ActiveControlSelector * myActiveSelector
active selector
Definition: XGUI_ActiveControlMgr.h:76
XGUI_ActiveControlMgr(ModuleBase_IWorkshop *theWorkshop)
Constructor.
Definition: XGUI_ActiveControlMgr.cpp:41
QList< XGUI_ActiveControlSelector * > mySelectors
workshop selectors
Definition: XGUI_ActiveControlMgr.h:75
void addSelector(XGUI_ActiveControlSelector *theSelector)
Register selector to process activation of control.
Definition: XGUI_ActiveControlMgr.cpp:48
XGUI_ActiveControlSelector * activeSelector() const
Returns the active selector.
Definition: XGUI_ActiveControlMgr.h:57
bool myIsBlocked
blocking flag to avoid cycling signals processing
Definition: XGUI_ActiveControlMgr.h:78
void onSelectorDeactivated()
Deactivate the active selector.
Definition: XGUI_ActiveControlMgr.cpp:93
XGUI_ActiveControlSelector * getSelector(const QString &theType)
Returns selector by type name.
Definition: XGUI_ActiveControlMgr.cpp:56
void onSelectorActivated()
Deactivates active selector and set the sender selector as active.
Definition: XGUI_ActiveControlMgr.cpp:70
Interface to have an active control and process selection by the control.
Definition: XGUI_ActiveControlSelector.h:32