X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab473127c64c9e20c3401bd8f0e173953c049d45..f1db433a3bcaa0c1c8a6a149eafa5e1f0f47cb71:/include/wx/generic/calctrl.h diff --git a/include/wx/generic/calctrl.h b/include/wx/generic/calctrl.h index cb10d1019b..0ac0091442 100644 --- a/include/wx/generic/calctrl.h +++ b/include/wx/generic/calctrl.h @@ -31,9 +31,6 @@ class WXDLLEXPORT wxSpinCtrl; class WXDLLIMPEXP_ADV wxCalendarCtrl : public wxControl { -friend class wxMonthComboBox; -friend class wxYearSpinCtrl; - public: // construction wxCalendarCtrl() { Init(); } @@ -179,6 +176,7 @@ private: void OnChar(wxKeyEvent& event); void OnMonthChange(wxCommandEvent& event); void OnYearChange(wxCommandEvent& event); + void OnYearTextChange(wxCommandEvent& event); // override some base class virtuals virtual wxSize DoGetBestSize() const; @@ -248,6 +246,10 @@ private: // show the correct controls void ShowCurrentControls(); + // create the month combo and year spin controls + void CreateMonthComboBox(); + void CreateYearSpinCtrl(); + public: // get the currently shown control for month/year wxControl *GetMonthControl() const;