a2dEditorFrame Class Reference

sepcialized Frame for editor of a2dCanvas More...

#include <canedit.h>

Inheritance diagram for a2dEditorFrame:

Inheritance graph
[legend]
Collaboration diagram for a2dEditorFrame:

Collaboration graph
[legend]

List of all members.

Public Types

typedef void(a2dEditorFrame::* wxObjectEventFunctionM )(wxCommandEvent &)

Public Member Functions

 a2dEditorFrame ()
 this makes dynamic creation possible ( e.g. a derived a2dEditorFrame )
 a2dEditorFrame (bool isParent, a2dCanvasView *drawer, wxFrame *parent, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE)
bool Create (bool createCanvas, bool isParent, a2dCanvasView *drawer, wxFrame *parent, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE)
 delayed creation of window.
void Init ()
 initialize
void Theme (const wxString &themeName=wxT("default"))
 setup menu
virtual void CreateStatusBarThemed (const wxString &themeName=wxT("default"))
void SetupToolbar ()
wxMenu * GetEditMenu ()
 return edit menu to set Undo and Redo commands
void Update ()
void ConnectDocument (a2dCanvasDocument *doc, a2dCanvasView *drawer=NULL)
a2dCanvasGetCanvas ()
a2dStToolContrGetToolController ()
 get active controller set on a a2dCanvasView in this frame
void SetToolController (a2dStToolContr *contr)
 set active controller set on a a2dCanvasView in this frame
void AddFunctionToMenu (int id, wxMenu *parentMenu, const wxString &text, const wxString &helpString, wxObjectEventFunctionM func, bool check=false)
 add a menu which executes a function
void RemoveFromMenu (int id, wxMenu *parentMenu, wxObjectEventFunctionM func)
void SetToolDragingMode (wxCommandEvent &event)
void SetToolDrawingMode (wxCommandEvent &event)
void OnUndoEvent (a2dCommandProcessorEvent &event)
void OnDoEvent (a2dCommandProcessorEvent &event)
void OnActivate (wxActivateEvent &event)
 intercepted to initialize redo and undo menu's
void OnSetmenuStrings (a2dCommandProcessorEvent &event)
 handler for event to set undo redo menustrings
void OnCloseWindow (wxCloseEvent &event)
 called on Close window
void OnComEvent (a2dComEvent &event)
void OnUndo (wxCommandEvent &event)
void OnRedo (wxCommandEvent &event)
void Quit (wxCommandEvent &event)
void OnAbout (wxCommandEvent &event)
void ShowLibs (wxCommandEvent &event)
void PlaceFromLibByRef ()
void PlaceFromLibByCopy ()
void OnMenu (wxCommandEvent &event)
void CreateThemeTest ()
void CreateThemeDefault ()
void CreateThemeXRC ()

Public Attributes

a2dSmrtPtr< a2dStToolContrm_contr
 tool controller to be defined by user

Protected Member Functions

void FillData (wxCommandEvent &event)
void OnUpdateUI (wxUpdateUIEvent &event)
void OnTheme (a2dEditorFrameEvent &themeEvent)
void OnInit (a2dEditorFrameEvent &initEvent)

Protected Attributes

a2dCanvasm_canvas
wxMenuBar * m_menuBar
wxMenu * m_editMenu
 to hold undo redo menu's which are reinitialized at activation of view
bool m_initialized


Detailed Description

sepcialized Frame for editor of a2dCanvas

Definition at line 117 of file canedit.h.


Constructor & Destructor Documentation

a2dEditorFrame::a2dEditorFrame (  ) 

this makes dynamic creation possible ( e.g. a derived a2dEditorFrame )

Can be used by connectors ( e.g. a2dEditorMultiFrameViewConnector ) to create a derived a2dEditorFrame class using the ClassInfo. This makes one connector class enough for all derived a2dEditorFrame's. This constructor is used in combination with Create() to initilize the a2dEditorFrame.

Definition at line 249 of file canedit.cpp.


Member Function Documentation

void a2dEditorFrame::AddFunctionToMenu ( int  id,
wxMenu *  parentMenu,
const wxString &  text,
const wxString &  helpString,
wxObjectEventFunctionM  func,
bool  check = false 
)

add a menu which executes a function

Parameters:
id wxID_ANY is non specific for use in func
text text of menu
helpString help for menu
func function in this are derived class to be called.

Definition at line 623 of file canedit.cpp.


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