wxArt2D
Public Member Functions | Protected Member Functions | List of all members
a2dLuaEditorFrame Class Reference

sepcialized Frame for editor of a2dCanvas More...

#include <luawrap.h>

Inheritance diagram for a2dLuaEditorFrame:
Inheritance graph
[legend]
Collaboration diagram for a2dLuaEditorFrame:
Collaboration graph
[legend]

Public Member Functions

 a2dLuaEditorFrame ()
 this makes dynamic creation possible ( e.g. a derived a2dLuaEditorFrame ) More...
 
 a2dLuaEditorFrame (bool isParent, wxFrame *parent, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE)
 
- Public Member Functions inherited from a2dEditorFrame
 a2dEditorFrame ()
 this makes dynamic creation possible ( e.g. a derived a2dEditorFrame ) More...
 
 a2dEditorFrame (bool isParent, wxFrame *parent, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE)
 
bool Create (bool createCanvas, bool isParent, 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)
 
a2dDrawingPartGetDrawingPart ()
 
void SetDrawingPart (a2dDrawingPart *part)
 
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 More...
 
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 Member Functions inherited from a2dDocumentFrame
 a2dDocumentFrame ()
 Constructor for two step creation, call a2dDocumentFrame::Create later.
 
 a2dDocumentFrame (bool parentFrame, wxWindow *frame, a2dView *view=NULL, wxWindowID id=-1, const wxString &title=wxT("a2dDocumentFrame"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxT("frame"))
 constructor More...
 
 a2dDocumentFrame (wxWindow *frame, wxWindowID id=-1, const wxString &title=wxT("a2dDocumentFrame"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxT("frame"))
 wxFrame compatible constructor
 
bool Create (bool parentFrame, wxWindow *frame, a2dView *view=NULL, wxWindowID id=-1, const wxString &title=wxT("a2dDocumentFrame"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxT("frame"))
 Constructor for two-step-creation (2nd step) More...
 
 ~a2dDocumentFrame ()
 destructor
 
void SetDestroyOnCloseView (bool destroyOnCloseView)
 
void SetView (a2dView *view)
 set a pointer to a a2dView to sent view events to. More...
 
a2dViewGetView ()
 get the pointer to a a2dView to which view events are sent
 
bool ProcessEvent (wxEvent &event)
 Modified event handler to also sent event to a2dView or wxDocviewCommonEvents. More...
 
bool ProcessConnectedEvent (wxEvent &event)
 
void ConnectEvent (wxEventType type, wxEvtHandler *evtObject)
 
bool DisconnectEvent (wxEventType type, wxEvtHandler *evtObject)
 
bool GetIsParentFrame ()
 
void SetIsParentFrame (bool parentFrame)
 
virtual void OnDraw (wxDC &dc)
 Override this function to draw the graphic (or just process EVT_PAINT) More...
 
void AddCmdToToolbar (const a2dMenuIdItem &cmdId)
 add items to toolbar using a predefined command ID.
 
void ConnectCmdId (const a2dMenuIdItem &cmdId)
 
void AddCmdMenu (wxMenu *parentMenu, const a2dMenuIdItem &cmdId)
 add a menu to the parent menu, and connect it to the eventhandler of the frame More...
 
void AddCmdMenu (wxMenu *parentMenu, wxMenuItem *item)
 
void RemoveCmdMenu (wxMenu *parentMenu, const a2dMenuIdItem &cmdId)
 remove a command menu from the parent menu. More...
 
void OnExecuteCommand (wxCommandEvent &event)
 
void OnCmdMenuId (wxCommandEvent &event)
 

Protected Member Functions

bool CallLuaScriptThemeFunction (const wxString &fileName, const wxString &function)
 
void OnUpdateUI (wxUpdateUIEvent &event)
 
void OnShowExecDlg2 (wxCommandEvent &event)
 
void OnRunScript (wxCommandEvent &event)
 
void OnTheme (a2dEditorFrameEvent &themeEvent)
 
void OnInit (a2dEditorFrameEvent &initEvent)
 
- Protected Member Functions inherited from a2dEditorFrame
void OnCopyShape (wxCommandEvent &event)
 
void OnPasteShape (wxCommandEvent &event)
 
void OnUpdatePasteShape (wxUpdateUIEvent &event)
 
void OnUpdateCopyShape (wxUpdateUIEvent &event)
 
void OnDragSimulate (wxCommandEvent &event)
 
void FillData (wxCommandEvent &event)
 
void OnUpdateUI (wxUpdateUIEvent &event)
 
void OnTheme (a2dEditorFrameEvent &themeEvent)
 
void OnInit (a2dEditorFrameEvent &initEvent)
 
void OnActivateViewSentFromChild (a2dViewEvent &viewevent)
 
- Protected Member Functions inherited from a2dDocumentFrame
void OnPaint (wxPaintEvent &event)
 default handler for paint events, it calls OnDraw().
 
void OnCloseView (a2dCloseViewEvent &event)
 default for closing a view in this frame More...
 
void OnCloseWindow (wxCloseEvent &event)
 default for closing this frame via close button. More...
 
void OnExit (wxCommandEvent &event)
 called by API and only handled if this is the Parent Frame
 
void OnMRUFile (wxCommandEvent &event)
 called by API and only handled if this is the Parent Frame
 
void OnChangeFilename (a2dViewEvent &event)
 default handler for file changed event sent from a2dView More...
 
void OnActivateViewSentFromChild (a2dViewEvent &viewevent)
 sets m_view to the current active view, generate by a2dView::Activate()
 

Additional Inherited Members

- Public Types inherited from a2dEditorFrame
typedef void(a2dEditorFrame::* wxObjectEventFunctionM )(wxCommandEvent &)
 
- Public Attributes inherited from a2dEditorFrame
a2dSmrtPtr< a2dStToolContrm_contr
 tool controller to be defined by user
 
- Protected Attributes inherited from a2dEditorFrame
a2dDrawingPartm_drawingPart
 
wxMenuBar * m_menuBar
 
wxMenu * m_editMenu
 to hold undo redo menu's which are reinitialized at activation of view
 
bool m_initialized
 
- Protected Attributes inherited from a2dDocumentFrame
a2dSmrtPtr< a2dViewm_view
 
bool m_isParentFrame
 is this the docframe or not.
 
bool m_destroyOnCloseView
 when closing the view the frame will be destroyed.
 

Detailed Description

sepcialized Frame for editor of a2dCanvas

Definition at line 429 of file luawrap.h.

Constructor & Destructor Documentation

a2dLuaEditorFrame::a2dLuaEditorFrame ( )

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

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

Definition at line 1552 of file luawrap.cpp.


The documentation for this class was generated from the following files:
a2dLuaEditorFrame Class Reference -- Sun Oct 12 2014 17:04:42 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation