#include <WCalendar>
Inherits Wt::WCompositeWidget.
Inheritance diagram for Wt::WCalendar:

Public Member Functions | |
| WCalendar (bool i18n=false, WContainerWidget *parent=0) | |
| Create a new calendar. | |
| void | setMultipleSelection (bool multiple) |
| Configure single or multiple selection mode. | |
| void | browseToPreviousYear () |
| Browse to the same month in the previous year. | |
| void | browseToPreviousMonth () |
| Browse to the previous month. | |
| void | browseToNextYear () |
| Browse to the same month in the next year. | |
| void | browseToNextMonth () |
| Browse to the next month. | |
| void | browseTo (const WDate &date) |
| Browse to a date. | |
| int | currentMonth () const |
| Current month displayed. | |
| int | currentYear () const |
| Current year displayed. | |
| void | clearSelection () |
| Clear the current selection. | |
| void | select (const WDate &date) |
| Select a date. | |
| void | select (const std::set< WDate > &dates) |
| Select multiple dates. | |
| const std::set< WDate > & | selection () const |
| Get the current selection. | |
Public Attributes | |
| Signal< void > | selectionChanged |
| Signal emitted when the user changes the selection. | |
| Signal< void > | selected |
| Signal emitted when the user has double clicked on a date. | |
The calendar provides navigation by month and year, and indicates the current day.
A single or multiple days may be selected on the calendar, and you may listen for changes in the selection using the selectionChanged signal.
Internationalization may be provided by indicating i18n == true in the constructor, and providing the appropriate messages for months and days in your message resource bundle.
The look can be overridden using the following style class selectors:
TABLE.Wt-cal-table : The table
TD.Wt-cal-header : Header cell (week day) TD.Wt-cal-header-weekend : Header cell (weekend day)
TABLE.Wt-cal-table TD : In-month day cell TD.Wt-cal-oom : Out-of-month day cell TD.Wt-cal-sel : Selected day cell TD.Wt-cal-now : Today day cell
| Wt::WCalendar::WCalendar | ( | bool | i18n = false, |
|
| WContainerWidget * | parent = 0 | |||
| ) |
Create a new calendar.
Constructs a new calendar, with optional support for internationalization. The calendar shows the current day, and has an empty selection.
Signal emitted when the user has double clicked on a date.
This is only available when not in multiple selection mode.
1.4.7