#include <WidgetPlugin.h>
|
void | updateWidget () |
| is emitted if the widget must be redrawn
|
|
Frapper::WidgetPlugin::WidgetPlugin |
( |
QWidget * |
parent, |
|
|
ParameterPlugin * |
parameter |
|
) |
| |
Constructor of the WidgetPlugin class.
Constructors and Destructors.
- Parameters
-
parent | The parent widget. |
parameter | The associated parameter. |
Constructor of the WidgetPlugin class.
- Parameters
-
parent | The parent widget. |
parameter | The associated parameter. |
Frapper::WidgetPlugin::~WidgetPlugin |
( |
void |
| ) |
|
|
virtual |
Destructor of the WidgetPlugin class.
Defined virtual to guarantee that the destructor of a derived class will be called if the instance of the derived class is saved in a variable of its parent class type.
QVariant Frapper::WidgetPlugin::getParameterValue |
( |
| ) |
|
Returns the parameterīs value.
Public Functions.
- Returns
- the QVariant value of the parameter
Returns the parameters value
- Returns
- the QVariant value of the parameter
void Frapper::WidgetPlugin::setParameterValue |
( |
QVariant |
value | ) |
|
sets the parameterīs value
- Parameters
-
value | The QVariant to be set as the parameterīs value |
QString Frapper::WidgetPlugin::getParameterName |
( |
| ) |
|
returns the name of the associated parameter
- Returns
- The name of the parameter as QString
void Frapper::WidgetPlugin::widgetUpdate |
( |
| ) |
|
is called to emit the signal "updateWidget"
void Frapper::WidgetPlugin::updateParameterValue |
( |
QVariant |
value | ) |
|
updates the parameter and forces a update of the widget
- Parameters
-
value | The QVariant to be set as the parameterīs value |
void Frapper::WidgetPlugin::setFlags |
( |
QMap< QString, QVariant > |
flags | ) |
|
sets the flags of the parameter
- Parameters
-
void Frapper::WidgetPlugin::setFlag |
( |
QString |
key, |
|
|
QVariant |
value |
|
) |
| |
set a Flag
- Parameters
-
key | Name of the flag |
value | Value of the flag |
QMap< QString, QVariant > Frapper::WidgetPlugin::getFlags |
( |
| ) |
|
returns the flags of the parameter
- Returns
- The QMap of flags
void Frapper::WidgetPlugin::setParameterTriggersRedraw |
( |
bool |
trigger | ) |
|
Sets or deletes a connection between the parameterīs update and the widgetīs update.
- Parameters
-
trigger | Controll if the connection should be created (true) or destroyed (false) |
QStringList Frapper::WidgetPlugin::getFlagList |
( |
| ) |
|
returns a list of all flag keys
- Returns
- QStringList of all flag names
bool Frapper::WidgetPlugin::checkFlag |
( |
QString |
flag | ) |
|
cecks if a flag exists and has a value
- Parameters
-
- Returns
- Boolean value, "true" if flag exists and has a value
QVariant Frapper::WidgetPlugin::getFlag |
( |
QString |
flag | ) |
|
returns the value of a flag
- Parameters
-
- Returns
- QVariant value of the flag
void Frapper::WidgetPlugin::redrawByParameterChange |
( |
| ) |
|
|
privateslot |
is called if parameter is changed
is called if the parameter is changed
void Frapper::WidgetPlugin::updateWidget |
( |
| ) |
|
|
signal |
is emitted if the widget must be redrawn
bool Frapper::WidgetPlugin::m_selfTriggered |
|
private |
Flag if the parameter change was done by the widget.
The documentation for this class was generated from the following files: