SHAPER
9.12.0
|
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... | |
Represent a content of the property panel to show/modify parameters of some feature.
SamplePanelPlugin_Panel::SamplePanelPlugin_Panel | ( | QWidget * | theParent | ) |
Constructs a panel page.
|
inlinevirtual |
Destructs the page.
void SamplePanelPlugin_Panel::setFeature | ( | const FeaturePtr & | theFeature | ) |
Fill the panel by the feature.
theFeature | a 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.
|
protectedslot |
Update feature attribute by the current value of combo box.
theIndex | a combo box modified value |