// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "calctrl.h"
-#endif
-
#ifndef _WX_GENERIC_CALCTRL_H
#define _WX_GENERIC_CALCTRL_H
class WXDLLIMPEXP_ADV wxCalendarCtrl : public wxControl
{
-friend class wxMonthComboBox;
-friend class wxYearSpinCtrl;
-
public:
// construction
wxCalendarCtrl() { Init(); }
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;
// 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;