11#ifndef __AUDACITY_PROJECT_FILE_MANAGER__
12#define __AUDACITY_PROJECT_FILE_MANAGER__
39 static void DiscardAutosave(
const FilePath &filename);
48 bool OpenNewProject();
50 void CompactProjectOnClose();
53 bool SaveAs(
bool allowOverwrite =
false);
54 bool SaveAs(
const FilePath &newFileName,
bool addToHistory =
true);
56 bool SaveFromTimerRecording( wxFileName fnFile );
82 static bool IsAlreadyOpen(
const FilePath &projPathName);
95 const FilePath &fileName,
bool addtohistory =
true);
97 bool Import(
const FilePath &fileName,
98 bool addToHistory =
true);
102 void AddImportedTracks(
const FilePath &fileName,
125 const FilePath &fileName,
bool addtohistory);
135 const FilePath &fileName,
bool discardAutosave =
false );
137 bool DoSave(
const FilePath & fileName,
bool fromSaveAs);
144 bool mMenuClose{
false };
147class wxTopLevelWindow;
Utility ClientData::Site to register hooks into a host class that attach client data.
std::vector< std::shared_ptr< TrackList > > TrackHolders
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
bool GetMenuClose() const
std::shared_ptr< TrackList > mLastSavedTracks
AudacityProject & mProject
ProjectFileManager(const ProjectFileManager &)=delete
ProjectFileManager & operator=(const ProjectFileManager &)=delete
std::function< AudacityProject &(bool)> ProjectChooserFn
A function that returns a project to use for opening a file; argument is true if opening a project fi...
void SetMenuClose(bool value)
TitleRestorer(wxTopLevelWindow &window, AudacityProject &project)
Abstract base class for an object holding data associated with points on a time axis.
A flat linked list of tracks supporting Add, Remove, Clear, and Contains, serialization of the list o...
Holds a msgid for the translation catalog; may also bind format arguments.
A Track that contains audio waveform data.
This class is an interface which should be implemented by classes which wish to be able to load and s...
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
A convenient default parameter for class template Site.
const TranslatableString errorString