git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56023
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
@beginTable
@hdr3col{property, type, description}
@row3col{range, integer,
@beginTable
@hdr3col{property, type, description}
@row3col{range, integer,
- Maximum value of the gauge (default: wxGAUGE_DEFAULT_RANGE).}
+ Maximum value of the gauge (default: 100).}
@row3col{value, integer,
Initial value of the control (default: 0).}
@row3col{shadow, @ref xrc_format_type_dimension,
@row3col{value, integer,
Initial value of the control (default: 0).}
@row3col{shadow, @ref xrc_format_type_dimension,
@beginTable
@hdr3col{property, type, description}
@row3col{value, integer,
@beginTable
@hdr3col{property, type, description}
@row3col{value, integer,
- Initial value of the control (default: wxSL_DEFAULT_VALUE).}
+ Initial value of the control (default: 0).}
- Minimum allowed value (default: wxSL_DEFAULT_MIN).}
+ Minimum allowed value (default: 0).}
- Maximum allowed value (default: wxSL_DEFAULT_MAX).}
+ Maximum allowed value (default: 100).}
@row3col{pagesize, integer,
Line size; number of steps the slider moves when the user moves
pages up or down (default: unset).}
@row3col{pagesize, integer,
Line size; number of steps the slider moves when the user moves
pages up or down (default: unset).}
@beginTable
@hdr3col{property, type, description}
@row3col{value, integer,
@beginTable
@hdr3col{property, type, description}
@row3col{value, integer,
- Initial value of the control (default: wxSP_DEFAULT_VALUE).}
+ Initial value of the control (default: 0).}
- Minimum allowed value (default: wxSP_DEFAULT_MIN).}
+ Minimum allowed value (default: 0).}
- Maximum allowed value (default: wxSP_DEFAULT_MAX).}
+ Maximum allowed value (default: 100).}
class WXDLLIMPEXP_XRC wxGaugeXmlHandler : public wxXmlResourceHandler
{
class WXDLLIMPEXP_XRC wxGaugeXmlHandler : public wxXmlResourceHandler
{
- DECLARE_DYNAMIC_CLASS(wxGaugeXmlHandler)
- enum
- {
- wxGAUGE_DEFAULT_RANGE = 100
- };
-
public:
wxGaugeXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxGaugeXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
+
+ DECLARE_DYNAMIC_CLASS(wxGaugeXmlHandler)
};
#endif // wxUSE_XRC && wxUSE_GAUGE
};
#endif // wxUSE_XRC && wxUSE_GAUGE
class WXDLLIMPEXP_XRC wxScrollBarXmlHandler : public wxXmlResourceHandler
{
class WXDLLIMPEXP_XRC wxScrollBarXmlHandler : public wxXmlResourceHandler
{
- DECLARE_DYNAMIC_CLASS(wxScrollBarXmlHandler)
- enum
- {
- wxSL_DEFAULT_VALUE = 0,
- wxSL_DEFAULT_MIN = 0,
- wxSL_DEFAULT_MAX = 100
- };
-
public:
wxScrollBarXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxScrollBarXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
+
+ DECLARE_DYNAMIC_CLASS(wxScrollBarXmlHandler)
};
#endif // wxUSE_XRC && wxUSE_SCROLLBAR
};
#endif // wxUSE_XRC && wxUSE_SCROLLBAR
class WXDLLIMPEXP_XRC wxSliderXmlHandler : public wxXmlResourceHandler
{
class WXDLLIMPEXP_XRC wxSliderXmlHandler : public wxXmlResourceHandler
{
- DECLARE_DYNAMIC_CLASS(wxSliderXmlHandler)
- enum
- {
- wxSL_DEFAULT_VALUE = 0,
- wxSL_DEFAULT_MIN = 0,
- wxSL_DEFAULT_MAX = 100
- };
-
public:
wxSliderXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxSliderXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
+
+ DECLARE_DYNAMIC_CLASS(wxSliderXmlHandler)
};
#endif // wxUSE_XRC && wxUSE_SLIDER
};
#endif // wxUSE_XRC && wxUSE_SLIDER
class WXDLLIMPEXP_XRC wxSpinButtonXmlHandler : public wxXmlResourceHandler
{
class WXDLLIMPEXP_XRC wxSpinButtonXmlHandler : public wxXmlResourceHandler
{
- DECLARE_DYNAMIC_CLASS(wxSpinButtonXmlHandler)
- enum
- {
- wxSP_DEFAULT_VALUE = 0,
- wxSP_DEFAULT_MIN = 0,
- wxSP_DEFAULT_MAX = 100
- };
-
public:
wxSpinButtonXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxSpinButtonXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
+
+ DECLARE_DYNAMIC_CLASS(wxSpinButtonXmlHandler)
};
#endif // wxUSE_SPINBTN
};
#endif // wxUSE_SPINBTN
class WXDLLIMPEXP_XRC wxSpinCtrlXmlHandler : public wxXmlResourceHandler
{
class WXDLLIMPEXP_XRC wxSpinCtrlXmlHandler : public wxXmlResourceHandler
{
- DECLARE_DYNAMIC_CLASS(wxSpinCtrlXmlHandler)
- enum
- {
- wxSP_DEFAULT_VALUE = 0,
- wxSP_DEFAULT_MIN = 0,
- wxSP_DEFAULT_MAX = 100
- };
-
public:
wxSpinCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxSpinCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
+
+ DECLARE_DYNAMIC_CLASS(wxSpinCtrlXmlHandler)
};
#endif // wxUSE_SPINCTRL
};
#endif // wxUSE_SPINCTRL
#include "wx/gauge.h"
#endif
#include "wx/gauge.h"
#endif
+static const long DEFAULT_RANGE = 100;
+
IMPLEMENT_DYNAMIC_CLASS(wxGaugeXmlHandler, wxXmlResourceHandler)
wxGaugeXmlHandler::wxGaugeXmlHandler()
IMPLEMENT_DYNAMIC_CLASS(wxGaugeXmlHandler, wxXmlResourceHandler)
wxGaugeXmlHandler::wxGaugeXmlHandler()
control->Create(m_parentAsWindow,
GetID(),
control->Create(m_parentAsWindow,
GetID(),
- GetLong(wxT("range"), wxGAUGE_DEFAULT_RANGE),
+ GetLong(wxT("range"), DEFAULT_RANGE),
GetPosition(), GetSize(),
GetStyle(),
wxDefaultValidator,
GetPosition(), GetSize(),
GetStyle(),
wxDefaultValidator,
#include "wx/slider.h"
#endif
#include "wx/slider.h"
#endif
+static const long DEFAULT_VALUE = 0;
+static const long DEFAULT_MIN = 0;
+static const long DEFAULT_MAX = 100;
+
+
IMPLEMENT_DYNAMIC_CLASS(wxSliderXmlHandler, wxXmlResourceHandler)
wxSliderXmlHandler::wxSliderXmlHandler()
IMPLEMENT_DYNAMIC_CLASS(wxSliderXmlHandler, wxXmlResourceHandler)
wxSliderXmlHandler::wxSliderXmlHandler()
control->Create(m_parentAsWindow,
GetID(),
control->Create(m_parentAsWindow,
GetID(),
- GetLong(wxT("value"), wxSL_DEFAULT_VALUE),
- GetLong(wxT("min"), wxSL_DEFAULT_MIN),
- GetLong(wxT("max"), wxSL_DEFAULT_MAX),
+ GetLong(wxT("value"), DEFAULT_VALUE),
+ GetLong(wxT("min"), DEFAULT_MIN),
+ GetLong(wxT("max"), DEFAULT_MAX),
GetPosition(), GetSize(),
GetStyle(),
wxDefaultValidator,
GetPosition(), GetSize(),
GetStyle(),
wxDefaultValidator,
#include "wx/xrc/xh_spin.h"
#include "wx/xrc/xh_spin.h"
+static const long DEFAULT_VALUE = 0;
+static const long DEFAULT_MIN = 0;
+static const long DEFAULT_MAX = 100;
+
IMPLEMENT_DYNAMIC_CLASS(wxSpinButtonXmlHandler, wxXmlResourceHandler)
wxSpinButtonXmlHandler::wxSpinButtonXmlHandler()
IMPLEMENT_DYNAMIC_CLASS(wxSpinButtonXmlHandler, wxXmlResourceHandler)
wxSpinButtonXmlHandler::wxSpinButtonXmlHandler()
GetStyle(wxT("style"), wxSP_VERTICAL | wxSP_ARROW_KEYS),
GetName());
GetStyle(wxT("style"), wxSP_VERTICAL | wxSP_ARROW_KEYS),
GetName());
- control->SetValue(GetLong( wxT("value"), wxSP_DEFAULT_VALUE));
- control->SetRange(GetLong( wxT("min"), wxSP_DEFAULT_MIN),
- GetLong(wxT("max"), wxSP_DEFAULT_MAX));
+ control->SetValue(GetLong( wxT("value"), DEFAULT_VALUE));
+ control->SetRange(GetLong( wxT("min"), DEFAULT_MIN),
+ GetLong(wxT("max"), DEFAULT_MAX));
SetupWindow(control);
return control;
SetupWindow(control);
return control;
GetText(wxT("value")),
GetPosition(), GetSize(),
GetStyle(wxT("style"), wxSP_ARROW_KEYS),
GetText(wxT("value")),
GetPosition(), GetSize(),
GetStyle(wxT("style"), wxSP_ARROW_KEYS),
- GetLong(wxT("min"), wxSP_DEFAULT_MIN),
- GetLong(wxT("max"), wxSP_DEFAULT_MAX),
- GetLong(wxT("value"), wxSP_DEFAULT_VALUE),
+ GetLong(wxT("min"), DEFAULT_MIN),
+ GetLong(wxT("max"), DEFAULT_MAX),
+ GetLong(wxT("value"), DEFAULT_VALUE),
GetName());
SetupWindow(control);
GetName());
SetupWindow(control);