11#ifndef __AUDACITY_PROJECT_MANAGER__
12#define __AUDACITY_PROJECT_MANAGER__
73 : mpGivenProject{ pProject }
74 , mReuseNonemptyProject{ reuseNonemptyProject }
102 const FilePath &fileNameArg,
bool addtohistory,
bool reuseNonemptyProject);
104 void ResetProjectToEmpty();
106 static void SaveWindowSize();
109 int GetEstimatedRecordingMinsLeftOnDisk(
long lCaptureChannels = 0);
117 static void SetClosingAll(
bool closing);
122 void OnTimer(wxTimerEvent & event);
135 DECLARE_EVENT_TABLE()
137 static
bool sbWindowRectAlreadySaved;
138 static
bool sbSkipPromptingForSave;
Utility ClientData::Site to register hooks into a host class that attach client data.
ProjectFileIOMessage
Subscribe to ProjectFileIO to receive messages; always in idle time.
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
An explicitly nonlocalized string, not meant for the user to see.
A move-only handle representing a connection to a Publisher.
Callable object that supplies the chooser argument of ProjectFileManager::OpenFile.
bool mReuseNonemptyProject
AudacityProject * mpGivenProject
ProjectChooser(AudacityProject *pProject, bool reuseNonemptyProject)
ProjectChooser(const ProjectChooser &)=delete
Don't copy. Use std::ref to pass it to ProjectFileManager.
Object associated with a project for high-level management of the project's lifetime,...
std::unique_ptr< wxTimer > mTimer
ProjectManager & operator=(const ProjectManager &)=delete
Observer::Subscription mProjectFileIOSubscription
~ProjectManager() override
AudacityProject & mProject
Observer::Subscription mProjectStatusSubscription
ProjectManager(const ProjectManager &)=delete
void SetSkipSavePrompt(bool bSkip)
Holds a msgid for the translation catalog; may also bind format arguments.
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
void OnCloseWindow(wxCloseEvent &e)
struct holding stream options, including a pointer to the time warp info and AudioIOListener and whet...
A convenient default parameter for class template Site.