X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/405f0fef4b3f12fab58696be5a02e1f2c06d350e..19c7ac3d3bf1ac2113505a805a79c40ce3db1f5b:/include/wx/generic/spinctlg.h?ds=sidebyside diff --git a/include/wx/generic/spinctlg.h b/include/wx/generic/spinctlg.h index c5078faa75..d01f8ba5bc 100644 --- a/include/wx/generic/spinctlg.h +++ b/include/wx/generic/spinctlg.h @@ -40,7 +40,7 @@ class wxSpinCtrlTextGeneric; // wxTextCtrl used for the wxSpinCtrlGenericBase // function ambiguity. // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxSpinCtrlGenericBase : public wxSpinCtrlBase +class WXDLLIMPEXP_CORE wxSpinCtrlGenericBase : public wxSpinCtrlBase { public: wxSpinCtrlGenericBase() { Init(); } @@ -80,7 +80,7 @@ public: // forward these functions to all subcontrols virtual bool Enable(bool enable = true); virtual bool Show(bool show = true); - virtual bool Reparent(wxWindow *newParent); + virtual bool Reparent(wxWindowBase *newParent); // get the subcontrols wxTextCtrl *GetText() const { return m_textCtrl; } @@ -140,7 +140,7 @@ private: #include "wx/textctrl.h" -class WXDLLEXPORT wxSpinCtrlGenericBase : public wxTextCtrl +class WXDLLIMPEXP_CORE wxSpinCtrlGenericBase : public wxTextCtrl { public: wxSpinCtrlGenericBase() : m_value(0), m_min(0), m_max(100), @@ -247,10 +247,10 @@ public: } // accessors - int GetValue(wxSPINCTRL_GETVALUE_FIX) const { return int(DoGetValue() + 0.5); } - int GetMin() const { return int(m_min + 0.5); } - int GetMax() const { return int(m_max + 0.5); } - int GetIncrement() const { return int(m_increment + 0.5); } + int GetValue(wxSPINCTRL_GETVALUE_FIX) const { return wxRound( DoGetValue() ); } + int GetMin() const { return wxRound( m_min ); } + int GetMax() const { return wxRound( m_max ); } + int GetIncrement() const { return wxRound( m_increment ); } // operations void SetValue(const wxString& value) { wxSpinCtrlGenericBase::SetValue(value); } // visibility problem w/ gcc