Audacity  2.2.2
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 
26 #define IMPORT_PLUGIN_SYMBOL IdentInterfaceSymbol{ XO("Import2") }
27 
29 {
30 public:
31  // CommandDefinitionInterface overrides
33  wxString GetDescription() override {return _("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  wxString ManualPage() override {return wxT("Import");};
40 public:
41  wxString mFileName;
42 };
43 
44 #define EXPORT_PLUGIN_SYMBOL IdentInterfaceSymbol{ XO("Export2") }
45 
47 {
48 public:
49  // CommandDefinitionInterface overrides
51  wxString GetDescription() override {return _("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  wxString ManualPage() override {return wxT("Export");};
58 public:
59  wxString mFileName;
61 };
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:409
wxString ManualPage() override
wxString GetDescription() override
Contains declarations for CommandType class.
Command for importing audio.
Contains declaration of Command base class.
void PopulateOrExchange(ShuttleGui &S) override
bool DefineParams(ShuttleParams &S) override
wxString GetDescription() override
CommandContext provides addiitonal information to an 'Apply()' command. It provides the project...
Shuttle that deals with parameters. This is a base class with lots of virtual functions that do nothi...
Definition: Shuttle.h:60
IdentInterfaceSymbol GetSymbol() override
Command for exporting audio.
void PopulateOrExchange(ShuttleGui &S) override
#define EXPORT_PLUGIN_SYMBOL
bool DefineParams(ShuttleParams &S) override
IdentInterfaceSymbol GetSymbol() override
IdentInterfaceSymbol pairs a persistent string identifier used internally with an optional...
Base class for command in Audacity.
wxString ManualPage() override
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
#define IMPORT_PLUGIN_SYMBOL
virtual bool Apply()