![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/PropertiesWidgetParamControls.h>
Composite control that wraps an existing ParamControl and adds a label to the left of it. More...
Composite control that wraps an existing ParamControl and adds a label to the left of it.
The returned widget contains a QLabel and the widget of the ParamControl in an horizontal layout.
Public Member Functions | |
LabeledParamControl (const std::string &name, ParamControl *value, const std::string &title="") | |
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. | |
QLabel * | label () const |
ParamControl * | value () 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.