sptk2 logo
SPTK Home Page

sptk::CPopupCalendar Class Reference
[GUI Classes]

Popup Calendar. More...

#include <CCalendar.h>

Inheritance diagram for sptk::CPopupCalendar:

sptk::CPopupWindow sptk::CWindow sptk::CLayoutManager sptk::CWindowShape sptk::CLayoutClient

List of all members.

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


Detailed Description

Popup Calendar.

Creates a popup window with the calendar widget on it. Allows to select day, month, and year with increment/decrement buttons.


Constructor & Destructor Documentation

sptk::CPopupCalendar::CPopupCalendar ( Fl_Widget *  dateControl  ) 

Constructor.

Parameters:
dateControl Fl_Widget, the widget the shows the popup calendar


Member Function Documentation

CDateTime sptk::CPopupCalendar::date (  )  const [inline]

Reports the calendar date.

Returns:
CDateTime value of the currently selected date

References sptk::CDateTime::date().

void sptk::CPopupCalendar::date ( CDateTime  dt  )  [inline]

Sets the calendar date.

Parameters:
dt CDateTime, new calendar date

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

Widget resize.

Parameters:
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.

Returns:
true if date was selected

Reimplemented from sptk::CPopupWindow.


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

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