#include <ParameterWidget.h>
Public Slots | |
void | clearEnumParameter (const QString &name) |
void | insertEnumValue (const QString &name, const QString &value) |
void | removeEnumValue (const QString &name, const QString &value) |
void | setBoolValue (const QString &name, bool result) |
void | setDoubleValue (const QString &name, double result) |
void | setEnumValue (const QString &name, int result) |
void | setIntValue (const QString &name, int result) |
Signals | |
void | parameterChanged (const QString &name) |
Public Member Functions | |
virtual void | activate () |
void | addBoolParameter (const QString &name, const QString &description, bool initialValue=false) |
void | addDoubleParameter (const QString &name, const QString &description, double initialValue=0., double minValue=-10e16, double maxValue=10e16, int decimals=2, double step=0.1) |
void | addEnumParameter (const QString &name, const QString &description, int initialValue=0) |
void | addEnumParameter (const QString &name, const QString &description, QStringList &values, int initialValue=0) |
void | addIntParameter (const QString &name, const QString &description, int initialValue=0, int minValue=-10e7, int maxValue=10e7, int step=1) |
void | clearParameterMap () |
virtual void | deactivate () |
bool | getBoolValue (const QString &name) const |
bool | getBoolValue (const QString &name, bool &result) const |
double | getDoubleValue (const QString &name) const |
bool | getDoubleValue (const QString &name, double &result) const |
int | getEnumValue (const QString &name) const |
bool | getEnumValue (const QString &name, int &result) const |
int | getIntValue (const QString &name) const |
bool | getIntValue (const QString &name, int &result) const |
ParameterWidget (const QString &name, QWidget *parent=0) | |
void | removeParameter (QString &name) |
Protected Attributes | |
QGridLayout * | m_layout |
QSignalMapper | m_mapper |
QString | m_name |
QHash< QString, ParameterPair > | m_parameterMap |
Definition at line 43 of file ParameterWidget.h.
ParameterWidget::ParameterWidget | ( | const QString & | name, | |
QWidget * | parent = 0 | |||
) |
Definition at line 6 of file ParameterWidget.cpp.
virtual void ParameterWidget::activate | ( | ) | [inline, virtual] |
Reimplemented in TabbedParameterWidget.
Definition at line 49 of file ParameterWidget.h.
void ParameterWidget::addBoolParameter | ( | const QString & | name, | |
const QString & | description, | |||
bool | initialValue = false | |||
) |
Definition at line 56 of file ParameterWidget.cpp.
void ParameterWidget::addDoubleParameter | ( | const QString & | name, | |
const QString & | description, | |||
double | initialValue = 0. , |
|||
double | minValue = -10e16 , |
|||
double | maxValue = 10e16 , |
|||
int | decimals = 2 , |
|||
double | step = 0.1 | |||
) |
Definition at line 17 of file ParameterWidget.cpp.
void ParameterWidget::addEnumParameter | ( | const QString & | name, | |
const QString & | description, | |||
int | initialValue = 0 | |||
) | [inline] |
Definition at line 59 of file ParameterWidget.h.
void ParameterWidget::addEnumParameter | ( | const QString & | name, | |
const QString & | description, | |||
QStringList & | values, | |||
int | initialValue = 0 | |||
) |
Definition at line 72 of file ParameterWidget.cpp.
void ParameterWidget::addIntParameter | ( | const QString & | name, | |
const QString & | description, | |||
int | initialValue = 0 , |
|||
int | minValue = -10e7 , |
|||
int | maxValue = 10e7 , |
|||
int | step = 1 | |||
) |
Definition at line 37 of file ParameterWidget.cpp.
void ParameterWidget::clearEnumParameter | ( | const QString & | name | ) | [slot] |
Definition at line 109 of file ParameterWidget.cpp.
void ParameterWidget::clearParameterMap | ( | ) |
Definition at line 125 of file ParameterWidget.cpp.
virtual void ParameterWidget::deactivate | ( | ) | [inline, virtual] |
Reimplemented in TabbedParameterWidget.
Definition at line 52 of file ParameterWidget.h.
bool ParameterWidget::getBoolValue | ( | const QString & | name | ) | const [inline] |
Definition at line 74 of file ParameterWidget.h.
bool ParameterWidget::getBoolValue | ( | const QString & | name, | |
bool & | result | |||
) | const |
Definition at line 152 of file ParameterWidget.cpp.
double ParameterWidget::getDoubleValue | ( | const QString & | name | ) | const [inline] |
Definition at line 70 of file ParameterWidget.h.
bool ParameterWidget::getDoubleValue | ( | const QString & | name, | |
double & | result | |||
) | const |
Definition at line 134 of file ParameterWidget.cpp.
int ParameterWidget::getEnumValue | ( | const QString & | name | ) | const [inline] |
Definition at line 76 of file ParameterWidget.h.
bool ParameterWidget::getEnumValue | ( | const QString & | name, | |
int & | result | |||
) | const |
Definition at line 161 of file ParameterWidget.cpp.
int ParameterWidget::getIntValue | ( | const QString & | name | ) | const [inline] |
Definition at line 72 of file ParameterWidget.h.
bool ParameterWidget::getIntValue | ( | const QString & | name, | |
int & | result | |||
) | const |
Definition at line 143 of file ParameterWidget.cpp.
void ParameterWidget::insertEnumValue | ( | const QString & | name, | |
const QString & | value | |||
) | [slot] |
Definition at line 90 of file ParameterWidget.cpp.
void ParameterWidget::parameterChanged | ( | const QString & | name | ) | [signal] |
void ParameterWidget::removeEnumValue | ( | const QString & | name, | |
const QString & | value | |||
) | [slot] |
Definition at line 98 of file ParameterWidget.cpp.
void ParameterWidget::removeParameter | ( | QString & | name | ) |
Definition at line 117 of file ParameterWidget.cpp.
void ParameterWidget::setBoolValue | ( | const QString & | name, | |
bool | result | |||
) | [slot] |
Definition at line 186 of file ParameterWidget.cpp.
void ParameterWidget::setDoubleValue | ( | const QString & | name, | |
double | result | |||
) | [slot] |
Definition at line 170 of file ParameterWidget.cpp.
void ParameterWidget::setEnumValue | ( | const QString & | name, | |
int | result | |||
) | [slot] |
Definition at line 194 of file ParameterWidget.cpp.
void ParameterWidget::setIntValue | ( | const QString & | name, | |
int | result | |||
) | [slot] |
Definition at line 178 of file ParameterWidget.cpp.
QGridLayout* ParameterWidget::m_layout [protected] |
Definition at line 94 of file ParameterWidget.h.
QSignalMapper ParameterWidget::m_mapper [protected] |
Definition at line 95 of file ParameterWidget.h.
QString ParameterWidget::m_name [protected] |
Definition at line 92 of file ParameterWidget.h.
QHash<QString, ParameterPair> ParameterWidget::m_parameterMap [protected] |
Definition at line 93 of file ParameterWidget.h.