wxArt2D
Public Member Functions | Static Public Member Functions | List of all members

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 a2dCommandIdGetCommandByName (const wxString &commandName)
 search Id given the name of the command
 
static a2dHashMapCommandIds & GetHashMap ()
 return hash of commands
 

Detailed Description

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() }

Definition at line 99 of file comevt.h.


The documentation for this class was generated from the following files:
a2dCommandId Class Reference -- Sun Oct 12 2014 17:04:33 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation