Fixes for wxUSE_SPIN... == 0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1273,7 +1273,7 @@
|
||||
#endif /* wxUSE_HELP */
|
||||
|
||||
#if wxUSE_WXHTML_HELP
|
||||
# if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK
|
||||
# if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "Built in help controller can't be compiled"
|
||||
# else
|
||||
@@ -1285,6 +1285,8 @@
|
||||
# define wxUSE_COMBOBOX 1
|
||||
# undef wxUSE_NOTEBOOK
|
||||
# define wxUSE_NOTEBOOK 1
|
||||
# undef wxUSE_SPINCTRL
|
||||
# define wxUSE_SPINCTRL 1
|
||||
# endif
|
||||
# endif
|
||||
#endif /* wxUSE_WXHTML_HELP */
|
||||
|
@@ -79,7 +79,9 @@ class WXDLLIMPEXP_ADV wxGridSelection;
|
||||
class WXDLLEXPORT wxCheckBox;
|
||||
class WXDLLEXPORT wxComboBox;
|
||||
class WXDLLEXPORT wxTextCtrl;
|
||||
#if wxUSE_SPINCTRL
|
||||
class WXDLLEXPORT wxSpinCtrl;
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// macros
|
||||
@@ -460,10 +462,19 @@ public:
|
||||
virtual wxString GetValue() const;
|
||||
|
||||
protected:
|
||||
#if wxUSE_SPINCTRL
|
||||
wxSpinCtrl *Spin() const { return (wxSpinCtrl *)m_control; }
|
||||
#endif
|
||||
|
||||
// if HasRange(), we use wxSpinCtrl - otherwise wxTextCtrl
|
||||
bool HasRange() const { return m_min != m_max; }
|
||||
bool HasRange() const
|
||||
{
|
||||
#if wxUSE_SPINCTRL
|
||||
return m_min != m_max;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
// string representation of m_valueOld
|
||||
wxString GetString() const
|
||||
|
@@ -96,6 +96,17 @@
|
||||
#define wxUSE_CHECKLISTBOX 0
|
||||
#endif
|
||||
|
||||
#if wxUSE_SPINCTRL
|
||||
# if !wxUSE_SPINBTN
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxSpinCtrl requires wxSpinButton on MSW"
|
||||
# else
|
||||
# undef wxUSE_SPINBTN
|
||||
# define wxUSE_SPINBTN 1
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
|
||||
/* BC++ 4.0 can't compile JPEG library */
|
||||
#undef wxUSE_LIBJPEG
|
||||
|
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "wx/spinbutt.h" // the base class
|
||||
|
||||
#if wxUSE_SPINCTRL
|
||||
|
||||
#include "wx/dynarray.h"
|
||||
|
||||
class WXDLLEXPORT wxSpinCtrl;
|
||||
@@ -116,6 +118,8 @@ private:
|
||||
DECLARE_NO_COPY_CLASS(wxSpinCtrl)
|
||||
};
|
||||
|
||||
#endif // wxUSE_SPINCTRL
|
||||
|
||||
#endif // _WX_MSW_SPINCTRL_H_
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user