#include <doubleparam.h>
Inheritance diagram for DoubleParam:

Public Member Functions | |
| DoubleParam (const char *formalVarName, const char *defaultValue, const char *exactTypeName="GLdouble", double minValue=DOUBLE_MIN, double maxValue=DOUBLE_MAX, double stepValue=DOUBLE_STEP, int maxWidgetWidth=DOUBLE_MAX_WIDGET_WIDTH) | |
| virtual QWidget * | createWidget (QWidget *parent, const char *name, const QObject *slotOwner, const char *member) |
| virtual void | setWidgetValue (QWidget *widget, const QString &value) |
| virtual QString | getWidgetValue (QWidget *widget) |
| virtual QString | getStringRep (const QString &value) const |
| virtual int | maxWidgetWidth () const |
Private Attributes | |
| double | myMinValue |
| double | myMaxValue |
| double | myStepValue |
| int | myMaxWidgetWidth |
This class inherits CmdParam to provide a parameter that has a formal variable name, a default value and an exact type name, among other fields.
As an editor widget, it provides a SuperSpinBox, which is an extension of a standard integer QSpinBox, but instead provides support of doubles and floats.
|
||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
Implements CmdParam. |
|
|
This utility method is used to get the string representation of a number of type `double'. It ensures that any number that could be represented exactly by an integer still has a `.0' at the end of it (e.g. `4' -> `4.0'). Reimplemented from CmdParam. |
|
|
Implements CmdParam. |
|
|
Reimplemented from CmdParam. |
|
||||||||||||
|
Implements CmdParam. |
|
|
|
|
|
|
|
|
|
|
|
|
1.3.2