Audacity  2.2.2
OpenSaveCommands.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  OpenSaveCommands.h
8  Stephen Parry
9  James Crook
10 
11 ******************************************************************//*******************************************************************/
20 
21 #include "Command.h"
22 #include "CommandType.h"
23 
24 #define OPEN_PROJECT_PLUGIN_SYMBOL IdentInterfaceSymbol{ XO("Open Project2") }
25 
27 {
28 public:
29  // CommandDefinitionInterface overrides
31  wxString GetDescription() override {return _("Opens a project.");};
32  bool DefineParams( ShuttleParams & S ) override;
33  void PopulateOrExchange(ShuttleGui & S) override;
34  bool Apply(const CommandContext & context) override;
35 
36  // AudacityCommand overrides
37  wxString ManualPage() override {return wxT("Open");};
38 public:
39  wxString mFileName;
42 };
43 
44 #define SAVE_PROJECT_PLUGIN_SYMBOL IdentInterfaceSymbol{ XO("Save Project2") }
45 
47 {
48 public:
49  // CommandDefinitionInterface overrides
51  wxString GetDescription() override {return _("Saves a project.");};
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("Save");};
58 public:
59  wxString mFileName;
61  bool mbCompress;
64 };
Command for opening an Audacity project.
wxString GetDescription() override
wxString ManualPage() override
bool DefineParams(ShuttleParams &S) override
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:409
Contains declarations for CommandType class.
Contains declaration of Command base class.
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
bool DefineParams(ShuttleParams &S) override
IdentInterfaceSymbol GetSymbol() override
wxString GetDescription() override
IdentInterfaceSymbol GetSymbol() override
#define OPEN_PROJECT_PLUGIN_SYMBOL
IdentInterfaceSymbol pairs a persistent string identifier used internally with an optional...
Base class for command in Audacity.
#define SAVE_PROJECT_PLUGIN_SYMBOL
void PopulateOrExchange(ShuttleGui &S) 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
wxString ManualPage() override
void PopulateOrExchange(ShuttleGui &S) override
Command for saving an Audacity project.
virtual bool Apply()