Audacity 3.2.0
|
Given a string representing a command, pass it to the MacroCommands system. More...
#include <BatchEvalCommand.h>
Public Member Functions | |
BatchEvalCommand (AudacityProject &project, OldStyleCommandType &type) | |
virtual | ~BatchEvalCommand () |
bool | Apply (const CommandContext &context) override |
Public Member Functions inherited from CommandImplementation | |
CommandImplementation (AudacityProject &project, OldStyleCommandType &type) | |
virtual | ~CommandImplementation () |
ComponentInterfaceSymbol | GetSymbol () override |
An instance method for getting the command name (for consistency) More... | |
CommandSignature & | GetSignature () override |
Get the signature of the command. More... | |
bool | SetParameter (const wxString ¶mName, const wxVariant ¶mValue) override |
bool | Apply () override |
bool | Apply (const CommandContext &context) override |
Public Member Functions inherited from OldStyleCommand | |
OldStyleCommand (AudacityProject &project) | |
virtual | ~OldStyleCommand () |
virtual ComponentInterfaceSymbol | GetSymbol ()=0 |
virtual CommandSignature & | GetSignature ()=0 |
virtual bool | SetParameter (const wxString ¶mName, const wxVariant ¶mValue) |
virtual bool | Apply ()=0 |
virtual bool | Apply (const CommandContext &context)=0 |
Additional Inherited Members | |
Public Attributes inherited from OldStyleCommand | |
AudacityProject & | mProject |
Protected Member Functions inherited from CommandImplementation | |
void | TypeCheck (const wxString &typeName, const wxString ¶mName, const wxVariant ¶m) |
void | CheckParam (const wxString ¶mName) |
bool | HasParam (const wxString ¶mName) |
bool | GetBool (const wxString ¶mName) |
long | GetLong (const wxString ¶mName) |
double | GetDouble (const wxString ¶mName) |
wxString | GetString (const wxString ¶mName) |
Given a string representing a command, pass it to the MacroCommands system.
Command to make processing of macros available to scripting. It can either make a one command macro, or invoke an existing macro. It will become redundant when menu commands are integrated into scripting.
The eventual aim is to move the code from MacroCommands out into separate command classes, but until this happens, BatchEvalCommand can act as a 'bridge' to that system.
Definition at line 40 of file BatchEvalCommand.h.
|
inline |
Definition at line 43 of file BatchEvalCommand.h.
|
virtual |
Definition at line 83 of file BatchEvalCommand.cpp.
|
overridevirtual |
Implements OldStyleCommand.
Definition at line 48 of file BatchEvalCommand.cpp.
References MacroCommandsCatalog::ByCommandId(), TranslatableString::empty(), MacroCommandsCatalog::end(), CommandImplementation::GetString(), anonymous_namespace{TrackSelectHandle.cpp}::Message(), CommandContext::project, CommandContext::Status(), TranslatableString::Stripped(), Verbatim(), and wxT().