]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/calctrl.h
Implement wxMask copy ctor for wxGTK.
[wxWidgets.git] / include / wx / gtk / calctrl.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/calctrl.h
3 // Purpose: wxGtkCalendarCtrl control
4 // Author: Marcin Wojdyr
5 // RCS-ID: $Id$
6 // Copyright: (C) 2008 Marcin Wojdyr
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef GTK_CALCTRL_H__
11 #define GTK_CALCTRL_H__
12
13 class WXDLLIMPEXP_ADV wxGtkCalendarCtrl : public wxCalendarCtrlBase
14 {
15 public:
16 wxGtkCalendarCtrl() {}
17 wxGtkCalendarCtrl(wxWindow *parent,
18 wxWindowID id,
19 const wxDateTime& date = wxDefaultDateTime,
20 const wxPoint& pos = wxDefaultPosition,
21 const wxSize& size = wxDefaultSize,
22 long style = wxCAL_SHOW_HOLIDAYS,
23 const wxString& name = wxCalendarNameStr)
24 {
25 Create(parent, id, date, pos, size, style, name);
26 }
27
28 bool Create(wxWindow *parent,
29 wxWindowID id,
30 const wxDateTime& date = wxDefaultDateTime,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize,
33 long style = wxCAL_SHOW_HOLIDAYS,
34 const wxString& name = wxCalendarNameStr);
35
36 virtual ~wxGtkCalendarCtrl() {}
37
38 virtual bool SetDate(const wxDateTime& date);
39 virtual wxDateTime GetDate() const;
40
41 virtual bool EnableMonthChange(bool enable = true);
42
43 virtual void Mark(size_t day, bool mark);
44
45 // implementation
46 // --------------
47 wxDateTime m_selectedDate;
48
49 private:
50 DECLARE_DYNAMIC_CLASS(wxGtkCalendarCtrl)
51 wxDECLARE_NO_COPY_CLASS(wxGtkCalendarCtrl);
52 };
53
54 #endif // GTK_CALCTRL_H__