X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a1e4ec87317aa33fae6dbd8c55fbc699432d0026..6f026b5b63fe7ccb025e84509886f74772b9df13:/src/xrc/xh_radbt.cpp diff --git a/src/xrc/xh_radbt.cpp b/src/xrc/xh_radbt.cpp index e615ef9365..07617f264e 100644 --- a/src/xrc/xh_radbt.cpp +++ b/src/xrc/xh_radbt.cpp @@ -1,17 +1,12 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: xh_radbt.cpp +// Name: src/xrc/xh_radbt.cpp // Purpose: XRC resource for wxRadioButton // Author: Bob Mitchell // Created: 2000/03/21 -// RCS-ID: $Id$ // Copyright: (c) 2000 Bob Mitchell and Verant Interactive // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "xh_radbt.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -19,10 +14,13 @@ #pragma hdrstop #endif -#if wxUSE_XRC && wxUSE_RADIOBOX +#if wxUSE_XRC && wxUSE_RADIOBTN #include "wx/xrc/xh_radbt.h" -#include "wx/radiobut.h" + +#ifndef WX_PRECOMP + #include "wx/radiobut.h" +#endif IMPLEMENT_DYNAMIC_CLASS(wxRadioButtonXmlHandler, wxXmlResourceHandler) @@ -30,6 +28,7 @@ wxRadioButtonXmlHandler::wxRadioButtonXmlHandler() : wxXmlResourceHandler() { XRC_ADD_STYLE(wxRB_GROUP); + XRC_ADD_STYLE(wxRB_SINGLE); AddWindowStyles(); } @@ -63,4 +62,4 @@ bool wxRadioButtonXmlHandler::CanHandle(wxXmlNode *node) return IsOfClass(node, wxT("wxRadioButton")); } -#endif // wxUSE_XRC && wxUSE_NOTEBOOK +#endif // wxUSE_XRC && wxUSE_RADIOBTN