]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/datectrl.h
Refresh wxMSW wxStaticBitmap when its size changes.
[wxWidgets.git] / include / wx / osx / datectrl.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/datectrl.h
3 // Purpose: Declaration of wxOSX-specific wxDatePickerCtrl class.
4 // Author: Vadim Zeitlin
5 // Created: 2011-12-18
6 // RCS-ID: $Id: wxhead.h,v 1.12 2010-04-22 12:44:51 zeitlin Exp $
7 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_OSX_DATECTRL_H_
12 #define _WX_OSX_DATECTRL_H_
13
14 // ----------------------------------------------------------------------------
15 // wxDatePickerCtrl
16 // ----------------------------------------------------------------------------
17
18 class WXDLLIMPEXP_ADV wxDatePickerCtrl : public wxDatePickerCtrlBase
19 {
20 public:
21 // Constructors.
22 wxDatePickerCtrl() { }
23
24 wxDatePickerCtrl(wxWindow *parent,
25 wxWindowID id,
26 const wxDateTime& dt = wxDefaultDateTime,
27 const wxPoint& pos = wxDefaultPosition,
28 const wxSize& size = wxDefaultSize,
29 long style = wxDP_DEFAULT | wxDP_SHOWCENTURY,
30 const wxValidator& validator = wxDefaultValidator,
31 const wxString& name = wxDatePickerCtrlNameStr)
32 {
33 Create(parent, id, dt, pos, size, style, validator, name);
34 }
35
36 bool Create(wxWindow *parent,
37 wxWindowID id,
38 const wxDateTime& dt = wxDefaultDateTime,
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize,
41 long style = wxDP_DEFAULT | wxDP_SHOWCENTURY,
42 const wxValidator& validator = wxDefaultValidator,
43 const wxString& name = wxDatePickerCtrlNameStr);
44
45 // Implement the base class pure virtuals.
46 virtual void SetRange(const wxDateTime& dt1, const wxDateTime& dt2);
47 virtual bool GetRange(wxDateTime *dt1, wxDateTime *dt2) const;
48
49 virtual void OSXGenerateEvent(const wxDateTime& dt);
50
51 private:
52 wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDatePickerCtrl);
53 };
54
55 #endif // _WX_OSX_DATECTRL_H_