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 51 of file ImportExportCommands.cpp.

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

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

Implements CommandType.

Definition at line 56 of file ImportExportCommands.cpp.

References CommandSignature::AddParameter().

57 {
58  auto modeValidator = make_movable<OptionValidator>();
59  modeValidator->AddOption(wxT("All"));
60  modeValidator->AddOption(wxT("Selection"));
61  signature.AddParameter(wxT("Mode"), wxT("All"), std::move(modeValidator));
62 
63  auto filenameValidator = make_movable<DefaultValidator>();
64  signature.AddParameter(wxT("Filename"), wxT("exported.wav"), std::move(filenameValidator));
65 
66  auto channelsValidator = make_movable<IntValidator>();
67  signature.AddParameter(wxT("Channels"), 1, std::move(channelsValidator));
68 }
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 70 of file ImportExportCommands.cpp.

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

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