backport wxspinctrl::get/setbase form gtk ->gtk1

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jouk Jansen
2012-09-20 12:33:05 +00:00
parent 95725e35d8
commit bab5e0d028
2 changed files with 80 additions and 1 deletions

View File

@@ -68,7 +68,10 @@ public:
GtkAdjustment *m_adjust;
float m_oldPos;
protected:
virtual int GetBase() const { return m_base; }
virtual bool SetBase(int base);
protected:
virtual wxSize DoGetBestSize() const;
// Widgets that use the style->base colour for the BG colour should
@@ -76,6 +79,14 @@ protected:
virtual bool UseGTKStyleBase() const { return true; }
private:
// Common part of all ctors.
void Init()
{
m_base = 10;
}
int m_base;
DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
DECLARE_EVENT_TABLE()
};