![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/PropertiesWidgetParamControls.h>
Composite control that wraps an existing ParamControl and adds a checkbox to the left of it. More...
Composite control that wraps an existing ParamControl and adds a checkbox to the left of it.
The checkbox controls the enabled-state of the sub control and represents the std::optional::has_value() state
Public Member Functions | |
OptionalParamControl (const std::string &name, ParamControl *nestedControl, Properties::ParamType type) | |
void | updateValue (const std::string &value, const std::vector< Properties::Attribute > &attributes) override |
Updates the current value and adjusts the attributes. | |
void | retrieveValue (Properties *p) const override |
Retrieves the value from the widget and writes it into the properties. | |
QWidget * | widget () const override |
Returns the widget for this control. | |
QCheckBox * | checkBox () const |
ParamControl * | nestedControl () const |
![]() | |
ParamControl (Properties::ParamType t, const std::string &n) | |
Each control can only be used for a fixed type and parameter. | |
~ParamControl () override=default | |
Subclasses are expected to delete their widget. | |
Additional Inherited Members | |
![]() | |
void | valueChanged () |
Emitted when the parameter value was changed by the user. | |
![]() | |
const Properties::ParamType | type |
const std::string | name |
std::vector< Properties::Attribute > | attributes |
|
overridevirtual |
Updates the current value and adjusts the attributes.
Implements ParamControl.
|
overridevirtual |
Retrieves the value from the widget and writes it into the properties.
Implements ParamControl.
|
overridevirtual |
Returns the widget for this control.
The ParamControl does not own this widget, e.g. it must be re-parented to some other QWidget or deleted manually.
Implements ParamControl.