Fix missing and broken interface items for Phoenix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-04-10 03:27:50 +00:00
parent e5e10e234e
commit 073b976d01
3 changed files with 76 additions and 5 deletions

View File

@@ -6,6 +6,36 @@
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
enum
{
// show Sunday as the first day of the week (default)
wxCAL_SUNDAY_FIRST = 0x0000,
// show Monday as the first day of the week
wxCAL_MONDAY_FIRST = 0x0001,
// highlight holidays
wxCAL_SHOW_HOLIDAYS = 0x0002,
// disable the year change control, show only the month change one
// deprecated
wxCAL_NO_YEAR_CHANGE = 0x0004,
// don't allow changing neither month nor year (implies
// wxCAL_NO_YEAR_CHANGE)
wxCAL_NO_MONTH_CHANGE = 0x000c,
// use MS-style month-selection instead of combo-spin combination
wxCAL_SEQUENTIAL_MONTH_SELECTION = 0x0010,
// show the neighbouring weeks in the previous and next month
wxCAL_SHOW_SURROUNDING_WEEKS = 0x0020,
// show week numbers on the left side of the calendar.
wxCAL_SHOW_WEEK_NUMBERS = 0x0040
};
/**
@class wxCalendarEvent
@@ -19,6 +49,9 @@
class wxCalendarEvent : public wxDateEvent
{
public:
wxCalendarEvent();
wxCalendarEvent(wxWindow *win, const wxDateTime& dt, wxEventType type);
/**
Returns the week day on which the user clicked in
@c EVT_CALENDAR_WEEKDAY_CLICKED handler. It doesn't make sense to call
@@ -33,6 +66,12 @@ public:
void SetWeekDay(const wxDateTime::WeekDay day);
};
wxEventType wxEVT_CALENDAR_SEL_CHANGED;
wxEventType wxEVT_CALENDAR_PAGE_CHANGED;
wxEventType wxEVT_CALENDAR_DOUBLECLICKED;
wxEventType wxEVT_CALENDAR_WEEKDAY_CLICKED;
wxEventType wxEVT_CALENDAR_WEEK_CLICKED;
/**
@@ -170,7 +209,7 @@ public:
Set the attributes that will be used to Mark() days on the generic
wxCalendarCtrl.
*/
static void SetMark(wxCalendarDateAttr const& m);
static void SetMark(const wxCalendarDateAttr& m);
};