]>
Commit | Line | Data |
---|---|---|
1 | /////////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/osx/datectrl.h | |
3 | // Purpose: Declaration of wxOSX-specific wxDatePickerCtrl class. | |
4 | // Author: Vadim Zeitlin | |
5 | // Created: 2011-12-18 | |
6 | // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org> | |
7 | // Licence: wxWindows licence | |
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifndef _WX_OSX_DATECTRL_H_ | |
11 | #define _WX_OSX_DATECTRL_H_ | |
12 | ||
13 | // ---------------------------------------------------------------------------- | |
14 | // wxDatePickerCtrl | |
15 | // ---------------------------------------------------------------------------- | |
16 | ||
17 | class WXDLLIMPEXP_ADV wxDatePickerCtrl : public wxDatePickerCtrlBase | |
18 | { | |
19 | public: | |
20 | // Constructors. | |
21 | wxDatePickerCtrl() { } | |
22 | ||
23 | wxDatePickerCtrl(wxWindow *parent, | |
24 | wxWindowID id, | |
25 | const wxDateTime& dt = wxDefaultDateTime, | |
26 | const wxPoint& pos = wxDefaultPosition, | |
27 | const wxSize& size = wxDefaultSize, | |
28 | long style = wxDP_DEFAULT | wxDP_SHOWCENTURY, | |
29 | const wxValidator& validator = wxDefaultValidator, | |
30 | const wxString& name = wxDatePickerCtrlNameStr) | |
31 | { | |
32 | Create(parent, id, dt, pos, size, style, validator, name); | |
33 | } | |
34 | ||
35 | bool Create(wxWindow *parent, | |
36 | wxWindowID id, | |
37 | const wxDateTime& dt = wxDefaultDateTime, | |
38 | const wxPoint& pos = wxDefaultPosition, | |
39 | const wxSize& size = wxDefaultSize, | |
40 | long style = wxDP_DEFAULT | wxDP_SHOWCENTURY, | |
41 | const wxValidator& validator = wxDefaultValidator, | |
42 | const wxString& name = wxDatePickerCtrlNameStr); | |
43 | ||
44 | // Implement the base class pure virtuals. | |
45 | virtual void SetRange(const wxDateTime& dt1, const wxDateTime& dt2); | |
46 | virtual bool GetRange(wxDateTime *dt1, wxDateTime *dt2) const; | |
47 | ||
48 | virtual void OSXGenerateEvent(const wxDateTime& dt); | |
49 | ||
50 | private: | |
51 | wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDatePickerCtrl); | |
52 | }; | |
53 | ||
54 | #endif // _WX_OSX_DATECTRL_H_ |