]> git.saurik.com Git - wxWidgets.git/blame - include/wx/datetimectrl.h
Don't create multiple parent-less top level frames in layout sample.
[wxWidgets.git] / include / wx / datetimectrl.h
CommitLineData
8957e55e
VZ
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
569c7d8c 16#if wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
8957e55e
VZ
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.
30class WXDLLIMPEXP_ADV wxDateTimePickerCtrlBase : public wxControl
31{
32public:
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
8957e55e
VZ
38#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
39 #include "wx/msw/datetimectrl.h"
fceac6bb
VZ
40#elif defined(__WXOSX_COCOA__) && !defined(__WXUNIVERSAL__)
41 #include "wx/osx/datetimectrl.h"
8957e55e
VZ
42#else
43 typedef wxDateTimePickerCtrlBase wxDateTimePickerCtrl;
44#endif
45
569c7d8c 46#endif // wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
8957e55e
VZ
47
48#endif // _WX_DATETIME_CTRL_H_