]> git.saurik.com Git - wxWidgets.git/blob - src/osx/datetimectrl_osx.cpp
adding comment
[wxWidgets.git] / 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
5 // Created: 2011-12-18
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 ///////////////////////////////////////////////////////////////////////////////
10
11 // ============================================================================
12 // declarations
13 // ============================================================================
14
15 // ----------------------------------------------------------------------------
16 // headers
17 // ----------------------------------------------------------------------------
18
19 // for compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
21
22 #ifdef __BORLANDC__
23 #pragma hdrstop
24 #endif
25
26 #if wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
27
28 #ifndef WX_PRECOMP
29 #endif // WX_PRECOMP
30
31 #include "wx/datetimectrl.h"
32
33 #include "wx/osx/core/private/datetimectrl.h"
34
35 // ============================================================================
36 // wxDateTimePickerCtrl implementation
37 // ============================================================================
38
39 wxDateTimeWidgetImpl* wxDateTimePickerCtrl::GetDateTimePeer() const
40 {
41 return static_cast<wxDateTimeWidgetImpl*>(GetPeer());
42 }
43
44 void wxDateTimePickerCtrl::SetValue(const wxDateTime& dt)
45 {
46 GetDateTimePeer()->SetDateTime(dt);
47 }
48
49 wxDateTime wxDateTimePickerCtrl::GetValue() const
50 {
51 return GetDateTimePeer()->GetDateTime();
52 }
53
54
55 #endif // wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL