X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b21126db7a8232fa9e64b29f916d73d6b0153bef..97929f6bd992c185834656b5e3fff5a50ba7360a:/interface/wx/docview.h diff --git a/interface/wx/docview.h b/interface/wx/docview.h index 7255d81cb4..18032c27d2 100644 --- a/interface/wx/docview.h +++ b/interface/wx/docview.h @@ -740,8 +740,7 @@ public: /** Called when the filename has changed. The default implementation - constructs a suitable title and sets the title of the view frame (if - any). + constructs a suitable title and sets the title of the view frame (if any). */ virtual void OnChangeFilename(); @@ -1135,7 +1134,7 @@ public: @see GetFirstView() */ - wxList& GetViews() const; + wxList& GetViews(); const wxList& GetViews() const; //@} @@ -1296,10 +1295,18 @@ public: /** Sets the filename for this document. Usually called by the framework. + Calls OnChangeFilename() which in turn calls wxView::OnChangeFilename() for + all views if @a notifyViews is @true, + */ + void SetFilename(const wxString& filename, bool notifyViews = false); + + /** If @a notifyViews is @true, wxView::OnChangeFilename() is called for all views. + + @since 2.9.0 */ - void SetFilename(const wxString& filename, bool notifyViews = false); + virtual void OnChangeFilename(bool notifyViews); /** Sets the title for this document. The document title is used for an