mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Rename Chains to Macros.
Lots of renaming. Did not rename the containing files (yet) since that will require makefile updates.
This commit is contained in:
@@ -225,7 +225,7 @@ bool AudacityCommand::DoAudacityCommand(wxWindow *parent,
|
||||
return returnVal;
|
||||
}
|
||||
|
||||
// This is used from Chains.
|
||||
// This is used from Macros.
|
||||
bool AudacityCommand::PromptUser(wxWindow *parent)
|
||||
{
|
||||
return ShowInterface(parent, IsBatchProcessing());
|
||||
|
@@ -28,8 +28,8 @@ void BatchEvalCommandType::BuildSignature(CommandSignature &signature)
|
||||
signature.AddParameter(wxT("CommandName"), wxT(""), std::move(commandNameValidator));
|
||||
auto paramValidator = make_movable<DefaultValidator>();
|
||||
signature.AddParameter(wxT("ParamString"), wxT(""), std::move(paramValidator));
|
||||
auto chainValidator = make_movable<DefaultValidator>();
|
||||
signature.AddParameter(wxT("ChainName"), wxT(""), std::move(chainValidator));
|
||||
auto macroValidator = make_movable<DefaultValidator>();
|
||||
signature.AddParameter(wxT("MacroName"), wxT(""), std::move(macroValidator));
|
||||
}
|
||||
|
||||
OldStyleCommandPointer BatchEvalCommandType::Create(std::unique_ptr<CommandOutputTargets> && WXUNUSED(target))
|
||||
@@ -40,19 +40,19 @@ OldStyleCommandPointer BatchEvalCommandType::Create(std::unique_ptr<CommandOutpu
|
||||
bool BatchEvalCommand::Apply(const CommandContext & context)
|
||||
{
|
||||
|
||||
wxString chainName = GetString(wxT("ChainName"));
|
||||
if (chainName != wxT(""))
|
||||
wxString macroName = GetString(wxT("MacroName"));
|
||||
if (macroName != wxT(""))
|
||||
{
|
||||
BatchCommands batch;
|
||||
batch.ReadChain(chainName);
|
||||
return batch.ApplyChain();
|
||||
MacroCommands batch;
|
||||
batch.ReadMacro(macroName);
|
||||
return batch.ApplyMacro();
|
||||
}
|
||||
|
||||
wxString cmdName = GetString(wxT("CommandName"));
|
||||
wxString cmdParams = GetString(wxT("ParamString"));
|
||||
|
||||
// Create a Batch that will have just one command in it...
|
||||
BatchCommands Batch;
|
||||
MacroCommands Batch;
|
||||
bool bResult = Batch.ApplyCommand(cmdName, cmdParams, &context);
|
||||
// Relay messages, if any.
|
||||
wxString Message = Batch.GetMessage();
|
||||
|
@@ -10,10 +10,10 @@
|
||||
******************************************************************//**
|
||||
|
||||
\class BatchEvalCommand
|
||||
\brief Given a string representing a command, pass it to the BatchCommands
|
||||
\brief Given a string representing a command, pass it to the MacroCommands
|
||||
system.
|
||||
|
||||
The eventual aim is to move the code from BatchCommands out into separate
|
||||
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.
|
||||
|
||||
|
@@ -13,7 +13,7 @@
|
||||
ApplyAndSendResponse, and CommandImplementation classes. These are
|
||||
remnants of Dan Horgans external scripting commands. We now use
|
||||
AudacityCommand and a shuttle system. This allows commands to be used
|
||||
from within chains too, to have settings dialogs, using ShuttleGui and
|
||||
from within macros too, to have settings dialogs, using ShuttleGui and
|
||||
without need for validators.
|
||||
|
||||
Here's the doxygen for the still-remaining going-away classes.
|
||||
@@ -36,8 +36,8 @@ We in effect merge the <something>CommandType classes into the
|
||||
<something>Command classes.
|
||||
|
||||
\class BatchEvalCommand
|
||||
\brief Command to make processing of chains available to scripting. It can either
|
||||
make a one command chain, or invoke an existing chain. It will become redundant
|
||||
\brief 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.
|
||||
|
||||
\class HelpCommand
|
||||
|
Reference in New Issue
Block a user