X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/45416752623a6ac0df3a8f5f55c1933ff52e1dbb..d3fa4bc22e84e3ca4d88cc1772f2d414140a1017:/interface/wx/docview.h diff --git a/interface/wx/docview.h b/interface/wx/docview.h index 224c2ad298..6c8c288467 100644 --- a/interface/wx/docview.h +++ b/interface/wx/docview.h @@ -557,6 +557,18 @@ public: */ virtual wxDocTemplate* FindTemplateForPath(const wxString& path); + /** + Returns the view to apply a user command to. + + This method tries to find the view that the user wants to interact + with. It returns the same view as GetCurrentDocument() if there is any + currently active view but falls back to the first view of the first + document if there is no active view. + + @since 2.9.5 + */ + wxView* GetAnyUsableView() const; + /** Returns the document associated with the currently active view (if any). @@ -564,7 +576,11 @@ public: wxDocument* GetCurrentDocument() const; /** - Returns the currently active view + Returns the currently active view. + + This method can return @NULL if no view is currently active. + + @see GetAnyUsableView() */ virtual wxView* GetCurrentView() const;