X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f80ea77b4a8bac4ab005bfc592f9cd3262ffa397..b64c92ee20b022a88d3fe5371b0e17fb7818894f:/samples/xrc/derivdlg.cpp diff --git a/samples/xrc/derivdlg.cpp b/samples/xrc/derivdlg.cpp index 64cda9224f..6a6da8a9a2 100644 --- a/samples/xrc/derivdlg.cpp +++ b/samples/xrc/derivdlg.cpp @@ -7,14 +7,6 @@ // Licence: wxWindows licence //----------------------------------------------------------------------------- -//----------------------------------------------------------------------------- -// GCC implementation -//----------------------------------------------------------------------------- - -#ifdef __GNUG__ - #pragma implementation "derivdlg.h" -#endif - //----------------------------------------------------------------------------- // Standard wxWidgets headers //----------------------------------------------------------------------------- @@ -50,7 +42,7 @@ BEGIN_EVENT_TABLE(PreferencesDialog, wxDialog) EVT_BUTTON( XRCID( "my_button" ), PreferencesDialog::OnMyButtonClicked ) - EVT_UPDATE_UI(XRCID( "my_checkbox" ), PreferencesDialog::OuUpdateUIMyCheckbox ) + EVT_UPDATE_UI(XRCID( "my_checkbox" ), PreferencesDialog::OnUpdateUIMyCheckbox ) // Note that the ID here isn't a XRCID, it is one of the standard wx ID's. EVT_BUTTON( wxID_OK, PreferencesDialog::OnOK ) END_EVENT_TABLE() @@ -64,11 +56,6 @@ PreferencesDialog::PreferencesDialog(wxWindow* parent) wxXmlResource::Get()->LoadDialog(this, parent, wxT("derived_dialog")); } -// Destructor. (Empty, as I don't need anything special done when destructing). -PreferencesDialog::~PreferencesDialog() -{ -} - //----------------------------------------------------------------------------- // Private members (including the event handlers) //----------------------------------------------------------------------------- @@ -85,7 +72,7 @@ void PreferencesDialog::OnMyButtonClicked( wxCommandEvent &WXUNUSED(event) ) // Update the enabled/disabled state of the edit/delete buttons depending on // whether a row (item) is selected in the listctrl -void PreferencesDialog::OuUpdateUIMyCheckbox( wxUpdateUIEvent &WXUNUSED(event) ) +void PreferencesDialog::OnUpdateUIMyCheckbox( wxUpdateUIEvent &WXUNUSED(event) ) { // Get a boolean value of whether the checkbox is checked bool myCheckBoxIsChecked;