#include <EnumerationParameter.h>


Public Member Functions | |
| EnumerationParameter (const QString &name, const QVariant &value) | |
| Constructor of the EnumerationParameter class. | |
| EnumerationParameter (const EnumerationParameter ¶meter) | |
| Copy constructor of the EnumerationParameter class. | |
| virtual | ~EnumerationParameter () |
| Destructor of the EnumerationParameter class. | |
| virtual AbstractParameter * | clone () |
| Creates an exact copy of the parameter. | |
| int | getCurrentIndex () |
| Returns the index of the item currently selected in the enumeration. | |
| QString | getCurrentLiteral () |
| Returns the literal of the item currently selected in the enumeration. | |
| QString | getCurrentValue () |
| Returns the value of the item currently selected in the enumeration. | |
| QStringList | getLiterals () const |
| Returns the list of string literals of the enumeration. | |
| void | setLiterals (QStringList literals) |
| Sets the list of string literals for the enumeration. | |
| QStringList | getValues () const |
| Returns the list of values of the enumeration. | |
| void | setValues (QStringList values) |
| Sets the list of values for the enumeration. | |
Private Attributes | |
| QStringList | m_literals |
| The list of string literals of the enumeration. | |
| QStringList | m_values |
| The list of values of the enumeration. | |
| EnumerationParameter::EnumerationParameter | ( | const QString & | name, | |
| const QVariant & | value | |||
| ) |
Constructor of the EnumerationParameter class.
Constructors and Destructors.
| name | The name of the parameter. | |
| value | The parameter's value. |
| name | The name of the parameter. | |
| value | The parameter's value. |
| EnumerationParameter::EnumerationParameter | ( | const EnumerationParameter & | parameter | ) |
| EnumerationParameter::~EnumerationParameter | ( | ) | [virtual] |
Destructor of the EnumerationParameter class.
| AbstractParameter * EnumerationParameter::clone | ( | ) | [virtual] |
Creates an exact copy of the parameter.
Public Functions.
Reimplemented from Parameter.
| int EnumerationParameter::getCurrentIndex | ( | ) |
Returns the index of the item currently selected in the enumeration.
Convenience function that calls getValue().toInt() on the parameter.
| QString EnumerationParameter::getCurrentLiteral | ( | ) |
Returns the literal of the item currently selected in the enumeration.
The literal of the item currently selected in the enumeration.
| QString EnumerationParameter::getCurrentValue | ( | ) |
Returns the value of the item currently selected in the enumeration.
| QStringList EnumerationParameter::getLiterals | ( | ) | const |
Returns the list of string literals of the enumeration.
The list of string literals of the enumeration, or an invalid QString when no item is currently selected.
| void EnumerationParameter::setLiterals | ( | QStringList | literals | ) |
Sets the list of string literals for the enumeration.
| literals | The list of string literals for the enumeration. |
| QStringList EnumerationParameter::getValues | ( | ) | const |
Returns the list of values of the enumeration.
| void EnumerationParameter::setValues | ( | QStringList | values | ) |
Sets the list of values for the enumeration.
| values | The list of values for the enumeration. |
QStringList EnumerationParameter::m_literals [private] |
The list of string literals of the enumeration.
QStringList EnumerationParameter::m_values [private] |
The list of values of the enumeration.
1.5.9