From: Vadim Zeitlin Date: Mon, 5 Oct 2009 22:53:37 +0000 (+0000) Subject: Minor cleanup and copyright updates in the dialogs sample. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5b05ce47a485974c2a23c16d4fb4e86af684b2f0 Minor cleanup and copyright updates in the dialogs sample. No real changes otherwise. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/dialogs/dialogs.cpp b/samples/dialogs/dialogs.cpp index 8b59fce29d..fdfa5e8e50 100644 --- a/samples/dialogs/dialogs.cpp +++ b/samples/dialogs/dialogs.cpp @@ -1,11 +1,12 @@ ///////////////////////////////////////////////////////////////////////////// // Name: dialogs.cpp // Purpose: Common dialogs demo -// Author: Julian Smart -// Modified by: ABX (2004) - adjustements for conditional building + new menu +// Author: Julian Smart, Vadim Zeitlin, ABX // Created: 04/01/98 // RCS-ID: $Id$ // Copyright: (c) Julian Smart +// (c) 2004 ABX +// (c) Vadim Zeitlin // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// @@ -274,7 +275,7 @@ bool MyApp::OnInit() m_canvasFont = *wxNORMAL_FONT; // Create the main frame window - MyFrame *frame = new MyFrame((wxFrame *) NULL, wxT("wxWidgets dialogs example")); + MyFrame *frame = new MyFrame(wxT("wxWidgets dialogs example")); // Make a menubar wxMenu *menuDlg = new wxMenu; @@ -474,19 +475,14 @@ bool MyApp::OnInit() frame->SetMenuBar(menubar); frame->Centre(wxBOTH); - - // Show the frame frame->Show(true); - SetTopWindow(frame); - return true; } // My frame constructor -MyFrame::MyFrame(wxWindow *parent, - const wxString& title) - : wxFrame(parent, wxID_ANY, title) +MyFrame::MyFrame(const wxString& title) + : wxFrame(NULL, wxID_ANY, title) { SetIcon(sample_xpm); diff --git a/samples/dialogs/dialogs.h b/samples/dialogs/dialogs.h index 90b46574a2..dfa28fe733 100644 --- a/samples/dialogs/dialogs.h +++ b/samples/dialogs/dialogs.h @@ -1,11 +1,12 @@ ///////////////////////////////////////////////////////////////////////////// // Name: dialogs.h // Purpose: Common dialogs demo -// Author: Julian Smart -// Modified by: ABX (2004) - adjustementd for conditional building +// Author: Julian Smart, Vadim Zeitlin, ABX // Created: 04/01/98 // RCS-ID: $Id$ // Copyright: (c) Julian Smart +// (c) 2004 ABX +// (c) Vadim Zeitlin // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// @@ -283,7 +284,7 @@ DECLARE_EVENT_TABLE() class MyFrame: public wxFrame { public: - MyFrame(wxWindow *parent, const wxString& title); + MyFrame(const wxString& title); virtual ~MyFrame(); #if wxUSE_MSGDLG