1
///////////////////////////////////////////////////////////////////////////////
3
// Purpose: Declaration of wxDateTimePickerCtrl class.
4
// Author: Vadim Zeitlin
6
// RCS-ID: $Id: datetimectrl.h 70071 2011-12-20 21:27:14Z VZ $
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 || wxUSE_TIMEPICKCTRL
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
#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
39
#include "wx/msw/datetimectrl.h"
40
#elif defined(__WXOSX_COCOA__) && !defined(__WXUNIVERSAL__)
41
#include "wx/osx/datetimectrl.h"
43
typedef wxDateTimePickerCtrlBase wxDateTimePickerCtrl;
46
#endif // wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
48
#endif // _WX_DATETIME_CTRL_H_