wxArt2D
|
command processor and intializing and event handling classes specific for wxDocview. More...
#include "wx/list.h"
#include "wx/event.h"
#include "wx/cmdproc.h"
#include <wx/module.h>
#include "wx/general/a2dlist.h"
#include "wx/general/gen.h"
#include <map>
Go to the source code of this file.
Macros | |
#define | EVT_BUTTON_ANY(func) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_BUTTON_CLICKED, wxID_ANY, wxID_ANY, (wxObjectEventFunction) static_cast < wxCommandEventFunction > ( & func ), (wxObject *) NULL ), |
wxEvtHandler macro | |
#define | EVT_CHOICE_ANY(func) DECLARE_EVENT_TABLE_ENTRY( wxEVT_COMMAND_CHOICE_SELECTED, wxID_ANY, wxID_ANY, (wxObjectEventFunction) static_cast < wxCommandEventFunction > ( & func ), (wxObject *) NULL ), |
wxEvthandler macro | |
#define | EVT_PROPOBJECT_EDITPROPERTIES_EVENT(func) DECLARE_EVENT_TABLE_ENTRY( a2dEVT_PROPOBJECT_EDITPROPERTIES_EVENT, wxID_ANY, wxID_ANY, (wxObjectEventFunction) static_cast < a2dPropertyEditEventFunctionEvt > ( & func ), (wxObject *) NULL ), |
static event table macro for NON a2dCanvasObject when editing properties for wxEvtHandler | |
#define | EVT_DO(func) DECLARE_EVENT_TABLE_ENTRY( wxEVT_DO, wxID_ANY, wxID_ANY, (wxObjectEventFunction) static_cast< wxCommandProcessorEventFunction > (& func), (wxObject *) NULL ), |
event sent from a2DocumentCommandProcessor when a command is initially done | |
#define | EVT_UNDO(func) DECLARE_EVENT_TABLE_ENTRY( wxEVT_UNDO, wxID_ANY, wxID_ANY, (wxObjectEventFunction) static_cast< wxCommandProcessorEventFunction > (& func), (wxObject *) NULL ), |
event sent from a2DocumentCommandProcessor when a command is undone | |
#define | EVT_REDO(func) DECLARE_EVENT_TABLE_ENTRY( wxEVT_REDO, wxID_ANY, wxID_ANY, (wxObjectEventFunction) static_cast< wxCommandProcessorEventFunction > (& func), (wxObject *) NULL ), |
event sent from a2DocumentCommandProcessor when a command is redone | |
#define | EVT_MENUSTRINGS(func) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MENUSTRINGS, wxID_ANY, wxID_ANY, (wxObjectEventFunction) static_cast< wxCommandProcessorEventFunction > (& func), (wxObject *) NULL ), |
event sent to a2dCommandProcessorEvents to adjust menu strings (e.g. for current undo/redo command) | |
#define | EVT_MODIFIES(func) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MODIFIES, wxID_ANY, wxID_ANY, (wxObjectEventFunction) static_cast< wxCommandProcessorEventFunction > (& func), (wxObject *) NULL ), |
event sent to a2dCommandProcessorEvents to set modified flag of a document or drawing flag. | |
#define | EVT_BEGINBUSY(func) DECLARE_EVENT_TABLE_ENTRY( wxEVT_BEGINBUSY, wxID_ANY, wxID_ANY, (wxObjectEventFunction) static_cast< wxCommandProcessorEventFunction > (& func), (wxObject *) NULL ), |
event sent from a2DocumentCommandProcessor when a command submit/execute is starting | |
#define | EVT_ENDBUSY(func) DECLARE_EVENT_TABLE_ENTRY( wxEVT_ENDBUSY, wxID_ANY, wxID_ANY, (wxObjectEventFunction) static_cast< wxCommandProcessorEventFunction > (& func), (wxObject *) NULL ), |
event sent from a2DocumentCommandProcessor when a command submit/execute is ending | |
#define | A2D_ARGUMENT_SETTER(TYPE, ARGUMENT_NAME) |
#define | DECLARE_MENU_ITEMID(menuName) extern a2dMenuIdItem& menuName() ; |
#define | DEFINE_MENU_ITEMID(menuName, menuText, menuHelp) |
#define | DEFINE_MENU_ITEMID_KIND(menuName, menuText, menuHelp, kind) |
#define | DECLARE_EXPORTED_EVTIDFUNC(expdecl, eventName) |
#define | DECLARE_EVTIDFUNC(eventName) |
#define | DEFINE_EVTIDFUNC(eventName) |
Typedefs | |
typedef a2dSmrtPtr< a2dCommand > | a2dCommandPtr |
typedef class A2DGENERALDLLEXP a2dSmrtPtrList< a2dCommand > | a2dCommandList |
a list of commands used by the command processor or command groups | |
typedef void(wxEvtHandler::* | a2dPropertyEditEventFunctionEvt )(a2dPropertyEditEvent &) |
event function for a2dPropertyEditEvent | |
typedef void(wxEvtHandler::* | wxCommandProcessorEventFunction )(a2dCommandProcessorEvent &) |
typedef a2dSmrtPtrWrap < a2dCommand > | a2dCommandStore |
typedef std::map< wxString, a2dMenuIdItem * > | a2dMenuIdItemMap |
Functions | |
WX_DECLARE_HASH_MAP_WITH_DECL (wxString, a2dCommandId *, wxStringHash, wxStringEqual, a2dHashMapCommandIds, class A2DGENERALDLLEXP) | |
This hash table is used for a2dCommandId with name. | |
A2DGENERALDLLEXP_DATA (extern a2dSmrtPtr< a2dGeneralGlobal >) a2dGeneralGlobals | |
only instance of a2dGeneralGlobal, to get to settings for dynamic variables and errors. | |
command processor and intializing and event handling classes specific for wxDocview.
wxDocview has its own event handling classes which are almost equal to the wxWidgets ones. But had to be duplicated to be able to have a a2dObject at the top the class tree. So things like an a2dCanvasObject can be serialized, even if it can handle events.
a2dGeneralGlobal is the class for storing basic stuff like error messages and application wide variables.
a2dCommandProcessor is the basic class on which command processing is based.
Copyright: 2001-2004 (C) Klaas Holwerda
Licence: wxWidgets licence
RCS-ID:
Definition in file comevt.h.
#define A2D_ARGUMENT_SETTER | ( | TYPE, | |
ARGUMENT_NAME | |||
) |
#define DECLARE_EVTIDFUNC | ( | eventName | ) |
#define DECLARE_EXPORTED_EVTIDFUNC | ( | expdecl, | |
eventName | |||
) |
#define DEFINE_EVTIDFUNC | ( | eventName | ) |
#define DEFINE_MENU_ITEMID | ( | menuName, | |
menuText, | |||
menuHelp | |||
) |
#define DEFINE_MENU_ITEMID_KIND | ( | menuName, | |
menuText, | |||
menuHelp, | |||
kind | |||
) |
typedef a2dSmrtPtrWrap< a2dCommand > a2dCommandStore |