Audacity  2.2.0
ExecMenuCommand Class Referencefinal

A command which asks the CommandManager to execute a menu command by name. More...

#include <ExecMenuCommand.h>

Inheritance diagram for ExecMenuCommand:
CommandImplementation Command

Public Member Functions

 ExecMenuCommand (CommandType &type, std::unique_ptr< CommandOutputTarget > &&target)
virtual ~ExecMenuCommand ()
bool Apply (CommandExecutionContext context) override
- Public Member Functions inherited from CommandImplementation
void Progress (double completed)
void Status (const wxString &status) override
void Error (const wxString &message) override
 CommandImplementation (CommandType &type, std::unique_ptr< CommandOutputTarget > &&output)
virtual ~CommandImplementation ()
wxString GetName ()
 An instance method for getting the command name (for consistency) More...
CommandSignatureGetSignature ()
 Get the signature of the command. More...
bool SetParameter (const wxString &paramName, const wxVariant &paramValue)
- Public Member Functions inherited from Command
virtual ~Command ()

Additional Inherited Members

- Protected Member Functions inherited from CommandImplementation
void TypeCheck (const wxString &typeName, const wxString &paramName, const wxVariant &param)
void CheckParam (const wxString &paramName)
bool GetBool (const wxString &paramName)
long GetLong (const wxString &paramName)
double GetDouble (const wxString &paramName)
wxString GetString (const wxString &paramName)
- Protected Attributes inherited from CommandImplementation
< CommandOutputTarget

Detailed Description

A command which asks the CommandManager to execute a menu command by name.

Constructor & Destructor Documentation

ExecMenuCommand::ExecMenuCommand ( CommandType type,
std::unique_ptr< CommandOutputTarget > &&  target 
virtual ExecMenuCommand::~ExecMenuCommand ( )

Member Function Documentation

bool ExecMenuCommand::Apply ( CommandExecutionContext  context)

Actually carry out the command. Return true if successful and false otherwise.

Reimplemented from CommandImplementation.

References AlwaysEnabledFlag, AudacityProject::GetCommandManager(), CommandExecutionContext::GetProject(), CommandImplementation::GetString(), and CommandManager::HandleTextualCommand().

The documentation for this class was generated from the following files: