22#include "../CommonCommandFlags.h"
27#include "../ProjectFileManager.h"
28#include "../ProjectManager.h"
36{
XO(
"Open Project2") };
42 S.Define(
mFileName,
wxT(
"Filename"), wxString{
"test.aup3"} );
48 {
return VisitSettings<false>(
S); }
51 {
return VisitSettings<true>(
S); }
57 S.StartMultiColumn(2, wxALIGN_CENTER);
69 auto oldFileName = projectFileIO.GetFileName();
83 const auto &newFileName = projectFileIO.GetFileName();
88 return !newFileName.empty() && newFileName != oldFileName;
92{
XO(
"Save Project2") };
98 S.Define(
mFileName,
wxT(
"Filename"), wxString{
"name.aup3"} );
104 {
return VisitSettings<false>(
S); }
107 {
return VisitSettings<true>(
S); }
113 S.StartMultiColumn(2, wxALIGN_CENTER);
125 return projectFileManager.SaveAs();
137 S.Define(
mFileName,
wxT(
"Filename"), wxString{
"name.aup3"} );
142 {
return VisitSettings<false>(
S); }
145 {
return VisitSettings<true>(
S); }
151 S.StartMultiColumn(2, wxALIGN_CENTER);
161 return projectFileManager.SaveCopy(
mFileName);
177 {
return VisitSettings<false>(
S); }
180 {
return VisitSettings<true>(
S); }
186 S.StartMultiColumn(2, wxALIGN_CENTER);
211 {
return VisitSettings<false>(
S); }
214 {
return VisitSettings<true>(
S); }
224 return logger->ClearLog();
233 wxT(
"Optional/Extra/Part2/Scriptables2"),
const ReservedCommandFlag & AudioIONotBusyFlag()
XXO("&Cut/Copy/Paste Toolbar")
static AudacityLogger * Get()
bool VisitSettings(SettingsVisitorBase< Const > &S)
bool Apply(const CommandContext &context) override
static const ComponentInterfaceSymbol Symbol
bool PromptUser(wxWindow *parent) override
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
AudacityProject & project
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
bool VisitSettings(SettingsVisitorBase< Const > &S)
bool Apply(const CommandContext &context) override
static const ComponentInterfaceSymbol Symbol
void PopulateOrExchange(ShuttleGui &S) override
static ProjectFileIO & Get(AudacityProject &project)
static AudacityProject * OpenFile(const ProjectChooserFn &chooser, const FilePath &fileName, bool addtohistory=true)
static ProjectFileManager & Get(AudacityProject &project)
Callable object that supplies the chooser argument of ProjectFileManager::OpenFile.
static void OpenFiles(AudacityProject *proj)
static const ComponentInterfaceSymbol Symbol
bool VisitSettings(SettingsVisitorBase< Const > &S)
void PopulateOrExchange(ShuttleGui &S) override
bool Apply(const CommandContext &context) override
bool VisitSettings(SettingsVisitorBase< Const > &S)
bool Apply(const CommandContext &context) override
static const ComponentInterfaceSymbol Symbol
void PopulateOrExchange(ShuttleGui &S) override
void PopulateOrExchange(ShuttleGui &S) override
static const ComponentInterfaceSymbol Symbol
bool VisitSettings(SettingsVisitorBase< Const > &S)
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.
AUDACITY_DLL_API void OnAudacityCommand(const CommandContext &ctx)
BuiltinCommandsModule::Registration< OpenProjectCommand > reg
BuiltinCommandsModule::Registration< SaveLogCommand > reg4
BuiltinCommandsModule::Registration< ClearLogCommand > reg5
BuiltinCommandsModule::Registration< SaveCopyCommand > reg3
BuiltinCommandsModule::Registration< SaveProjectCommand > reg2