]>
git.saurik.com Git - wxWidgets.git/blob - src/osx/datetimectrl_osx.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/osx/datetimectrl_osx.cpp
3 // Purpose: Implementation of wxDateTimePickerCtrl for OS X.
4 // Author: Vadim Zeitlin
6 // RCS-ID: $Id: wxhead.cpp,v 1.11 2010-04-22 12:44:51 zeitlin Exp $
7 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 // for compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
26 #if wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
31 #include "wx/datetimectrl.h"
33 #include "wx/osx/core/private/datetimectrl.h"
35 // ============================================================================
36 // wxDateTimePickerCtrl implementation
37 // ============================================================================
39 wxDateTimeWidgetImpl
* wxDateTimePickerCtrl::GetDateTimePeer() const
41 return static_cast<wxDateTimeWidgetImpl
*>(GetPeer());
44 void wxDateTimePickerCtrl::SetValue(const wxDateTime
& dt
)
46 GetDateTimePeer()->SetDateTime(dt
);
49 wxDateTime
wxDateTimePickerCtrl::GetValue() const
51 return GetDateTimePeer()->GetDateTime();
55 #endif // wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL