Audacity 3.2.0
|
An event 'envelope' for sending Command objects through the wxwidgets event loop. More...
#include <AppCommandEvent.h>
Public Member Functions | |
AppCommandEvent (wxEventType commandType=wxEVT_APP_COMMAND_RECEIVED, int id=0) | |
AppCommandEvent (const AppCommandEvent &event) | |
~AppCommandEvent () | |
wxEvent * | Clone () const override |
void | SetCommand (const OldStyleCommandPointer &cmd) |
Store a pointer to a command object. More... | |
OldStyleCommandPointer | GetCommand () |
Private Attributes | |
OldStyleCommandPointer | mCommand |
An event 'envelope' for sending Command objects through the wxwidgets event loop.
This allows commands to be communicated from the script thread to the main thread.
Definition at line 29 of file AppCommandEvent.h.
AppCommandEvent::AppCommandEvent | ( | wxEventType | commandType = wxEVT_APP_COMMAND_RECEIVED , |
int | id = 0 |
||
) |
Definition at line 30 of file AppCommandEvent.cpp.
Referenced by Clone().
AppCommandEvent::AppCommandEvent | ( | const AppCommandEvent & | event | ) |
Definition at line 35 of file AppCommandEvent.cpp.
AppCommandEvent::~AppCommandEvent | ( | ) |
Definition at line 41 of file AppCommandEvent.cpp.
|
override |
Definition at line 46 of file AppCommandEvent.cpp.
References AppCommandEvent(), and safenew.
OldStyleCommandPointer AppCommandEvent::GetCommand | ( | ) |
void AppCommandEvent::SetCommand | ( | const OldStyleCommandPointer & | cmd | ) |
Store a pointer to a command object.
Definition at line 52 of file AppCommandEvent.cpp.
References mCommand.
Referenced by ExecCommand().
|
private |
Definition at line 32 of file AppCommandEvent.h.
Referenced by GetCommand(), and SetCommand().