38 virtual bool SetParameter(
const wxString ¶mName,
const wxVariant ¶mValue);
55 wxASSERT(cmd != NULL);
60 bool SetParameter(
const wxString ¶mName,
const wxVariant ¶mValue)
override;
70 bool Apply()
override;
72 std::unique_ptr<const CommandContext>
mCtx;
86 bool Valid(
const wxString ¶mName,
const wxVariant ¶mValue);
90 void TypeCheck(
const wxString &typeName,
91 const wxString ¶mName,
92 const wxVariant ¶m);
93 void CheckParam(
const wxString ¶mName);
94 bool HasParam(
const wxString ¶mName);
95 bool GetBool(
const wxString ¶mName);
96 long GetLong(
const wxString ¶mName);
97 double GetDouble(
const wxString ¶mName);
98 wxString GetString(
const wxString ¶mName);
115 bool SetParameter(
const wxString ¶mName,
const wxVariant ¶mValue)
override;
122 bool Apply()
override {
return false;};
std::map< wxString, wxVariant > ParamValueMap
std::map< wxString, bool > ParamBoolMap
Declaration of CommandSignature class.
ApplyAndSendResponse is a DecoratoredCommand that performs the given command and then outputs a statu...
bool Apply(const CommandContext &context) override
ApplyAndSendResponse(const OldStyleCommandPointer &cmd, std::unique_ptr< CommandOutputTargets > &target)
std::unique_ptr< const CommandContext > mCtx
AudacityApp is the 'main' class for Audacity.
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,...
is derived from OldStyleCommand. It validates and applies the command. CommandImplementation::Apply()...
OldStyleCommandType & mType
bool Valid(const wxString ¶mName, const wxVariant ¶mValue)
bool Apply(const CommandContext &context) override
CommandOutputTargets a mix of three output classes to output progress indication, status messages and...
Class that maps parameter names to default values and validators.
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
DecoratedCommand is a decorator for command. It forwards functions to the mCommand it holds.
CommandSignature & GetSignature() override
OldStyleCommandPointer mCommand
virtual ~DecoratedCommand()
bool SetParameter(const wxString ¶mName, const wxVariant ¶mValue) override
DecoratedCommand(const OldStyleCommandPointer &cmd)
ComponentInterfaceSymbol GetSymbol() override
Abstract base class for command interface. This is the version created by Dan Horgan....
OldStyleCommand(AudacityProject &project)
virtual bool SetParameter(const wxString ¶mName, const wxVariant ¶mValue)
virtual ~OldStyleCommand()
virtual CommandSignature & GetSignature()=0
AudacityProject & mProject
virtual bool Apply(const CommandContext &context)=0
virtual ComponentInterfaceSymbol GetSymbol()=0
OldStyleCommandPointer is a unique_ptr to an OldStyleCommand.
Base class for containing data common to all commands of a given type. Also acts as a factory.