|
#include <CDateTimeInput.h>

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 | |
| CPopupCalendar * | m_calendarWindow |
| Popup calendar window. | |
| CDateControl * | m_dateInput |
| Date input control. | |
| CInput_ * | m_timeInput |
| Time input control. | |
Base class for most of the date and time inputs (except fot CDateIntervalInput)
| sptk::CDateTimeBaseInput::CDateTimeBaseInput | ( | const char * | label, | |
| int | layoutSize, | |||
| CLayoutAlign | layoutAlign, | |||
| bool | autoCreate | |||
| ) | [protected] |
Constructor in SPTK style.
| label | const char *, label | |
| layoutSize | int, widget align in layout | |
| layoutAlign | CLayoutAlign, widget align in layout | |
| autoCreate | bool, auto create CInput_ widget. Internal. |
| 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
| 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
| node | CXmlNode*, the XML node | |
| xmlMode | CLayoutXMLmode, the mode defining how the layout and/or data should be stored |
Reimplemented from sptk::CInput.