]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/palmos/datectrl.h
Give timers a generated ID if wxID_ANY is passed
[wxWidgets.git] / include / wx / palmos / datectrl.h
index e5c1921412033c89cff0c3f1e30bcbdc824c256b..4b4d086135cc07ba823ca1a8e866171155f0e079 100644 (file)
@@ -20,7 +20,7 @@ class WXDLLIMPEXP_ADV wxDatePickerCtrl : public wxDatePickerCtrlBase
 {
 public:
     // ctors
 {
 public:
     // ctors
-    wxDatePickerCtrl() { }
+    wxDatePickerCtrl() { Init(); }
 
     wxDatePickerCtrl(wxWindow *parent,
                      wxWindowID id,
 
     wxDatePickerCtrl(wxWindow *parent,
                      wxWindowID id,
@@ -31,6 +31,7 @@ public:
                      const wxValidator& validator = wxDefaultValidator,
                      const wxString& name = wxDatePickerCtrlNameStr)
     {
                      const wxValidator& validator = wxDefaultValidator,
                      const wxString& name = wxDatePickerCtrlNameStr)
     {
+        Init();
         Create(parent, id, dt, pos, size, style, validator, name);
     }
 
         Create(parent, id, dt, pos, size, style, validator, name);
     }
 
@@ -53,10 +54,19 @@ public:
     virtual void SetRange(const wxDateTime& dt1, const wxDateTime& dt2);
     virtual bool GetRange(wxDateTime *dt1, wxDateTime *dt2) const;
 
     virtual void SetRange(const wxDateTime& dt1, const wxDateTime& dt2);
     virtual bool GetRange(wxDateTime *dt1, wxDateTime *dt2) const;
 
+    // send a notification event, return true if processed
+    bool SendClickEvent();
+
 protected:
     virtual wxSize DoGetBestSize() const;
 
 protected:
     virtual wxSize DoGetBestSize() const;
 
-    DECLARE_NO_COPY_CLASS(wxDatePickerCtrl)
+private:
+    wxDateTime m_dt;
+
+    void Init() { m_dt = wxDateTime::Today(); }
+
+
+    DECLARE_DYNAMIC_CLASS_NO_COPY(wxDatePickerCtrl)
 };
 
 #endif // _WX_PALMOS_DATECTRL_H_
 };
 
 #endif // _WX_PALMOS_DATECTRL_H_