From: Vadim Zeitlin Date: Thu, 16 May 2013 14:43:02 +0000 (+0000) Subject: Make wxPreferencesEditor::Show() virtual. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/eaa69588615bad177910f1dac8ee22142ce1dcb1 Make wxPreferencesEditor::Show() virtual. This allows derived classes to override it to do something before/after showing the dialog, which can be useful on the platforms where modal dialogs are used for wxPreferencesEditor implementation. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/preferences.h b/include/wx/preferences.h index 472ea8f57b..935c7b1875 100644 --- a/include/wx/preferences.h +++ b/include/wx/preferences.h @@ -98,7 +98,7 @@ public: // Show the preferences dialog or bring it to the top if it's already // shown. Notice that this method may or may not block depending on the // platform, i.e. depending on whether the dialog is modal or not. - void Show(wxWindow* parent); + virtual void Show(wxWindow* parent); // Hide the currently shown dialog, if any. This doesn't do anything on the // platforms using modal preferences dialogs but should be called to diff --git a/interface/wx/preferences.h b/interface/wx/preferences.h index 3688fa3e06..656ce907c1 100644 --- a/interface/wx/preferences.h +++ b/interface/wx/preferences.h @@ -77,7 +77,7 @@ public: @param parent The window that invokes the preferences. Call Dismiss() before it's destroyed. */ - void Show(wxWindow* parent); + virtual void Show(wxWindow* parent); /** Hide the currently shown dialog, if any.