![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/PropertiesWidgetParamControls.h>
Represent a ParamType::Integer with a QSpinBox. More...
Inheritance diagram for IntegerParamControl:Represent a ParamType::Integer with a QSpinBox.
Public Member Functions | |
| IntegerParamControl (const std::string &name, QSpinBox *init=nullptr) | |
| 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. | |
Public Member Functions inherited from ParamControl | |
| 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 | |
Signals inherited from ParamControl | |
| void | valueChanged () |
| Emitted when the parameter value was changed by the user. | |
Public Attributes inherited from ParamControl | |
| 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.