]> git.saurik.com Git - wxWidgets.git/commitdiff
Rename CreateWindow() to CreateDialog() in generic wxPreferencesEditor code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 16 May 2013 14:42:50 +0000 (14:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 16 May 2013 14:42:50 +0000 (14:42 +0000)
No real changes, just rename a method to avoid confusion with
wxPreferencesPage::CreateWindow().

Also return the concrete type of the dialog, not a base wxDialog, as it will
be useful for future changes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/preferencesg.cpp

index e9b7fbb3a922c44e2be807681495cf35d68adf09..98170cf0719234083f9e06f08002cb5693d6af68 100644 (file)
@@ -79,7 +79,7 @@ public:
     }
 
 protected:
-    virtual wxDialog *CreateWindow(wxWindow *parent)
+    wxGenericPrefsDialog *CreateDialog(wxWindow *parent)
     {
         wxGenericPrefsDialog *dlg = new wxGenericPrefsDialog(parent);
 
@@ -124,7 +124,7 @@ public:
     {
         if ( !m_win )
         {
-            wxWindow *win = CreateWindow(parent);
+            wxWindow *win = CreateDialog(parent);
             win->Show();
             m_win = win;
         }
@@ -158,7 +158,7 @@ class wxModalPreferencesEditorImpl : public wxGenericPreferencesEditorImplBase
 public:
     virtual void Show(wxWindow* parent)
     {
-        wxScopedPtr<wxDialog> dlg(CreateWindow(parent));
+        wxScopedPtr<wxGenericPrefsDialog> dlg(CreateDialog(parent));
         dlg->Fit();
         dlg->ShowModal();
     }