Audacity 3.2.0
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******************************************************************//*******************************************************************/
26
27#include "Command.h"
28#include "CommandType.h"
29
31{
32public:
34
35 // ComponentInterface overrides
36 ComponentInterfaceSymbol GetSymbol() const override {return Symbol;};
37 TranslatableString GetDescription() const override {return XO("Opens a project.");};
38 template<bool Const> bool VisitSettings( SettingsVisitorBase<Const> &S );
39 bool VisitSettings( SettingsVisitor & S ) override;
40 bool VisitSettings( ConstSettingsVisitor & S ) override;
41 void PopulateOrExchange(ShuttleGui & S) override;
42 bool Apply(const CommandContext & context) override;
43
44 // AudacityCommand overrides
45 ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#open_project";}
46public:
47 wxString mFileName;
50};
51
53{
54public:
56
57 // ComponentInterface overrides
58 ComponentInterfaceSymbol GetSymbol() const override {return Symbol;};
59 TranslatableString GetDescription() const override {return XO("Saves a project.");};
60 template<bool Const> bool VisitSettings( SettingsVisitorBase<Const> &S );
61 bool VisitSettings( SettingsVisitor & S ) override;
62 bool VisitSettings( ConstSettingsVisitor & S ) override;
63 void PopulateOrExchange(ShuttleGui & S) override;
64 bool Apply(const CommandContext & context) override;
65
66 // AudacityCommand overrides
67 ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#save_project";}
68public:
69 wxString mFileName;
72};
73
75{
76public:
78
79 // ComponentInterface overrides
80 ComponentInterfaceSymbol GetSymbol() const override {return Symbol;};
81 TranslatableString GetDescription() const override {return XO("Saves a copy of current project.");};
82 template<bool Const> bool VisitSettings( SettingsVisitorBase<Const> &S );
83 bool VisitSettings( SettingsVisitor & S ) override;
84 bool VisitSettings( ConstSettingsVisitor & S ) override;
85 void PopulateOrExchange(ShuttleGui & S) override;
86 bool Apply(const CommandContext & context) override;
87
88 // AudacityCommand overrides
89 ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#save_copy";}
90public:
91 wxString mFileName;
92};
93
95{
96public:
98
99 // ComponentInterface overrides
100 ComponentInterfaceSymbol GetSymbol() const override {return Symbol;};
101 TranslatableString GetDescription() const override {return XO("Saves the log contents.");};
102 template<bool Const> bool VisitSettings( SettingsVisitorBase<Const> &S );
103 bool VisitSettings( SettingsVisitor & S ) override;
104 bool VisitSettings( ConstSettingsVisitor & S ) override;
105 void PopulateOrExchange(ShuttleGui & S) override;
106 bool Apply(const CommandContext & context) override;
107
108 // AudacityCommand overrides
109 ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#save_log";}
110public:
111 wxString mFileName;
112};
113
115{
116public:
118
119 // ComponentInterface overrides
120 ComponentInterfaceSymbol GetSymbol() const override {return Symbol;};
121 TranslatableString GetDescription() const override {return XO("Clears the log contents.");};
122 template<bool Const> bool VisitSettings( SettingsVisitorBase<Const> &S );
123 bool VisitSettings( SettingsVisitor & S ) override;
124 bool VisitSettings( ConstSettingsVisitor & S ) override;
125 bool PromptUser(AudacityProject& project) override;
126 bool Apply(const CommandContext & context) override;
127
128 // AudacityCommand overrides
129 ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#Clear_log";}
130public:
131 wxString mFileName;
132};
Contains declaration of Command base class.
Contains declarations for CommandType class.
XO("Cut/Copy/Paste")
const auto project
#define S(N)
Definition: ToChars.cpp:64
Base class for command in Audacity.
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
bool VisitSettings(SettingsVisitorBase< Const > &S)
TranslatableString GetDescription() const override
bool Apply(const CommandContext &context) override
bool PromptUser(AudacityProject &project) override
static const ComponentInterfaceSymbol Symbol
ManualPageID ManualPage() override
ComponentInterfaceSymbol GetSymbol() const override
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Command for opening an Audacity project.
ManualPageID ManualPage() override
bool VisitSettings(SettingsVisitorBase< Const > &S)
TranslatableString GetDescription() const override
bool Apply(const CommandContext &context) override
static const ComponentInterfaceSymbol Symbol
ComponentInterfaceSymbol GetSymbol() const override
void PopulateOrExchange(ShuttleGui &S) override
Command for saving a copy of currently project.
TranslatableString GetDescription() const override
static const ComponentInterfaceSymbol Symbol
ComponentInterfaceSymbol GetSymbol() const override
bool VisitSettings(SettingsVisitorBase< Const > &S)
ManualPageID ManualPage() override
void PopulateOrExchange(ShuttleGui &S) override
bool Apply(const CommandContext &context) override
Command for saving the log contents.
bool VisitSettings(SettingsVisitorBase< Const > &S)
ComponentInterfaceSymbol GetSymbol() const override
bool Apply(const CommandContext &context) override
static const ComponentInterfaceSymbol Symbol
ManualPageID ManualPage() override
void PopulateOrExchange(ShuttleGui &S) override
TranslatableString GetDescription() const override
Command for saving an Audacity project.
void PopulateOrExchange(ShuttleGui &S) override
static const ComponentInterfaceSymbol Symbol
TranslatableString GetDescription() const override
bool VisitSettings(SettingsVisitorBase< Const > &S)
ManualPageID ManualPage() override
ComponentInterfaceSymbol GetSymbol() const override
bool Apply(const CommandContext &context) override
Visitor of effect or command parameters. This is a base class with lots of virtual functions that do ...
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
Holds a msgid for the translation catalog; may also bind format arguments.