![]() |
Audacity 3.2.0
|
ApplyAndSendResponse is a DecoratoredCommand that performs the given command and then outputs a status message according to the result. It manages a CommandContext which is passed into its mCommand, so that result messages are routed back to the right place. More...
#include <Command.h>
Public Member Functions | |
| ApplyAndSendResponse (const OldStyleCommandPointer &cmd, std::unique_ptr< CommandOutputTargets > &target) | |
| bool | Apply () override |
| bool | Apply (const CommandContext &context) override |
Public Member Functions inherited from DecoratedCommand | |
| DecoratedCommand (const OldStyleCommandPointer &cmd) | |
| virtual | ~DecoratedCommand () |
| ComponentInterfaceSymbol | GetSymbol () override |
| CommandSignature & | GetSignature () override |
| bool | SetParameter (const wxString ¶mName, const wxVariant ¶mValue) 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 |
Public Attributes | |
| std::unique_ptr< const CommandContext > | mCtx |
Public Attributes inherited from OldStyleCommand | |
| AudacityProject & | mProject |
Additional Inherited Members | |
Protected Attributes inherited from DecoratedCommand | |
| OldStyleCommandPointer | mCommand |
ApplyAndSendResponse is a DecoratoredCommand that performs the given command and then outputs a status message according to the result. It manages a CommandContext which is passed into its mCommand, so that result messages are routed back to the right place.
| ApplyAndSendResponse::ApplyAndSendResponse | ( | const OldStyleCommandPointer & | cmd, |
| std::unique_ptr< CommandOutputTargets > & | target | ||
| ) |
Definition at line 122 of file Command.cpp.
|
overridevirtual |
Implements OldStyleCommand.
Definition at line 137 of file Command.cpp.
References DecoratedCommand::GetSymbol(), ComponentInterfaceSymbol::Internal(), DecoratedCommand::mCommand, mCtx, and wxT().
|
overridevirtual |
Implements OldStyleCommand.
| std::unique_ptr<const CommandContext> ApplyAndSendResponse::mCtx |