![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/PropertiesWidgetParamControls.h>
Base class for parameter controls. More...
Base class for parameter controls.
Signals | |
void | valueChanged () |
Emitted when the parameter value was changed by the user. | |
Public Member Functions | |
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. | |
virtual void | updateValue (const std::string &value, const std::vector< Properties::Attribute > &attributes)=0 |
Updates the current value and adjusts the attributes. | |
virtual void | retrieveValue (Properties *p) const =0 |
Retrieves the value from the widget and writes it into the properties. | |
virtual QWidget * | widget () const =0 |
Returns the widget for this control. | |
Public Attributes | |
const Properties::ParamType | type |
const std::string | name |
std::vector< Properties::Attribute > | attributes |
|
pure virtual |
Updates the current value and adjusts the attributes.
Implemented in ActiveEnvironmentControl, BoolParamControl, ColorPickerParamControl, DoubleAdjusterParamControl, DoubleParamControl, EigenMatrixParamControl, EnumParamControl, IntegerAdjusterParamControl, IntegerParamControl, LabeledParamControl, MatrixParamControl, OptionalParamControl, PathParamControl, StringParamControl, and TextParamControl.
|
pure virtual |
Retrieves the value from the widget and writes it into the properties.
Implemented in ActiveEnvironmentControl, BoolParamControl, ColorPickerParamControl, DoubleAdjusterParamControl, DoubleParamControl, EigenMatrixParamControl, EnumParamControl, IntegerAdjusterParamControl, IntegerParamControl, LabeledParamControl, MatrixParamControl, OptionalParamControl, PathParamControl, StringParamControl, and TextParamControl.
|
pure virtual |
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.
Implemented in ActiveEnvironmentControl, BoolParamControl, ColorPickerParamControl, DoubleAdjusterParamControl, DoubleParamControl, EigenMatrixParamControl, EnumParamControl, IntegerAdjusterParamControl, IntegerParamControl, LabeledParamControl, MatrixParamControl, OptionalParamControl, PathParamControl, StringParamControl, and TextParamControl.