16#ifndef __APPCOMMANDEVENT__
17#define __APPCOMMANDEVENT__
35 AppCommandEvent(wxEventType commandType = wxEVT_APP_COMMAND_RECEIVED,
int id = 0);
40 wxEvent *
Clone()
const override;
50#define wxAppCommandEventHandler(func) \
51 (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxAppCommandEventFunction, &func)
53#define EVT_APP_COMMAND(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_APP_COMMAND_RECEIVED, winid, wxID_ANY, wxAppCommandEventHandler(fn), (wxObject *) NULL ),
void(wxEvtHandler::* wxAppCommandEventFunction)(AppCommandEvent &)
DECLARE_EXPORTED_EVENT_TYPE(AUDACITY_DLL_API, wxEVT_APP_COMMAND_RECEIVED, -1)
An event 'envelope' for sending Command objects through the wxwidgets event loop.
OldStyleCommandPointer mCommand
AppCommandEvent(wxEventType commandType=wxEVT_APP_COMMAND_RECEIVED, int id=0)
void SetCommand(const OldStyleCommandPointer &cmd)
Store a pointer to a command object.
OldStyleCommandPointer GetCommand()
wxEvent * Clone() const override
Abstract base class for command interface. This is the version created by Dan Horgan....
OldStyleCommandPointer is a unique_ptr to an OldStyleCommand.