X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1169a91932273bc84c23ed9dbd0a2da064d59d66..44d0f703f9cba47009e33cd248f78bef941ba99b:/src/univ/radiobut.cpp diff --git a/src/univ/radiobut.cpp b/src/univ/radiobut.cpp index 56676fe82c..41958ea779 100644 --- a/src/univ/radiobut.cpp +++ b/src/univ/radiobut.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: univ/radiobut.cpp +// Name: src/univ/radiobut.cpp // Purpose: wxRadioButton implementation // Author: Vadim Zeitlin // Modified by: @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "univradiobut.h" -#endif - #include "wx/wxprec.h" #ifdef __BORLANDC__ @@ -29,9 +25,10 @@ #if wxUSE_RADIOBTN +#include "wx/radiobut.h" + #ifndef WX_PRECOMP #include "wx/dcclient.h" - #include "wx/radiobut.h" #include "wx/validate.h" #endif @@ -50,25 +47,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl) // wxRadioButton // ---------------------------------------------------------------------------- -wxRadioButton::wxRadioButton() -{ - Init(); -} - -wxRadioButton::wxRadioButton(wxWindow *parent, - wxWindowID id, - const wxString& label, - const wxPoint& pos, - const wxSize& size, - long style, - const wxValidator& validator, - const wxString& name) -{ - Init(); - - Create(parent, id, label, pos, size, style, validator, name); -} - bool wxRadioButton::Create(wxWindow *parent, wxWindowID id, const wxString &label, @@ -81,10 +59,10 @@ bool wxRadioButton::Create(wxWindow *parent, if ( !wxCheckBox::Create(parent, id, label, pos, size, style, validator, name) ) { - return FALSE; + return false; } - return TRUE; + return true; } // ---------------------------------------------------------------------------- @@ -153,7 +131,7 @@ void wxRadioButton::ClearValue() { if ( IsChecked() ) { - SetValue(FALSE); + SetValue(false); } } @@ -199,4 +177,3 @@ void wxRadioButton::DoDraw(wxControlRenderer *renderer) } #endif // wxUSE_RADIOBTN -