sptk2 logo
SPTK Home Page

sptk::CCalendar Class Reference
[GUI Classes]

Calendar widget. More...

#include <CCalendar.h>

Inheritance diagram for sptk::CCalendar:

sptk::CLayoutClient

List of all members.

Public Member Functions

 CCalendar (const char *label, int layoutSize=20, CLayoutAlign layoutAlignment=SP_ALIGN_TOP)
 SPTK-style constructor.
 CCalendar (int x, int y, int w, int h, const char *label=0L)
 FLTK-style constructor.
void resize (int x, int y, int w, int h)
 Widget resize.
int maxHeight () const
 Reports the maximum height of the calendar widget.
void autoHeight (int minHeight)
 Resizes widget to the optimal height, considering minHeight.
void date (CDateTime dt)
 Sets the calendar date.
CDateTime date () const
 Reports the calendar date.

Protected Member Functions

void dayButtonClicked (uint32_t day)
 The reaction function for the clicking on one of the day buttons.
void switchButtonClicked (int32_t monthChange)
 The reaction function for the clicking on one of the month change buttonss.


Detailed Description

Calendar widget.

A calendar class implements one month calendar. The calendar window allows to select the date. You can change a day, a month and a year selected in the widget.


Constructor & Destructor Documentation

sptk::CCalendar::CCalendar ( const char *  label,
int  layoutSize = 20,
CLayoutAlign  layoutAlignment = SP_ALIGN_TOP 
)

SPTK-style constructor.

Parameters:
label const char *, the widget label
layoutSize int, the size of widget in layout
layoutAlignment CLayoutAlign, widget align in the layout

sptk::CCalendar::CCalendar ( int  x,
int  y,
int  w,
int  h,
const char *  label = 0L 
)

FLTK-style constructor.

Parameters:
x int, widget x-coordinate
y int, widget y-coordinate
w int, widget width
h int, widget height
label int, optional widget label


Member Function Documentation

void sptk::CCalendar::resize ( int  x,
int  y,
int  w,
int  h 
)

Widget resize.

Parameters:
x int, widget x-coordinate
y int, widget y-coordinate
w int, widget width
h int, widget height


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

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