1 /**********************************************************************
2 
3    Audacity: A Digital Audio Editor
4    Audacity(R) is copyright (c) 1999-2018 Audacity Team.
5    File License: wxwidgets
6 
7    ImportExportCommands.h
8    Dan Horgan
9    James Crook
10 
11 ******************************************************************//**
12 
13 \class ImportCommand
14 \brief Command for importing audio
15 
16 \class ExportCommand
17 \brief Command for exporting audio
18 
19 *//*******************************************************************/
20 
21 #include "Command.h"
22 #include "CommandType.h"
23 
24 // Import
25 
26 class ImportCommand : public AudacityCommand
27 {
28 public:
29    static const ComponentInterfaceSymbol Symbol;
30 
31    // ComponentInterface overrides
GetSymbol()32    ComponentInterfaceSymbol GetSymbol() override {return Symbol;};
GetDescription()33    TranslatableString GetDescription() override {return XO("Imports from a file.");};
34    bool DefineParams( ShuttleParams & S ) override;
35    void PopulateOrExchange(ShuttleGui & S) override;
36    bool Apply(const CommandContext & context) override;
37 
38    // AudacityCommand overrides
ManualPage()39    ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#import";}
40 public:
41    wxString mFileName;
42 };
43 
44 class ExportCommand : public AudacityCommand
45 {
46 public:
47    static const ComponentInterfaceSymbol Symbol;
48 
49    // ComponentInterface overrides
GetSymbol()50    ComponentInterfaceSymbol GetSymbol() override {return Symbol;};
GetDescription()51    TranslatableString GetDescription() override {return XO("Exports to a file.");};
52    bool DefineParams( ShuttleParams & S ) override;
53    void PopulateOrExchange(ShuttleGui & S) override;
54    bool Apply(const CommandContext & context) override;
55 
56    // AudacityCommand overrides
ManualPage()57    ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#export";}
58 public:
59    wxString mFileName;
60    int mnChannels;
61 };
62