sptk2 logo
SPTK Home Page

sptk::CFloatInput Class Reference
[GUI Classes]

Floating point value input widget. More...

#include <CFloatInput.h>

Inheritance diagram for sptk::CFloatInput:

sptk::CInput sptk::CControl sptk::CLayoutClient

List of all members.

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 CLayoutClientcreator (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.


Detailed Description

Floating point value input widget.

Allows to input only Floating point numbers, and you can also define the input value range for the valid().


Constructor & Destructor Documentation

sptk::CFloatInput::CFloatInput ( const char *  label = 0,
int  layoutSize = 10,
CLayoutAlign  layoutAlign = SP_ALIGN_TOP 
)

Constructor in SPTK style.

Parameters:
label const char *, label
layoutSize int, widget align in layout
layoutAlign CLayoutAlign, widget align in layout


Member Function Documentation

virtual CControlKind sptk::CFloatInput::kind (  )  const [inline, virtual]

Returns the control kind, SPTK-style RTTI.

See also:
CControlKind for more information

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.

Parameters:
limited bool, true if use the limits
min double, minimum value
max double, maximum value


The documentation for this class was generated from the following file:

Mon Mar 5 11:56:14 2012: SPTK 3.5.7