1
///////////////////////////////////////////////////////////////////////////////
2
// Name: wx/osx/core/private/datetime.h
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_OSX_CORE_PRIVATE_DATETIMECTRL_H_
12
#define _WX_OSX_CORE_PRIVATE_DATETIMECTRL_H_
14
#if wxUSE_DATEPICKCTRL
16
#include "wx/osx/private.h"
18
#include "wx/datetime.h"
20
enum wxDateTimeWidgetKind
22
wxDateTimeWidget_YearMonthDay,
23
wxDateTimeWidget_HourMinuteSecond
26
// ----------------------------------------------------------------------------
27
// wxDateTimeWidgetImpl: peer class for wxDateTimePickerCtrl.
28
// ----------------------------------------------------------------------------
30
class wxDateTimeWidgetImpl
32
: public wxWidgetCocoaImpl
33
#elif wxOSX_USE_CARBON
36
#error "Unsupported platform"
40
static wxDateTimeWidgetImpl*
41
CreateDateTimePicker(wxDateTimePickerCtrl* wxpeer,
46
wxDateTimeWidgetKind kind);
48
virtual void SetDateTime(const wxDateTime& dt) = 0;
49
virtual wxDateTime GetDateTime() const = 0;
51
virtual void SetDateRange(const wxDateTime& dt1, const wxDateTime& dt2) = 0;
52
virtual bool GetDateRange(wxDateTime* dt1, wxDateTime* dt2) = 0;
54
virtual ~wxDateTimeWidgetImpl() { }
58
wxDateTimeWidgetImpl(wxDateTimePickerCtrl* wxpeer, WXWidget view)
59
: wxWidgetCocoaImpl(wxpeer, view)
62
#elif wxOSX_USE_CARBON
63
// There is no Carbon implementation of this control yet so we don't need
64
// any ctor for it yet but it should be added here if Carbon version is
69
#endif // wxUSE_DATEPICKCTRL
71
#endif // _WX_OSX_CORE_PRIVATE_DATETIMECTRL_H_