~brian-sidebotham/wxwidgets-cmake/wxpython-2.9.4

« back to all changes in this revision

Viewing changes to include/wx/datetimectrl.h

  • Committer: Brian Sidebotham
  • Date: 2013-08-03 14:30:08 UTC
  • Revision ID: brian.sidebotham@gmail.com-20130803143008-c7806tkych1tp6fc
Initial import into Bazaar

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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: datetimectrl.h 70071 2011-12-20 21:27:14Z VZ $
 
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
 
 
16
#if wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
 
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.
 
30
class WXDLLIMPEXP_ADV wxDateTimePickerCtrlBase : public wxControl
 
31
{
 
32
public:
 
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
 
 
38
#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
 
39
    #include "wx/msw/datetimectrl.h"
 
40
#elif defined(__WXOSX_COCOA__) && !defined(__WXUNIVERSAL__)
 
41
    #include "wx/osx/datetimectrl.h"
 
42
#else
 
43
    typedef wxDateTimePickerCtrlBase wxDateTimePickerCtrl;
 
44
#endif
 
45
 
 
46
#endif // wxUSE_DATEPICKCTRL || wxUSE_TIMEPICKCTRL
 
47
 
 
48
#endif // _WX_DATETIME_CTRL_H_