minor cleanup; add wxDocument::OnChangeFilename for coherence with wxView::OnChangefilename; avoid some (small) code duplication; closes #10080
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -1296,11 +1295,19 @@ public:
|
||||
/**
|
||||
Sets the filename for this document. Usually called by the framework.
|
||||
|
||||
If @a notifyViews is @true, wxView::OnChangeFilename() is called for
|
||||
all views.
|
||||
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
|
||||
*/
|
||||
virtual void OnChangeFilename(bool notifyViews);
|
||||
|
||||
/**
|
||||
Sets the title for this document. The document title is used for an
|
||||
associated frame (if any), and is usually constructed by the framework
|
||||
|
Reference in New Issue
Block a user