X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de56f24082e4b66dada7bfe4033e1ef7328052ca..99c4be680622f58a48a04dfe0835b59d2c41afea:/include/wx/docview.h diff --git a/include/wx/docview.h b/include/wx/docview.h index a0fe1c40f2..9ab4bebf46 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -107,6 +107,10 @@ public: // modified to false) virtual bool OnSaveModified(); + // if you override, remember to call the default + // implementation (wxDocument::OnChangeFilename) + virtual void OnChangeFilename(bool notifyViews); + // Called by framework if created automatically by the default document // manager: gives document a chance to initialise and (usually) create a // view @@ -432,7 +436,7 @@ public: virtual void FileHistoryAddFilesToMenu(); virtual void FileHistoryAddFilesToMenu(wxMenu* menu); - wxString GetLastDirectory() const { return m_lastDirectory; } + wxString GetLastDirectory() const; void SetLastDirectory(const wxString& dir) { m_lastDirectory = dir; } // Get the current document manager @@ -490,7 +494,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long type = wxDEFAULT_FRAME_STYLE, - const wxString& name = wxT("frame")); + const wxString& name = wxFrameNameStr); virtual ~wxDocChildFrame(){} void OnActivate(wxActivateEvent& event);