SHAPER  9.12.0
XGUI_PropertyPanelSelector Class Reference

Processing selection by the property panel. More...

Inheritance diagram for XGUI_PropertyPanelSelector:
Inheritance graph

Signals

void activated ()
 control is activated More...
 
void deactivated ()
 control is deactivated More...
 

Public Member Functions

 XGUI_PropertyPanelSelector (XGUI_PropertyPanel *thePanel)
 Constructor. More...
 
virtual ~XGUI_PropertyPanelSelector ()
 Destructor. More...
 
virtual QString getType ()
 Returns name of the selector. More...
 
virtual void reset ()
 Clear need to be activated widget if it exists. More...
 
virtual void setActive (const bool &isActive)
 Sets control active. More...
 
virtual bool needToBeActivated () const
 Returns whether the selector should be activated as soon as possible (by deactivatate other) More...
 
virtual void processSelection ()
 Processes current selection of workshop. Reaction to selection change in workshop. More...
 
void setEnable (const bool &theEnabled)
 Sets enable/disable state of the selector. More...
 
bool isEnabled () const
 Returns whether the selector is enabled or not. More...
 

Static Public Member Functions

static QString Type ()
 Returns name of the selector. More...
 

Protected Attributes

XGUI_PropertyPanelmyPanel
 processed panel More...
 
ModuleBase_ModelWidgetmyWidgetToBeActivated
 used as need to be activated back More...
 
bool myIsEnabled
 enable state of the selector More...
 

Detailed Description

Processing selection by the property panel.

Constructor & Destructor Documentation

◆ XGUI_PropertyPanelSelector()

XGUI_PropertyPanelSelector::XGUI_PropertyPanelSelector ( XGUI_PropertyPanel thePanel)

Constructor.

Parameters
thePanelthe workshop property panel

◆ ~XGUI_PropertyPanelSelector()

virtual XGUI_PropertyPanelSelector::~XGUI_PropertyPanelSelector ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ Type()

static QString XGUI_PropertyPanelSelector::Type ( )
inlinestatic

Returns name of the selector.

◆ getType()

virtual QString XGUI_PropertyPanelSelector::getType ( )
inlinevirtual

Returns name of the selector.

Implements XGUI_ActiveControlSelector.

◆ reset()

void XGUI_PropertyPanelSelector::reset ( )
virtual

Clear need to be activated widget if it exists.

Reimplemented from XGUI_ActiveControlSelector.

◆ setActive()

void XGUI_PropertyPanelSelector::setActive ( const bool &  isActive)
virtual

Sets control active.

It should activates/deactivates selection and selection filters.

Parameters
isActiveif true, the control becomes active

Implements XGUI_ActiveControlSelector.

◆ needToBeActivated()

bool XGUI_PropertyPanelSelector::needToBeActivated ( ) const
virtual

Returns whether the selector should be activated as soon as possible (by deactivatate other)

Returns
boolean result

Reimplemented from XGUI_ActiveControlSelector.

◆ processSelection()

void XGUI_PropertyPanelSelector::processSelection ( )
virtual

Processes current selection of workshop. Reaction to selection change in workshop.

Implements XGUI_ActiveControlSelector.

◆ setEnable()

void XGUI_ActiveControlSelector::setEnable ( const bool &  theEnabled)
inlineinherited

Sets enable/disable state of the selector.

If disable, it will not react to selection

Parameters
theEnabledif true, selector is enabled

◆ isEnabled()

bool XGUI_ActiveControlSelector::isEnabled ( ) const
inlineinherited

Returns whether the selector is enabled or not.

Returns
boolean result

◆ activated

void XGUI_ActiveControlSelector::activated ( )
signalinherited

control is activated

◆ deactivated

void XGUI_ActiveControlSelector::deactivated ( )
signalinherited

control is deactivated

Field Documentation

◆ myPanel

XGUI_PropertyPanel* XGUI_PropertyPanelSelector::myPanel
protected

processed panel

◆ myWidgetToBeActivated

ModuleBase_ModelWidget* XGUI_PropertyPanelSelector::myWidgetToBeActivated
protected

used as need to be activated back

◆ myIsEnabled

bool XGUI_ActiveControlSelector::myIsEnabled
protectedinherited

enable state of the selector