20 #ifndef XGUI_ActiveControlSelector_H
21 #define XGUI_ActiveControlSelector_H
43 XGUI_EXPORT
virtual QString
getType() = 0;
46 XGUI_EXPORT
virtual void reset() {}
58 XGUI_EXPORT
virtual void setActive(
const bool& isActive) = 0;
Interface to have an active control and process selection by the control.
Definition: XGUI_ActiveControlSelector.h:32
virtual QString getType()=0
Returns name of the selector.
XGUI_ActiveControlSelector()
Constructor.
Definition: XGUI_ActiveControlSelector.h:38
virtual void processSelection()=0
Processes current selection of workshop. Reaction to selection change in workshop.
virtual void reset()
Clear need to be activated widget if it exists.
Definition: XGUI_ActiveControlSelector.h:46
bool myIsEnabled
enable state of the selector
Definition: XGUI_ActiveControlSelector.h:74
void deactivated()
control is deactivated
void activated()
control is activated
void setEnable(const bool &theEnabled)
Sets enable/disable state of the selector.
Definition: XGUI_ActiveControlSelector.h:50
bool isEnabled() const
Returns whether the selector is enabled or not.
Definition: XGUI_ActiveControlSelector.h:54
virtual ~XGUI_ActiveControlSelector()
Destructor.
Definition: XGUI_ActiveControlSelector.h:40
virtual bool needToBeActivated() const
Returns whether the selector should be activated as soon as possible (by deactivatate other)
Definition: XGUI_ActiveControlSelector.h:62
virtual void setActive(const bool &isActive)=0
Sets control active.