#include <docmdiref.h>
Public Member Functions | |
| a2dDocumentMDIParentFrame (wxFrame *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxT("frame")) | |
| Constructor. | |
| bool | Create (wxWindow *frame, wxWindowID id=-1, const wxString &title=wxT("frame"), 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). | |
| virtual bool | ProcessEvent (wxEvent &event) |
| Extend event processing to search the document manager's event table. | |
| void | OnExit (wxCommandEvent &event) |
| Does a call to Close(). | |
| void | OnMRUFile (wxCommandEvent &event) |
| Creates a new view for a file from file-history (a new MDI child will be created). | |
| void | OnCloseWindow (wxCloseEvent &event) |
| Closes the this window, if not vetoed. | |
| void | AddCmdMenu (wxMenu *parentMenu, const a2dMenuIdItem &cmdId) |
| add a command menu to the parent menu, and connect it to the eventhandler of the frame | |
| void | AddCmdMenu (wxMenu *parentMenu, wxMenuItem *item) |
| void | RemoveCmdMenu (wxMenu *parentMenu, const a2dMenuIdItem &cmdId) |
| remove a command menu from the parent menu. | |
| void | AddCmdToToolbar (const a2dMenuIdItem &cmdId) |
| add items to toolbar using a predefined command ID. | |
Protected Member Functions | |
| void | OnCmdMenuId (wxCommandEvent &event) |
This class is the replacement for the standard wxWindow wxDocMDIParentFrame
Definition at line 35 of file docmdiref.h.
| a2dDocumentMDIParentFrame::a2dDocumentMDIParentFrame | ( | wxFrame * | parent, | |
| wxWindowID | id, | |||
| const wxString & | title, | |||
| const wxPoint & | pos = wxDefaultPosition, |
|||
| const wxSize & | size = wxDefaultSize, |
|||
| long | style = wxDEFAULT_FRAME_STYLE, |
|||
| const wxString & | name = wxT("frame") | |||
| ) |
Constructor.
| parent | The parent frame. This should be NULL | |
| id | The window identifier. It may take a value of -1 to indicate a default value. | |
| title | The caption to be displayed on the frame's title bar. | |
| pos | The window position. | |
| size | The window size. | |
| style | Window style, please look into wxWindows docs for an overview. | |
| name | The name of the window. |
Definition at line 64 of file docmdiref.cpp.
| bool a2dDocumentMDIParentFrame::Create | ( | wxWindow * | frame, | |
| wxWindowID | id = -1, |
|||
| const wxString & | title = wxT("frame"), |
|||
| 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).
| frame | The parent frame. This should not be NULL | |
| id | The window identifier. It may take a value of -1 to indicate a default value. | |
| title | The caption to be displayed on the frame's title bar. | |
| pos | The window position. | |
| size | The window size. | |
| style | Window style, please look into wxWindows docs for an overview. | |
| name | The name of the window. |
Definition at line 74 of file docmdiref.cpp.
| void a2dDocumentMDIParentFrame::AddCmdMenu | ( | wxMenu * | parentMenu, | |
| const a2dMenuIdItem & | cmdId | |||
| ) |
add a command menu to the parent menu, and connect it to the eventhandler of the frame
Many commands which can be submitted to a commandprocessor in the following manner:
commandprocessor->Submit( new a2dCommand_SomeCommand() )
void a2dDocumentCommandProcessor::OnMenu( wxCommandEvent& event )
Definition at line 154 of file docmdiref.cpp.
| void a2dDocumentMDIParentFrame::AddCmdMenu | ( | wxMenu * | parentMenu, | |
| wxMenuItem * | item | |||
| ) |
same as for a2dMenuIdItem, Id in wxMenuItem must be a valid id from one a2dMenuIdItem used in XRC files
Definition at line 148 of file docmdiref.cpp.
| void a2dDocumentMDIParentFrame::RemoveCmdMenu | ( | wxMenu * | parentMenu, | |
| const a2dMenuIdItem & | cmdId | |||
| ) |
remove a command menu from the parent menu.
See AddCmdMenu()
Definition at line 160 of file docmdiref.cpp.
| void a2dDocumentMDIParentFrame::OnCmdMenuId | ( | wxCommandEvent & | event | ) | [protected] |
used by AddCmdMenu() to dynamically connect menu to function. The function just Skippes the event, so it will be handled by a command processor in the end.
Definition at line 143 of file docmdiref.cpp.