ImFusion C++ SDK 4.4.0
ImFusion::BoolParamControl Class Reference

#include <ImFusion/GUI/PropertiesWidgetParamControls.h>

Represent a ParamType::Bool with a QCheckBox. More...

Inheritance diagram for ImFusion::BoolParamControl:

Detailed Description

Represent a ParamType::Bool with a QCheckBox.

Public Member Functions

 BoolParamControl (const std::string &name, QCheckBox *init=nullptr)
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.
Public Member Functions inherited from ImFusion::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 ImFusion::ParamControl
void valueChanged ()
 Emitted when the parameter value was changed by the user.
Public Attributes inherited from ImFusion::ParamControl
const Properties::ParamType type
const std::string name
std::vector< Properties::Attribute > attributes

Member Function Documentation

◆ updateValue()

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

Updates the current value and adjusts the attributes.

Implements ImFusion::ParamControl.

◆ retrieveValue()

void ImFusion::BoolParamControl::retrieveValue ( Properties * p) const
overridevirtual

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

Implements ImFusion::ParamControl.

◆ widget()

QWidget * ImFusion::BoolParamControl::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 ImFusion::ParamControl.


The documentation for this class was generated from the following file:
  • ImFusion/GUI/PropertiesWidgetParamControls.h
Search Tab / S to search, Esc to close