X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..bc63f2c969b303cf5f5e7f9adc9cd7c565f1d9b0:/include/wx/mac/carbon/spinctrl.h diff --git a/include/wx/mac/carbon/spinctrl.h b/include/wx/mac/carbon/spinctrl.h index 9ffd5d1ee2..5c513561a6 100755 --- a/include/wx/mac/carbon/spinctrl.h +++ b/include/wx/mac/carbon/spinctrl.h @@ -22,12 +22,12 @@ #if wxUSE_SPINBTN -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "spinctlg.h" -#endif +#include "wx/containr.h" class WXDLLEXPORT wxSpinButton; class WXDLLEXPORT wxTextCtrl; +class WXDLLEXPORT wxSpinCtrlText; +class WXDLLEXPORT wxSpinCtrlButton; // ---------------------------------------------------------------------------- // wxSpinCtrl is a combination of wxTextCtrl and wxSpinButton @@ -93,6 +93,8 @@ public: // number is out of range bool GetTextValue(int *val) const; + WX_DECLARE_CONTROL_CONTAINER(); + protected: // override the base class virtuals involved into geometry calculations virtual wxSize DoGetBestSize() const; @@ -106,7 +108,12 @@ private: wxTextCtrl *m_text; wxSpinButton *m_btn; + friend class wxSpinCtrlText; + friend class wxSpinCtrlButton; + + int m_oldValue; private: + DECLARE_EVENT_TABLE() DECLARE_DYNAMIC_CLASS(wxSpinCtrl) };