![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/PropertiesWidgetParamControls.h>
Represent a ParamType::Path with a QLineEdit and a QToolButton that opens a file dialog. More...
Represent a ParamType::Path with a QLineEdit and a QToolButton that opens a file dialog.
Public Slots | |
void | openFileDialog () |
Public Member Functions | |
PathParamControl (const std::string &name, QWidget *init=nullptr) | |
Finds the first QLineEdit and the first QAbstractButton from QWidget and calls the second constructor. | |
PathParamControl (const std::string &name, QWidget *init, QLineEdit *initL, QAbstractButton *initB) | |
void | updateValue (const std::string &value, const std::vector< Properties::Attribute > &) 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. | |
![]() | |
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.