|
#include <CCalendar.h>

Public Member Functions | |
| CPopupCalendar (Fl_Widget *dateControl) | |
| Constructor. | |
| void | attachTo (Fl_Widget *dateControl) |
| Attaches the calendar to another widget. | |
| void | resize (int x, int y, int w, int h) |
| Widget resize. | |
| void | clicked () |
| Function that is used to report that calendar is clicked on and should be hidden. | |
| void | date (CDateTime dt) |
| Sets the calendar date. | |
| CDateTime | date () const |
| Reports the calendar date. | |
| bool | showModal () |
| Shows the calendar in modal mode. | |
Protected Member Functions | |
| int | handle (int) |
| Internal handle() function for the FLTK widgets. | |
Friends | |
| class | CCalendar |
Creates a popup window with the calendar widget on it. Allows to select day, month, and year with increment/decrement buttons.
| sptk::CPopupCalendar::CPopupCalendar | ( | Fl_Widget * | dateControl | ) |
Constructor.
| dateControl | Fl_Widget, the widget the shows the popup calendar |
| CDateTime sptk::CPopupCalendar::date | ( | ) | const [inline] |
Reports the calendar date.
References sptk::CDateTime::date().
| void sptk::CPopupCalendar::date | ( | CDateTime | dt | ) | [inline] |
| void sptk::CPopupCalendar::resize | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) | [virtual] |
Widget resize.
| x | int, widget x-coordinate | |
| y | int, widget y-coordinate | |
| w | int, widget width | |
| h | int, widget height |
Reimplemented from sptk::CWindow.
| bool sptk::CPopupCalendar::showModal | ( | ) |
Shows the calendar in modal mode.
The only difference from standard modal mode is that if you click anywhere outside the calendar window and it closes.
Reimplemented from sptk::CPopupWindow.