projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move ScrollWindow() implementation to the base class and call private DoScrollHorz...
[wxWidgets.git]
/
include
/
wx
/
palmos
/
datectrl.h
diff --git
a/include/wx/palmos/datectrl.h
b/include/wx/palmos/datectrl.h
index e5c1921412033c89cff0c3f1e30bcbdc824c256b..4b4d086135cc07ba823ca1a8e866171155f0e079 100644
(file)
--- a/
include/wx/palmos/datectrl.h
+++ b/
include/wx/palmos/datectrl.h
@@
-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_