12#ifndef __AUDACITY_BATCH_COMMANDS_DIALOG__
13#define __AUDACITY_BATCH_COMMANDS_DIALOG__
45 Entries::const_iterator
ByTranslation(
const wxString &translation)
const;
67 const wxString & filename = {});
102 wxString
ReadMacro(
const wxString & macro, wxWindow *parent =
nullptr);
103 wxString
WriteMacro(
const wxString & macro, wxWindow *parent =
nullptr);
104 bool AddMacro(
const wxString & macro);
106 bool RenameMacro(
const wxString & oldmacro,
const wxString & newmacro);
120 void Split(
const wxString &
str, wxString & command, wxString & param);
121 wxString
Join(
const wxString & command,
const wxString & param);
EffectDistortionSettings params
std::vector< CommandID > CommandIDs
Generalized interface for discovery of plug-ins for one protocol.
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
CommandManager implements a system for organizing all user-callable commands.
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Base class for many of the effects in Audacity.
Entries::const_iterator ByCommandId(const CommandID &commandId) const
Entries::const_iterator end() const
Entries::const_iterator ByTranslation(const wxString &translation) const
std::vector< Entry > Entries
const Entry & operator[](size_t index) const
Entries::const_iterator begin() const
MacroCommandsCatalog(const AudacityProject *project)
Entries::const_iterator ByFriendlyName(const TranslatableString &friendlyName) const
Maintains the list of commands for batch/macro processing. See also MacrosWindow and ApplyMacroDialog...
static wxString PromptForParamsFor(const CommandID &command, const wxString ¶ms, AudacityProject &project)
static wxArrayStringEx GetNamesOfDefaultMacros()
static wxString PromptForPresetFor(const CommandID &command, const wxString ¶ms, wxWindow *parent)
bool IsFixed(const wxString &name)
void AddToMacro(const CommandID &command, int before=-1)
bool ApplyEffectCommand(const PluginID &ID, const TranslatableString &friendlyCommand, const CommandID &command, const wxString ¶ms, const CommandContext &Context)
bool ApplyCommand(const TranslatableString &friendlyCommand, const CommandID &command, const wxString ¶ms, CommandContext const *pContext=nullptr)
wxString GetParams(int index)
void DeleteFromMacro(int index)
wxArrayString mParamsMacro
wxString Join(const wxString &command, const wxString ¶m)
static wxString GetCurrentParamsFor(const CommandID &command)
static void MigrateLegacyChains()
bool RenameMacro(const wxString &oldmacro, const wxString &newmacro)
CommandID GetCommand(int index)
static wxArrayString GetNames()
bool DeleteMacro(const wxString &name)
bool ReportAndSkip(const TranslatableString &friendlyCommand, const wxString ¶ms)
void Split(const wxString &str, wxString &command, wxString ¶m)
bool ApplyCommandInBatchMode(const TranslatableString &friendlyCommand, const CommandID &command, const wxString ¶ms, CommandContext const *pContext=nullptr)
AudacityProject & GetProject()
wxString WriteMacro(const wxString ¯o, wxWindow *parent=nullptr)
bool ApplyMacro(const MacroCommandsCatalog &catalog, const wxString &filename={})
bool AddMacro(const wxString ¯o)
MacroCommands(AudacityProject &project)
wxString ReadMacro(const wxString ¯o, wxWindow *parent=nullptr)
void RestoreMacro(const wxString &name)
void AddToMessage(const wxString &msgIn)
AudacityProject & mProject
Holds a msgid for the translation catalog; may also bind format arguments.
Extend wxArrayString with move operations and construction and insertion fromstd::initializer_list.
ComponentInterfaceSymbol name
TranslatableString category