wxArt2D
Public Member Functions | List of all members

see a2dCommandEvent More...

#include <doccom.h>

Inheritance diagram for a2dCommandEvent:
Inheritance graph
[legend]
Collaboration diagram for a2dCommandEvent:
Collaboration graph
[legend]

Public Member Functions

 a2dCommandEvent (wxEventType type, a2dDocument *doc)
 constructor More...
 
 a2dCommandEvent (wxEventType type, a2dCommand *cmd, a2dDocument *doc=NULL)
 constructor More...
 
 a2dCommandEvent (a2dCommand *cmd, const wxString &undoLabel, bool canUndo, const wxString &redoLabel, bool canRedo, a2dDocument *doc=NULL)
 constructor More...
 
 a2dCommandEvent (const wxString &record)
 constructor More...
 
 a2dCommandEvent (const a2dCommandEvent &event)
 constructor
 
virtual wxEvent * Clone (bool deep=true) const
 clone the event.
 
a2dDocumentGetDocument ()
 the document created/removed or on which the command was applied.
 
a2dCommandGetCommand ()
 the command ( if there was one ) that did it.
 
wxString & GetRecord ()
 
- Public Member Functions inherited from a2dCommandProcessorEvent
 a2dCommandProcessorEvent (wxEventType type, a2dCommand *cmd)
 constructor More...
 
 a2dCommandProcessorEvent (a2dCommand *cmd, const wxString &undoLabel, bool canUndo, const wxString &redoLabel, bool canRedo)
 constructor More...
 
 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()
 
- Public Member Functions inherited from a2dEvent
 a2dEvent (int id=0, wxEventType eventType=wxEVT_NULL)
 
void SetIntTimeStamp ()
 

Additional Inherited Members

- Static Public Attributes inherited from a2dEvent
static long ms_timestamp = 0
 initialize timestamp
 
- Protected Attributes inherited from a2dCommandProcessorEvent
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

see a2dCommandEvent

see a2dCommandEvent see a2dCommandEvent see a2dCommandEvent Event sent to/from a2dDocumentCommandProcessor

Use a2dObject::ConnectEvent to connect your own wxEvtHandler to the a2CommandProcessor to receive them.

Definition at line 79 of file doccom.h.

Constructor & Destructor Documentation

a2dCommandEvent::a2dCommandEvent ( wxEventType  type,
a2dDocument doc 
)
inline

constructor

type should be ::wxEVT_ADD_DOCUMENT or ::wxEVT_REMOVE_DOCUMENT or ::wxEVT_CHANGED_DOCUMENT

Definition at line 88 of file doccom.h.

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

Definition at line 104 of file doccom.h.

a2dCommandEvent::a2dCommandEvent ( a2dCommand cmd,
const wxString &  undoLabel,
bool  canUndo,
const wxString &  redoLabel,
bool  canRedo,
a2dDocument doc = NULL 
)
inline

constructor

type ::wxEVT_MENUSTRINGS

Definition at line 115 of file doccom.h.

a2dCommandEvent::a2dCommandEvent ( const wxString &  record)
inline

constructor

type ::wxEVT_RECORD

Definition at line 130 of file doccom.h.


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