#include <doccom.h>


Public Member Functions | |
| a2dCommandEvent (wxEventType type, a2dDocument *doc) | |
| constructor | |
| a2dCommandEvent (wxEventType type, a2dCommand *cmd, a2dDocument *doc=NULL) | |
| constructor | |
| a2dCommandEvent (a2dCommand *cmd, const wxString &undoLabel, bool canUndo, const wxString &redoLabel, bool canRedo, a2dDocument *doc=NULL) | |
| constructor | |
| a2dCommandEvent (const wxString &record) | |
| constructor | |
| a2dCommandEvent (const a2dCommandEvent &event) | |
| constructor | |
| virtual wxEvent * | Clone (bool deep=true) const |
| clone the event. | |
| a2dDocument * | GetDocument () |
| the document created/removed or on which the command was applied. | |
| a2dCommand * | GetCommand () |
| the command ( if there was one ) that did it. | |
| wxString & | GetRecord () |
see a2dCommandEvent see a2dCommandEvent see a2dCommandEvent see a2dCommandEvent Event sent to/from a2dDocumentCommandProcessor or a2dEventDistributer
Definition at line 77 of file doccom.h.
| a2dCommandEvent::a2dCommandEvent | ( | wxEventType | type, | |
| a2dDocument * | doc | |||
| ) | [inline] |
| a2dCommandEvent::a2dCommandEvent | ( | wxEventType | type, | |
| a2dCommand * | cmd, | |||
| a2dDocument * | doc = NULL | |||
| ) | [inline] |
constructor
type should be wxEVT_MENUSTRINGS wxEVT_DO wxEVT_UNDO
For wxEVT_MENUSTRINGS, you can use the following function, to get the info to set the menu string. wxCommandProcessor::GetUndoMenuLabel() wxCommandProcessor::GetRedoMenuLabel() wxCommandProcessor::CanUndo() wxCommandProcessor::CanRedo()
| a2dCommandEvent::a2dCommandEvent | ( | a2dCommand * | cmd, | |
| const wxString & | undoLabel, | |||
| bool | canUndo, | |||
| const wxString & | redoLabel, | |||
| bool | canRedo, | |||
| a2dDocument * | doc = NULL | |||
| ) | [inline] |
| a2dCommandEvent::a2dCommandEvent | ( | const wxString & | record | ) | [inline] |