]> git.saurik.com Git - wxWidgets.git/blame - include/wx/datetimectrl.h
Fix assorted typos in comments and other non-code.
[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
8957e55e
VZ
6// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
7// Licence: wxWindows licence
8///////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_DATETIME_CTRL_H_
11#define _WX_DATETIME_CTRL_H_
12
13#include "wx/defs.h"
14
569c7d8c 15#if wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
8957e55e
VZ
16
17#define wxNEEDS_DATETIMEPICKCTRL
18
19#include "wx/control.h" // the base class
20
21#include "wx/datetime.h"
22
23// ----------------------------------------------------------------------------
24// wxDateTimePickerCtrl: Private common base class of wx{Date,Time}PickerCtrl.
25// ----------------------------------------------------------------------------
26
27// This class is an implementation detail and should not be used directly, only
28// use the documented API of wxDateTimePickerCtrl and wxTimePickerCtrl.
29class WXDLLIMPEXP_ADV wxDateTimePickerCtrlBase : public wxControl
30{
31public:
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;
35};
36
8957e55e
VZ
37#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
38 #include "wx/msw/datetimectrl.h"
fceac6bb
VZ
39#elif defined(__WXOSX_COCOA__) && !defined(__WXUNIVERSAL__)
40 #include "wx/osx/datetimectrl.h"
8957e55e
VZ
41#else
42 typedef wxDateTimePickerCtrlBase wxDateTimePickerCtrl;
43#endif
44
569c7d8c 45#endif // wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
8957e55e
VZ
46
47#endif // _WX_DATETIME_CTRL_H_