]>
Commit | Line | Data |
---|---|---|
9d9b7755 VZ |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/calctrl.h | |
3 | // Purpose: date-picker control | |
4 | // Author: Vadim Zeitlin | |
5 | // Modified by: | |
6 | // Created: 29.12.99 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) 1999 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr> | |
9 | // Licence: wxWindows license | |
10 | /////////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_CALCTRL_H | |
13 | #define _WX_CALCTRL_H | |
14 | ||
15 | // so far we only have a generic version, so keep it simple | |
16 | #include "wx/generic/calctrl.h" | |
17 | ||
18 | // ---------------------------------------------------------------------------- | |
19 | // wxCalendarCtrl events | |
20 | // ---------------------------------------------------------------------------- | |
21 | ||
22 | class WXDLLEXPORT wxCalendarEvent : public wxCommandEvent | |
23 | { | |
24 | public: | |
25 | wxCalendarEvent() { } | |
26 | wxCalendarEvent(wxCalendarCtrl *cal, wxEventType type); | |
27 | ||
28 | const wxDateTime& GetDate() const { return m_date; } | |
29 | ||
30 | private: | |
31 | wxDateTime m_date; | |
32 | }; | |
33 | ||
34 | #define EVT_CALENDAR(id, fn) { wxEVT_CALENDAR_SEL_CHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL }, | |
35 | #define EVT_CALENDAR_DAY(id, fn) { wxEVT_CALENDAR_DAY_CHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL }, | |
36 | #define EVT_CALENDAR_MONTH(id, fn) { wxEVT_CALENDAR_MONTH_CHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL }, | |
37 | #define EVT_CALENDAR_YEAR(id, fn) { wxEVT_CALENDAR_YEAR_CHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) & fn, (wxObject *) NULL }, | |
38 | ||
39 | #endif // _WX_CALCTRL_H |