wxArt2D
|
sepcialized Frame for editor of a2dCanvas More...
#include <luawrap.h>
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) | |
![]() | |
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) |
a2dDrawingPart * | GetDrawingPart () |
void | SetDrawingPart (a2dDrawingPart *part) |
a2dStToolContr * | GetToolController () |
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 () |
![]() | |
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... | |
a2dView * | GetView () |
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) |
![]() | |
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) |
![]() | |
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 | |
![]() | |
typedef void(a2dEditorFrame::* | wxObjectEventFunctionM )(wxCommandEvent &) |
![]() | |
a2dSmrtPtr< a2dStToolContr > | m_contr |
tool controller to be defined by user | |
![]() | |
a2dDrawingPart * | m_drawingPart |
wxMenuBar * | m_menuBar |
wxMenu * | m_editMenu |
to hold undo redo menu's which are reinitialized at activation of view | |
bool | m_initialized |
![]() | |
a2dSmrtPtr< a2dView > | m_view |
bool | m_isParentFrame |
is this the docframe or not. | |
bool | m_destroyOnCloseView |
when closing the view the frame will be destroyed. | |
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.