X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/40ff126ac4ff57ab4aa22a5c7c7ce621479e8739..07aaf32633ecf18ec3edfbb41793a112914792d0:/src/xrc/xh_gauge.cpp?ds=inline diff --git a/src/xrc/xh_gauge.cpp b/src/xrc/xh_gauge.cpp index 2b8a9b9791..99ce99a363 100644 --- a/src/xrc/xh_gauge.cpp +++ b/src/xrc/xh_gauge.cpp @@ -18,12 +18,17 @@ #if wxUSE_XRC && wxUSE_GAUGE #include "wx/xrc/xh_gauge.h" -#include "wx/gauge.h" + +#ifndef WX_PRECOMP + #include "wx/gauge.h" +#endif + +static const long DEFAULT_RANGE = 100; IMPLEMENT_DYNAMIC_CLASS(wxGaugeXmlHandler, wxXmlResourceHandler) wxGaugeXmlHandler::wxGaugeXmlHandler() -: wxXmlResourceHandler() + :wxXmlResourceHandler() { XRC_ADD_STYLE(wxGA_HORIZONTAL); XRC_ADD_STYLE(wxGA_VERTICAL); @@ -40,7 +45,7 @@ wxObject *wxGaugeXmlHandler::DoCreateResource() control->Create(m_parentAsWindow, GetID(), - GetLong(wxT("range"), wxGAUGE_DEFAULT_RANGE), + GetLong(wxT("range"), DEFAULT_RANGE), GetPosition(), GetSize(), GetStyle(), wxDefaultValidator,