33static int ExecCommand(wxString *pIn, wxString *pOut,
bool fromMain)
48 wxTheApp->SafelyProcessEvent(ev);
53 wxTheApp->AddPendingEvent(ev);
81 wxASSERT(scriptFn != NULL);
91 std::thread(server, scriptFn).detach();
AUDACITY_DLL_API std::weak_ptr< AudacityProject > GetActiveProject()
Handle changing of active project and keep global project pointer.
Headers and event table macros for AppCommandEvent.
Contains declaration of CommandBuilder class.
static int ExecCommand(wxString *pIn, wxString *pOut, bool fromMain)
This is the function which actually obeys one command.
static int ExecFromWorker(wxString *pIn, wxString *pOut)
Executes a command in the worker (script) thread.
int ExecFromMain(wxString *pIn, wxString *pOut)
Executes a command on the main (GUI) thread.
Contains declarations for ScriptCommandRelay.
int(* tpRegScriptServerFunc)(tpExecScriptServerFunc pFn)
An event 'envelope' for sending Command objects through the wxwidgets event loop.
void SetCommand(const OldStyleCommandPointer &cmd)
Store a pointer to a command object.
A type of factory for Commands of various sorts.
OldStyleCommandPointer GetCommand()
OldStyleCommandPointer is a unique_ptr to an OldStyleCommand.
static void StartScriptServer(tpRegScriptServerFunc scriptFn)
Starts the script server.