SHAPER  9.12.0
SamplePanelPlugin_Panel Class Reference
Inheritance diagram for SamplePanelPlugin_Panel:
Inheritance graph

Public Member Functions

 SamplePanelPlugin_Panel (QWidget *theParent)
 Constructs a panel page. More...
virtual ~SamplePanelPlugin_Panel ()
 Destructs the page. More...
void setFeature (const FeaturePtr &theFeature)
 Fill the panel by the feature. More...

Protected Slots

void onCurrentIndexChanged (int theIndex)
 Update feature attribute by the current value of combo box. More...

Detailed Description

Represent a content of the property panel to show/modify parameters of some feature.

Constructor & Destructor Documentation

◆ SamplePanelPlugin_Panel()

SamplePanelPlugin_Panel::SamplePanelPlugin_Panel ( QWidget theParent)

Constructs a panel page.

◆ ~SamplePanelPlugin_Panel()

virtual SamplePanelPlugin_Panel::~SamplePanelPlugin_Panel ( )

Destructs the page.

Member Function Documentation

◆ setFeature()

void SamplePanelPlugin_Panel::setFeature ( const FeaturePtr &  theFeature)

Fill the panel by the feature.

theFeaturea feature to fill the panel controls

the attribute should be filled with some value, because Apply button of the Property panel is enabled only if all attributes of the feature are initialized It is possible to make it in the initializeAttribute method of the feature after attribute creation

to update error state of the feature: previous value was that this attribute is not initialized yet. Apply of Property panel was disabled.

◆ onCurrentIndexChanged

void SamplePanelPlugin_Panel::onCurrentIndexChanged ( int  theIndex)

Update feature attribute by the current value of combo box.

theIndexa combo box modified value