]> git.saurik.com Git - wxWidgets.git/blob - include/wx/datetimectrl.h
Destroy modeless wxGenericAboutDialog when it is closed.
[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 // 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 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_DATETIME_CTRL_H_
12 #define _WX_DATETIME_CTRL_H_
13
14 #include "wx/defs.h"
15
16 #if wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
17
18 #define wxNEEDS_DATETIMEPICKCTRL
19
20 #include "wx/control.h" // the base class
21
22 #include "wx/datetime.h"
23
24 // ----------------------------------------------------------------------------
25 // wxDateTimePickerCtrl: Private common base class of wx{Date,Time}PickerCtrl.
26 // ----------------------------------------------------------------------------
27
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
31 {
32 public:
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;
36 };
37
38 #if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
39 #include "wx/msw/datetimectrl.h"
40 #elif defined(__WXOSX_COCOA__) && !defined(__WXUNIVERSAL__)
41 #include "wx/osx/datetimectrl.h"
42 #else
43 typedef wxDateTimePickerCtrlBase wxDateTimePickerCtrl;
44 #endif
45
46 #endif // wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
47
48 #endif // _WX_DATETIME_CTRL_H_