a2dEditorMultiFrameViewConnector Class Reference

Creates and Connect a wxEditorFrame + a2dCanvas with a view. More...

#include <canedit.h>

Inheritance diagram for a2dEditorMultiFrameViewConnector:

Inheritance graph
[legend]
Collaboration diagram for a2dEditorMultiFrameViewConnector:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

Creates and Connect a wxEditorFrame + a2dCanvas with a view.

Definition at line 33 of file canedit.h.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
a2dEditorMultiFrameViewConnector Class Reference -- Tue Aug 31 18:26:13 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation