]> git.saurik.com Git - wxWidgets.git/blob - include/wx/datetimectrl.h
Add wxActivateEvent::GetActivationReason().
[wxWidgets.git] / include / wx / datetimectrl.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/timectrl.h
3 // Purpose: Declaration of wxDateTimePickerCtrl class.
4 // Author: Vadim Zeitlin
5 // Created: 2011-09-22
6 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_DATETIME_CTRL_H_
11 #define _WX_DATETIME_CTRL_H_
12
13 #include "wx/defs.h"
14
15 #if wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
16
17 #define wxNEEDS_DATETIMEPICKCTRL
18
19 #include "wx/control.h" // the base class
20
21 #include "wx/datetime.h"
22
23 // ----------------------------------------------------------------------------
24 // wxDateTimePickerCtrl: Private common base class of wx{Date,Time}PickerCtrl.
25 // ----------------------------------------------------------------------------
26
27 // This class is an implementation detail and should not be used directly, only
28 // use the documented API of wxDateTimePickerCtrl and wxTimePickerCtrl.
29 class WXDLLIMPEXP_ADV wxDateTimePickerCtrlBase : public wxControl
30 {
31 public:
32 // Set/get the date or time (in the latter case, time part is ignored).
33 virtual void SetValue(const wxDateTime& dt) = 0;
34 virtual wxDateTime GetValue() const = 0;
35 };
36
37 #if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
38 #include "wx/msw/datetimectrl.h"
39 #elif defined(__WXOSX_COCOA__) && !defined(__WXUNIVERSAL__)
40 #include "wx/osx/datetimectrl.h"
41 #else
42 typedef wxDateTimePickerCtrlBase wxDateTimePickerCtrl;
43 #endif
44
45 #endif // wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
46
47 #endif // _WX_DATETIME_CTRL_H_