1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: Declaration of wxDateTimePickerCtrl class.
4 // Author: Vadim Zeitlin
6 // RCS-ID: $Id: wxhead.h,v 1.12 2010-04-22 12:44:51 zeitlin Exp $
7 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_DATETIME_CTRL_H_
12 #define _WX_DATETIME_CTRL_H_
16 #if wxUSE_DATEPICKCTRL
18 #define wxNEEDS_DATETIMEPICKCTRL
20 #include "wx/control.h" // the base class
22 #include "wx/datetime.h"
24 // ----------------------------------------------------------------------------
25 // wxDateTimePickerCtrl: Private common base class of wx{Date,Time}PickerCtrl.
26 // ----------------------------------------------------------------------------
28 // This class is an implementation detail and should not be used directly, only
29 // use the documented API of wxDateTimePickerCtrl and wxTimePickerCtrl.
30 class WXDLLIMPEXP_ADV wxDateTimePickerCtrlBase
: public wxControl
33 // Set/get the date or time (in the latter case, time part is ignored).
34 virtual void SetValue(const wxDateTime
& dt
) = 0;
35 virtual wxDateTime
GetValue() const = 0;
38 // Only MSW currently has any code to share between wxDatePickerCtrl and
39 // wxTimePickerCtrl, under the other platforms this class is trivial.
40 #if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
41 #include "wx/msw/datetimectrl.h"
43 typedef wxDateTimePickerCtrlBase wxDateTimePickerCtrl
;
46 #endif // wxUSE_DATEPICKCTRL
48 #endif // _WX_DATETIME_CTRL_H_