1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: Declaration of wxDateTimePickerCtrl class.
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_DATETIME_CTRL_H_
11 #define _WX_DATETIME_CTRL_H_
15 #if wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
17 #define wxNEEDS_DATETIMEPICKCTRL
19 #include "wx/control.h" // the base class
21 #include "wx/datetime.h"
23 // ----------------------------------------------------------------------------
24 // wxDateTimePickerCtrl: Private common base class of wx{Date,Time}PickerCtrl.
25 // ----------------------------------------------------------------------------
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
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;
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"
42 typedef wxDateTimePickerCtrlBase wxDateTimePickerCtrl
;
45 #endif // wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
47 #endif // _WX_DATETIME_CTRL_H_