sptk2 logo
SPTK Home Page

sptk::CDateInput Class Reference
[GUI Classes]

Date input widget. More...

#include <CDateTimeInput.h>

Inheritance diagram for sptk::CDateInput:

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

List of all members.

Public Member Functions

 CDateInput (const char *label=0, int layoutSize=10, CLayoutAlign layoutAlign=SP_ALIGN_TOP)
 Constructor in SPTK style.
virtual CControlKind kind () const
 Returns the control kind, SPTK-style RTTI.
virtual std::string className () const
 Returns the control class name, SPTK-style RTTI.
virtual CVariant data () const
 Universal data connection, returns data from date control. Data is returned as VAR_DATE.
virtual void data (const CVariant v)
 Universal data connection, sets data to date control.
virtual void resize (int x, int y, int w, int h)
 Resizes the control and inside widgets.
virtual void preferredHeight (int &h) const

Static Public Member Functions

static CLayoutClientcreator (CXmlNode *node)
 Creates a widget based on the XML node information.


Detailed Description

Date input widget.

Masked date input with the drop-down calendar


Constructor & Destructor Documentation

sptk::CDateInput::CDateInput ( 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::CDateInput::kind (  )  const [inline, virtual]

Returns the control kind, SPTK-style RTTI.

See also:
CControlKind for more information

Reimplemented from sptk::CInput.

References sptk::DCV_DATE.

virtual void sptk::CDateInput::preferredHeight ( int &  h  )  const [virtual]

Computes the optimal widget height

Parameters:
h int&, input - height offered by the program, output - height required by widget

Reimplemented from sptk::CInput.

virtual void sptk::CDateInput::resize ( int  x,
int  y,
int  w,
int  h 
) [virtual]

Resizes the control and inside widgets.

Parameters:
x int, x-position
y int, y-position
w int, width
h int, height

Reimplemented from sptk::CControl.


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

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