// Created: 28.10.99
// RCS-ID: $Id$
// Copyright: (c) Vadim Zeitlin
-// Licence: wxWidgets licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_MAC_SPINCTRL_H_
#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
// 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;
wxTextCtrl *m_text;
wxSpinButton *m_btn;
+ friend class wxSpinCtrlText;
+ friend class wxSpinCtrlButton;
+
+ int m_oldValue;
private:
+ DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
};