Audacity  3.0.3
ImportExportCommands.h
Go to the documentation of this file.
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 ******************************************************************//*******************************************************************/
20 
21 #include "Command.h"
22 #include "CommandType.h"
23 
24 // Import
25 
27 {
28 public:
30 
31  // ComponentInterface overrides
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
39  ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#import";}
40 public:
41  wxString mFileName;
42 };
43 
45 {
46 public:
48 
49  // ComponentInterface overrides
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
57  ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#export";}
58 public:
59  wxString mFileName;
61 };
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition: TranslatableString.h:32
ExportCommand::GetDescription
TranslatableString GetDescription() override
Definition: ImportExportCommands.h:51
ExportCommand::Apply
bool Apply(const CommandContext &context) override
Definition: ImportExportCommands.cpp:93
ImportCommand::GetSymbol
ComponentInterfaceSymbol GetSymbol() override
Definition: ImportExportCommands.h:32
ExportCommand::Symbol
static const ComponentInterfaceSymbol Symbol
Definition: ImportExportCommands.h:47
ImportCommand::Symbol
static const ComponentInterfaceSymbol Symbol
Definition: ImportExportCommands.h:29
XO
#define XO(s)
Definition: Internat.h:31
ShuttleParams
Shuttle that deals with parameters. This is a base class with lots of virtual functions that do nothi...
Definition: Shuttle.h:62
ExportCommand::mnChannels
int mnChannels
Definition: ImportExportCommands.h:60
ImportCommand::GetDescription
TranslatableString GetDescription() override
Definition: ImportExportCommands.h:33
ComponentInterfaceSymbol
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Definition: ComponentInterfaceSymbol.h:27
ImportCommand
Command for importing audio.
Definition: ImportExportCommands.h:27
CommandContext
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
Definition: CommandContext.h:34
ImportCommand::mFileName
wxString mFileName
Definition: ImportExportCommands.h:41
ExportCommand::DefineParams
bool DefineParams(ShuttleParams &S) override
Definition: ImportExportCommands.cpp:68
AudacityCommand
Base class for command in Audacity.
Definition: AudacityCommand.h:41
ExportCommand::mFileName
wxString mFileName
Definition: ImportExportCommands.h:59
ExportCommand
Command for exporting audio.
Definition: ImportExportCommands.h:45
ExportCommand::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S) override
Definition: ImportExportCommands.cpp:81
CommandType.h
Contains declarations for CommandType class.
TaggedIdentifier< ManualPageIDTag >
ImportCommand::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S) override
Definition: ImportExportCommands.cpp:41
ImportCommand::DefineParams
bool DefineParams(ShuttleParams &S) override
Definition: ImportExportCommands.cpp:36
Command.h
Contains declaration of Command base class.
ImportCommand::Apply
bool Apply(const CommandContext &context) override
Definition: ImportExportCommands.cpp:52
ExportCommand::GetSymbol
ComponentInterfaceSymbol GetSymbol() override
Definition: ImportExportCommands.h:50
ExportCommand::ManualPage
ManualPageID ManualPage() override
Definition: ImportExportCommands.h:57
ImportCommand::ManualPage
ManualPageID ManualPage() override
Definition: ImportExportCommands.h:39
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:631