Audacity  2.2.2
Public Member Functions | List of all members
ExecMenuCommandType Class Referencefinal

#include <ExecMenuCommand.h>

Inheritance diagram for ExecMenuCommandType:
CommandType

Public Member Functions

wxString BuildName () override
 
void BuildSignature (CommandSignature &signature) override
 Postcondition: signature is a 'signature' map containing parameter. More...
 
CommandHolder Create (std::unique_ptr< CommandOutputTarget > &&target) override
 
- Public Member Functions inherited from CommandType
 CommandType ()
 
virtual ~CommandType ()
 
const wxString & GetName ()
 
CommandSignatureGetSignature ()
 
wxString Describe ()
 

Detailed Description

Definition at line 26 of file ExecMenuCommand.h.

Member Function Documentation

wxString ExecMenuCommandType::BuildName ( )
overridevirtual

Implements CommandType.

Definition at line 20 of file ExecMenuCommand.cpp.

21 {
22  return wxT("MenuCommand");
23 }
void ExecMenuCommandType::BuildSignature ( CommandSignature signature)
overridevirtual

Postcondition: signature is a 'signature' map containing parameter.

Implements CommandType.

Definition at line 25 of file ExecMenuCommand.cpp.

References CommandSignature::AddParameter().

26 {
27  auto menuCommandValidator = make_movable<DefaultValidator>();
28  signature.AddParameter(wxT("CommandName"), wxT(""), std::move(menuCommandValidator));
29 }
void AddParameter(const wxString &name, const wxVariant &dft, movable_ptr< Validator > &&valid)
CommandHolder ExecMenuCommandType::Create ( std::unique_ptr< CommandOutputTarget > &&  target)
overridevirtual

Implements CommandType.

Definition at line 31 of file ExecMenuCommand.cpp.

32 {
33  return std::make_shared<ExecMenuCommand>(*this, std::move(target));
34 }

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