24 std::make_unique<BatchEvalCommandType>()
29 return {
wxT(
"BatchCommand"),
XO(
"Batch Command") };
34 auto commandNameValidator = std::make_unique<DefaultValidator>();
36 auto paramValidator = std::make_unique<DefaultValidator>();
38 auto macroValidator = std::make_unique<DefaultValidator>();
43 std::unique_ptr<CommandOutputTargets> && WXUNUSED(target))
45 return std::make_shared<BatchEvalCommand>(
project, *
this);
59 if (!macroName.empty())
62 batch.ReadMacro(macroName);
63 return batch.ApplyMacro(catalog);
69 const auto friendly = (iter == catalog.
end())
75 bool bResult = Batch.ApplyCommandInBatchMode(friendly, cmdName, cmdParams, &context);
77 wxString
Message = Batch.GetMessage();
static CommandDirectory::RegisterType sRegisterType
Contains declarations for CommandDirectory class.
TranslatableString Verbatim(wxString str)
Require calls to the one-argument constructor to go through this distinct global function name.
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
virtual ~BatchEvalCommand()
void BuildSignature(CommandSignature &signature) override
Postcondition: signature is a 'signature' map containing parameter.
ComponentInterfaceSymbol BuildName() const override
OldStyleCommandPointer Create(AudacityProject &project, std::unique_ptr< CommandOutputTargets > &&target) override
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
virtual void Status(const wxString &message, bool bFlush=false) const
AudacityProject & project
wxString GetString(const wxString ¶mName)
Class that maps parameter names to default values and validators.
void AddParameter(const wxString &name, const wxVariant &dft, std::unique_ptr< Validator > &&valid)
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Entries::const_iterator ByCommandId(const CommandID &commandId) const
Entries::const_iterator end() const
Maintains the list of commands for batch/macro processing. See also MacrosWindow and ApplyMacroDialog...
OldStyleCommandPointer is a unique_ptr to an OldStyleCommand.
TranslatableString Stripped(unsigned options=MenuCodes) const
non-mutating, constructs another TranslatableString object
TranslatableString Message(unsigned trackCount)