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

#include <GetTrackInfoCommand.h>

Inheritance diagram for GetTrackInfoCommandType:
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 22 of file GetTrackInfoCommand.h.

Member Function Documentation

wxString GetTrackInfoCommandType::BuildName ( )
overridevirtual

Implements CommandType.

Definition at line 25 of file GetTrackInfoCommand.cpp.

26 {
27  return wxT("GetTrackInfo");
28 }
void GetTrackInfoCommandType::BuildSignature ( CommandSignature signature)
overridevirtual

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

Implements CommandType.

Definition at line 30 of file GetTrackInfoCommand.cpp.

References CommandSignature::AddParameter().

31 {
32  auto trackIndexValidator = make_movable<IntValidator>();
33  signature.AddParameter(wxT("TrackIndex"), 0, std::move(trackIndexValidator));
34 
35  auto infoTypeValidator = make_movable<OptionValidator>();
36  infoTypeValidator->AddOption(wxT("Name"));
37  infoTypeValidator->AddOption(wxT("StartTime"));
38  infoTypeValidator->AddOption(wxT("EndTime"));
39  infoTypeValidator->AddOption(wxT("Pan"));
40  infoTypeValidator->AddOption(wxT("Gain"));
41  infoTypeValidator->AddOption(wxT("Selected"));
42  infoTypeValidator->AddOption(wxT("Linked"));
43  infoTypeValidator->AddOption(wxT("Solo"));
44  infoTypeValidator->AddOption(wxT("Mute"));
45  infoTypeValidator->AddOption(wxT("Focused"));
46 
47  signature.AddParameter(wxT("Type"), wxT("Name"), std::move(infoTypeValidator));
48 }
void AddParameter(const wxString &name, const wxVariant &dft, movable_ptr< Validator > &&valid)
CommandHolder GetTrackInfoCommandType::Create ( std::unique_ptr< CommandOutputTarget > &&  target)
overridevirtual

Implements CommandType.

Definition at line 50 of file GetTrackInfoCommand.cpp.

51 {
52  return std::make_shared<GetTrackInfoCommand>(*this, std::move(target));
53 }

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