Add wxDocument::Activate() method.
Make activating the first (and, in the vast majority of cases, the only) view of the document easier. Closes #15120. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -86,6 +86,9 @@ public:
|
||||
bool GetDocumentSaved() const { return m_savedYet; }
|
||||
void SetDocumentSaved(bool saved = true) { m_savedYet = saved; }
|
||||
|
||||
// activate the first view of the document if any
|
||||
void Activate();
|
||||
|
||||
// return true if the document hasn't been modified since the last time it
|
||||
// was saved (implying that it returns false if it was never saved, even if
|
||||
// the document is not modified)
|
||||
@@ -550,10 +553,6 @@ protected:
|
||||
// view and returns it then
|
||||
wxView *GetActiveView() const;
|
||||
|
||||
// activate the first view of the given document if any
|
||||
void ActivateDocument(wxDocument *doc);
|
||||
|
||||
|
||||
int m_defaultDocumentNameCounter;
|
||||
int m_maxDocsOpen;
|
||||
wxList m_docs;
|
||||
|
Reference in New Issue
Block a user