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

#include <ImportExportCommands.h>

Inheritance diagram for ExportCommandType:
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 47 of file ImportExportCommands.h.

Member Function Documentation

wxString ExportCommandType::BuildName ( )
overridevirtual

Implements CommandType.

Definition at line 50 of file ImportExportCommands.cpp.

51 {
52  return wxT("Export");
53 }
void ExportCommandType::BuildSignature ( CommandSignature signature)
overridevirtual

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

Implements CommandType.

Definition at line 55 of file ImportExportCommands.cpp.

References CommandSignature::AddParameter().

56 {
57  auto modeValidator = make_movable<OptionValidator>();
58  modeValidator->AddOption(wxT("All"));
59  modeValidator->AddOption(wxT("Selection"));
60  signature.AddParameter(wxT("Mode"), wxT("All"), std::move(modeValidator));
61 
62  auto filenameValidator = make_movable<DefaultValidator>();
63  signature.AddParameter(wxT("Filename"), wxT("exported.wav"), std::move(filenameValidator));
64 
65  auto channelsValidator = make_movable<IntValidator>();
66  signature.AddParameter(wxT("Channels"), 1, std::move(channelsValidator));
67 }
void AddParameter(const wxString &name, const wxVariant &dft, movable_ptr< Validator > &&valid)
CommandHolder ExportCommandType::Create ( std::unique_ptr< CommandOutputTarget > &&  target)
overridevirtual

Implements CommandType.

Definition at line 69 of file ImportExportCommands.cpp.

70 {
71  return std::make_shared<ExportCommand>(*this, std::move(target));
72 }

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