#include <canedit.h>


Public Member Functions | |
| a2dEditorMultiFrameViewConnector (wxClassInfo *EditorClassInfo=(wxClassInfo *) NULL) | |
| void | OnPostCreateDocument (a2dTemplateEvent &event) |
| Default Handler Creates the first a2dView on the a2dDocument. | |
| void | OnPostCreateView (a2dTemplateEvent &event) |
| Creates a a2dEditorFrame and sets its its a2dCanvas as the DisplayWindow for the view. | |
Public Attributes | |
| wxClassInfo * | m_editorClassInfo |
| For dynamic creation of appropriate instances. | |
Definition at line 33 of file canedit.h.
| void a2dEditorMultiFrameViewConnector::OnPostCreateDocument | ( | a2dTemplateEvent & | event | ) |
Default Handler Creates the first a2dView on the a2dDocument.
Calls a2dDocumentCommandProcessor::SelectViewType() to choose a proper template for the new document. That uses the m_viewTemplates or the a2dDocviewGlobals->GetDocviewCommandProcessor()->GetViewTemplates() to display a list of view Templates for the given document. After that, the choosen view template is used to create a new a2dView via the a2dViewTemplate::CreateView() function. a2dViewTemplate::CreateView() uses its connector ( in general the same is the connector which created the document ) to sent a wxEVT_POST_CREATE_VIEW to the connector. Eventually the connector will/can create/reuse windows and frames for the new views.
Reimplemented from a2dViewConnector.
Definition at line 70 of file canedit.cpp.