ImFusion SDK 4.3
EnumParamControl Class Reference

#include <ImFusion/GUI/PropertiesWidgetParamControls.h>

Represent a ParamType::Enum and ParamType::EnumString with a QComboBox. More...

+ Inheritance diagram for EnumParamControl:

Detailed Description

Represent a ParamType::Enum and ParamType::EnumString with a QComboBox.

Public Member Functions

 EnumParamControl (const std::string &name, bool valueIsString, QComboBox *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::Attributeattributes
 

Member Function Documentation

◆ updateValue()

void updateValue ( const std::string & value,
const std::vector< Properties::Attribute > & attributes )
overridevirtual

Updates the current value and adjusts the attributes.

Implements ParamControl.

◆ retrieveValue()

void retrieveValue ( Properties * p) const
overridevirtual

Retrieves the value from the widget and writes it into the properties.

Implements ParamControl.

◆ widget()

QWidget * widget ( ) const
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.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close