X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d9170b47d153c4f7835a41c4b7698bda34905724..51f5e2822cdcb8b433b1d117f186dfd8bb06e240:/include/wx/generic/calctrl.h diff --git a/include/wx/generic/calctrl.h b/include/wx/generic/calctrl.h index c3cd1eb23f..25b5902d70 100644 --- a/include/wx/generic/calctrl.h +++ b/include/wx/generic/calctrl.h @@ -163,6 +163,14 @@ public: void OnSysColourChanged(wxSysColourChangedEvent& event); +protected: + // override some base class virtuals + virtual wxSize DoGetBestSize() const; + virtual void DoGetPosition(int *x, int *y) const; + virtual void DoGetSize(int *width, int *height) const; + virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags); + virtual void DoMoveWindow(int x, int y, int width, int height); + private: // common part of all ctors void Init(); @@ -179,13 +187,6 @@ private: void OnYearChange(wxCommandEvent& event); void OnYearTextChange(wxCommandEvent& event); - // override some base class virtuals - virtual wxSize DoGetBestSize() const; - virtual void DoGetPosition(int *x, int *y) const; - virtual void DoGetSize(int *width, int *height) const; - virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags); - virtual void DoMoveWindow(int x, int y, int width, int height); - // (re)calc m_widthCol and m_heightRow void RecalcGeometry(); @@ -260,7 +261,7 @@ private: // OnPaint helper-methods // Highlight the [fromdate : todate] range using pen and brush - void HighlightRange(wxPaintDC* dc, const wxDateTime& fromdate, const wxDateTime& todate, wxPen* pen, wxBrush* brush); + void HighlightRange(wxPaintDC* dc, const wxDateTime& fromdate, const wxDateTime& todate, const wxPen* pen, const wxBrush* brush); // Get the "coordinates" for the date relative to the month currently displayed. // using (day, week): upper left coord is (1, 1), lower right coord is (7, 6)