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();
84 const auto &newFileName = projectFileIO.GetFileName();
89 return !newFileName.empty() && newFileName != oldFileName;
93{
XO(
"Save Project2") };
99 S.Define(
mFileName,
wxT(
"Filename"), wxString{
"name.aup3"} );
105 {
return VisitSettings<false>(
S); }
108 {
return VisitSettings<true>(
S); }
114 S.StartMultiColumn(2, wxALIGN_CENTER);
126 return projectFileManager.SaveAs();
138 S.Define(
mFileName,
wxT(
"Filename"), wxString{
"name.aup3"} );
143 {
return VisitSettings<false>(
S); }
146 {
return VisitSettings<true>(
S); }
152 S.StartMultiColumn(2, wxALIGN_CENTER);
162 return projectFileManager.SaveCopy(
mFileName);
178 {
return VisitSettings<false>(
S); }
181 {
return VisitSettings<true>(
S); }
187 S.StartMultiColumn(2, wxALIGN_CENTER);
212 {
return VisitSettings<false>(
S); }
215 {
return VisitSettings<true>(
S); }
225 return logger->ClearLog();
244 wxT(
"Optional/Extra/Part2/Scriptables2")
const ReservedCommandFlag & AudioIONotBusyFlag()
XXO("&Cut/Copy/Paste Toolbar")
static AudacityLogger * Get()
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
bool VisitSettings(SettingsVisitorBase< Const > &S)
bool Apply(const CommandContext &context) override
bool PromptUser(AudacityProject &project) override
static const ComponentInterfaceSymbol Symbol
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)
Generates classes whose instances register items at construction.
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