11#ifndef __AUDACITY_PROJECT_FILE_MANAGER__ 
   12#define __AUDACITY_PROJECT_FILE_MANAGER__ 
   40   static void DiscardAutosave(
const FilePath &filename);
 
   49   bool OpenNewProject();
 
   51   void CompactProjectOnClose();
 
   54   bool SaveAs(
bool allowOverwrite = 
false);
 
   55   bool SaveAs(
const FilePath &newFileName, 
bool addToHistory = 
true);
 
   57   bool SaveFromTimerRecording( wxFileName fnFile );
 
   83   static bool IsAlreadyOpen(
const FilePath &projPathName);
 
   96      const FilePath &fileName, 
bool addtohistory = 
true);
 
   98   bool Import(
const FilePath& fileName, 
bool addToHistory = 
true);
 
   99   bool Import(wxArrayString fileNames, 
bool addToHistory = 
true);
 
  103   void AddImportedTracks(
const FilePath &fileName,
 
  120   bool ImportAndRunTempoDetection(
 
  121      const std::vector<FilePath>& fileNames, 
bool addToHistory);
 
  124      const FilePath& fileName, 
bool addToHistory,
 
  125      std::shared_ptr<ClipMirAudioReader>& resultingReader);
 
  133      const FilePath &fileName, 
bool addtohistory);
 
  143      const FilePath &fileName, 
bool discardAutosave = 
false );
 
  145   bool DoSave(
const FilePath & fileName, 
bool fromSaveAs);
 
  152   bool mMenuClose{ 
false };
 
  155class wxTopLevelWindow;
 
Utility ClientData::Site to register hooks into a host class that attach client data.
std::vector< std::shared_ptr< Track > > 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