sptk2 logo
SPTK Home Page

sptk::CDateTimeBaseInput Class Reference
[GUI Classes]

Base date and time input widget. More...

#include <CDateTimeInput.h>

Inheritance diagram for sptk::CDateTimeBaseInput:

sptk::CInput sptk::CControl sptk::CLayoutClient sptk::CDateInput sptk::CDateTimeInput sptk::CTimeInput

List of all members.

Public Member Functions

void setLimits (bool limited, CDateTime min=double(0), CDateTime max=double(0))
 Sets limits for the value inside.
virtual CDateTime dateTimeValue () const
 Returns widget date or time value.
virtual void dateTimeValue (CDateTime dt)
 Sets widget date or time value.

Protected Member Functions

virtual void load (CQuery *)
 Loads data from query.
virtual void save (CQuery *)
 Saves data to query.
virtual void load (const CXmlNode *node, CLayoutXMLmode xmlMode)
 Loads control data from XML.
virtual void save (CXmlNode *node, CLayoutXMLmode xmlMode) const
 Saves control data to XML.
virtual bool valid () const
 Returns true if the input data is valid.
 CDateTimeBaseInput (const char *label, int layoutSize, CLayoutAlign layoutAlign, bool autoCreate)
 Constructor in SPTK style.
bool showCalendar (Fl_Widget *btn)
 Shows drop-down calendar.

Static Protected Member Functions

static void calendarButtonPressed (Fl_Widget *btn, void *data)
 Internal callback function.

Protected Attributes

CPopupCalendarm_calendarWindow
 Popup calendar window.
CDateControlm_dateInput
 Date input control.
CInput_m_timeInput
 Time input control.


Detailed Description

Base date and time input widget.

Base class for most of the date and time inputs (except fot CDateIntervalInput)


Constructor & Destructor Documentation

sptk::CDateTimeBaseInput::CDateTimeBaseInput ( const char *  label,
int  layoutSize,
CLayoutAlign  layoutAlign,
bool  autoCreate 
) [protected]

Constructor in SPTK style.

Parameters:
label const char *, label
layoutSize int, widget align in layout
layoutAlign CLayoutAlign, widget align in layout
autoCreate bool, auto create CInput_ widget. Internal.


Member Function Documentation

virtual void sptk::CDateTimeBaseInput::load ( const CXmlNode node,
CLayoutXMLmode  xmlMode 
) [protected, virtual]

Loads control data from XML.

Layout information may also include widget size and position, as well as visible() and active() states

Parameters:
node CXmlNode*, the XML node
xmlMode CLayoutXMLmode, the mode defining how the layout and/or data should be stored

Reimplemented from sptk::CInput.

virtual void sptk::CDateTimeBaseInput::save ( CXmlNode node,
CLayoutXMLmode  xmlMode 
) const [protected, virtual]

Saves control data to XML.

Layout information may also include widget size and position, as well as visible() and active() states

Parameters:
node CXmlNode*, the XML node
xmlMode CLayoutXMLmode, the mode defining how the layout and/or data should be stored

Reimplemented from sptk::CInput.

void sptk::CDateTimeBaseInput::setLimits ( bool  limited,
CDateTime  min = double(0),
CDateTime  max = double(0) 
)

Sets limits for the value inside.

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


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

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