wxDocManager gets the only view if none other specified as the current view;
added ProcessEvent so views get their events processed properly. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -283,6 +283,9 @@ class WXDLLEXPORT wxDocManager: public wxEvtHandler
|
||||
void OnUndo(wxCommandEvent& event);
|
||||
void OnRedo(wxCommandEvent& event);
|
||||
|
||||
// Extend event processing to search the view's event table
|
||||
virtual bool ProcessEvent(wxEvent& event);
|
||||
|
||||
virtual wxDocument *CreateDocument(const wxString& path, long flags = 0);
|
||||
virtual wxView *CreateView(wxDocument *doc, long flags = 0);
|
||||
virtual void DeleteTemplate(wxDocTemplate *temp, long flags = 0);
|
||||
@@ -314,7 +317,7 @@ class WXDLLEXPORT wxDocManager: public wxEvtHandler
|
||||
// Views or windows should inform the document manager
|
||||
// when a view is going in or out of focus
|
||||
virtual void ActivateView(wxView *view, bool activate = TRUE, bool deleting = FALSE);
|
||||
virtual inline wxView *GetCurrentView(void) const { return m_currentView; }
|
||||
virtual wxView *GetCurrentView(void) const;
|
||||
|
||||
virtual inline wxList& GetDocuments(void) const { return (wxList&) m_docs; }
|
||||
|
||||
|
Reference in New Issue
Block a user