|
wxArt2D
|
Each a2dCommand is given a command id at construction. More...
#include <comevt.h>
Public Member Functions | |
| a2dCommandId (const wxString &commandName) | |
| constructor | |
| virtual | ~a2dCommandId () |
| destructor | |
| virtual wxString | GetIdClassName () |
| get name of class | |
| wxString | GetName () const |
| get name | |
Static Public Member Functions | |
| static const a2dCommandId & | GetCommandByName (const wxString &commandName) |
| search Id given the name of the command | |
| static a2dHashMapCommandIds & | GetHashMap () |
| return hash of commands | |
Each a2dCommand is given a command id at construction.
The command id used to test for a specific commandId when intercepting command events.
EVT_REDO( a2dObjectDerivedClass::OnComEvent )
void a2dObjectDerivedClass::OnComEvent( a2dComEvent& event ) { now you can test what the command was. event.GetCommand()->GetCommandId() }
EVT_REDO( wxEvtHandlerDerivedClass::OnComEvent )
void wxEvtHandlerDerivedClass::OnComEvent( a2dComEvent& event ) { now you can test what the command was. event.GetCommand()->GetCommandId() }