|
#include <CFloatInput.h>

Public Member Functions | |
| CFloatInput (const char *label=0, int layoutSize=10, CLayoutAlign layoutAlign=SP_ALIGN_TOP) | |
| Constructor in SPTK style. | |
| void | setLimits (bool limited, double min=0, double max=0) |
| Sets limits for the value inside. | |
| int | decimalPlaces () const |
| Returns the number of decimal places. | |
| void | decimalPlaces (int dp) |
| Sets the number of decimal places to show. | |
| virtual CControlKind | kind () const |
| Returns the control kind, SPTK-style RTTI. | |
| virtual std::string | className () const |
| Returns the control class name, SPTK-style RTTI. | |
Static Public Member Functions | |
| static CLayoutClient * | creator (CXmlNode *node) |
| Creates a widget based on the XML node information. | |
Protected Member Functions | |
| virtual void | save (CQuery *) |
| Saves data to query. | |
| virtual bool | valid () const |
| Returns true if the input data is valid. | |
Allows to input only Floating point numbers, and you can also define the input value range for the valid().
| sptk::CFloatInput::CFloatInput | ( | const char * | label = 0, |
|
| int | layoutSize = 10, |
|||
| CLayoutAlign | layoutAlign = SP_ALIGN_TOP | |||
| ) |
Constructor in SPTK style.
| label | const char *, label | |
| layoutSize | int, widget align in layout | |
| layoutAlign | CLayoutAlign, widget align in layout |
| virtual CControlKind sptk::CFloatInput::kind | ( | ) | const [inline, virtual] |
Returns the control kind, SPTK-style RTTI.
Reimplemented from sptk::CInput.
References sptk::DCV_FLOAT.
| void sptk::CFloatInput::setLimits | ( | bool | limited, | |
| double | min = 0, |
|||
| double | max = 0 | |||
| ) |
Sets limits for the value inside.
| limited | bool, true if use the limits | |
| min | double, minimum value | |
| max | double, maximum value |