#include <comevt.h>


Public Member Functions | |
| a2dCommandProcessorEvent (wxEventType type, a2dCommand *cmd) | |
| constructor | |
| a2dCommandProcessorEvent (a2dCommand *cmd, const wxString &undoLabel, bool canUndo, const wxString &redoLabel, bool canRedo) | |
| constructor | |
| a2dCommandProcessorEvent (const a2dCommandProcessorEvent &event) | |
| constructor | |
| virtual wxEvent * | Clone () const |
| clone the event. | |
| a2dCommand * | GetCommand () |
| the command ( if there was one ) that did it. | |
| wxString & | GetUndoMenuLabel () |
| by default this is a2dCommandProcessor::GetUndoMenuLabel() | |
| wxString & | GetRedoMenuLabel () |
| by default this is a2dCommandProcessor::GetRedoMenuLabel() | |
| bool | CanUndo () |
| by default this is a2dCommandProcessor::CanUndo() | |
| bool | CanRedo () |
| by default this is a2dCommandProcessor::CanRedo() | |
Protected Attributes | |
| a2dCommand * | m_cmd |
| see GetCommand() | |
| wxString | m_undoLabel |
| used for wxEVT_MENUSTRINGS event | |
| bool | m_canUndo |
| used for wxEVT_MENUSTRINGS event | |
| wxString | m_redoLabel |
| used for wxEVT_MENUSTRINGS event | |
| bool | m_canRedo |
| used for wxEVT_MENUSTRINGS event | |
Definition at line 1162 of file comevt.h.
| a2dCommandProcessorEvent::a2dCommandProcessorEvent | ( | wxEventType | type, | |
| a2dCommand * | cmd | |||
| ) | [inline] |
| a2dCommandProcessorEvent::a2dCommandProcessorEvent | ( | a2dCommand * | cmd, | |
| const wxString & | undoLabel, | |||
| bool | canUndo, | |||
| const wxString & | redoLabel, | |||
| bool | canRedo | |||
| ) | [inline] |
constructor
type wxEVT_MENUSTRINGS
For wxEVT_MENUSTRINGS, you can use the following function, to get the info to set the menu string. -wxCommandProcessorGetUndoMenuLabel() -wxCommandProcessorGetRedoMenuLabel() -wxCommandProcessorCanUndo() -wxCommandProcessorCanRedo()