a2dCommandProcessorEvent Class Reference
[commands used in command processorevents in the wxDocview library]

Event sent to a2dCommandProcessor or a2dEventDistributer. More...

#include <comevt.h>

Inheritance diagram for a2dCommandProcessorEvent:

Inheritance graph
[legend]
Collaboration diagram for a2dCommandProcessorEvent:

Collaboration graph
[legend]

List of all members.

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.
a2dCommandGetCommand ()
 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

a2dCommandm_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


Detailed Description

Event sent to a2dCommandProcessor or a2dEventDistributer.

Definition at line 1162 of file comevt.h.


Constructor & Destructor Documentation

a2dCommandProcessorEvent::a2dCommandProcessorEvent ( wxEventType  type,
a2dCommand cmd 
) [inline]

constructor

type should wxEVT_DO wxEVT_UNDO

Definition at line 1172 of file comevt.h.

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

Definition at line 1192 of file comevt.h.


The documentation for this class was generated from the following file:
a2dCommandProcessorEvent Class Reference -- Tue Aug 31 18:20:57 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation