Audacity 3.2.0
Classes | Namespaces | Typedefs | Functions | Variables
ProjectFileManager.cpp File Reference
#include "ProjectFileManager.h"
#include <wx/crt.h>
#include <wx/evtloop.h>
#include "AnalyzedWaveClip.h"
#include "AudacityMessageBox.h"
#include "AudacityMirProject.h"
#include "BasicUI.h"
#include "ClipMirAudioReader.h"
#include "CodeConversions.h"
#include "Export.h"
#include "HelpText.h"
#include "Import.h"
#include "ImportPlugin.h"
#include "ImportProgressListener.h"
#include "Legacy.h"
#include "MusicInformationRetrieval.h"
#include "PlatformCompatibility.h"
#include "Project.h"
#include "ProjectFileIO.h"
#include "ProjectHistory.h"
#include "ProjectNumericFormats.h"
#include "ProjectRate.h"
#include "ProjectSelectionManager.h"
#include "ProjectSettings.h"
#include "ProjectStatus.h"
#include "ProjectTimeSignature.h"
#include "ProjectWindow.h"
#include "ProjectWindows.h"
#include "RealtimeEffectList.h"
#include "SelectFile.h"
#include "SelectUtilities.h"
#include "SelectionState.h"
#include "Tags.h"
#include "TempDirectory.h"
#include "TempoChange.h"
#include "TimeDisplayMode.h"
#include "TrackFocus.h"
#include "TrackPanel.h"
#include "UndoTracks.h"
#include "UserException.h"
#include "ViewInfo.h"
#include "WaveClip.h"
#include "WaveTrack.h"
#include "WaveTrackUtilities.h"
#include "XMLFileReader.h"
#include "import/ImportStreamDialog.h"
#include "prefs/ImportExportPrefs.h"
#include "widgets/FileHistory.h"
#include "widgets/UnwritableLocationErrorDialog.h"
#include "widgets/Warning.h"
#include "wxFileNameWrapper.h"
#include "wxPanelWrapper.h"
#include "ProjectFileIOExtension.h"
#include <optional>
#include <wx/frame.h>
#include <wx/log.h>
#include "Clipboard.h"
#include "ShuttleGui.h"
#include "HelpSystem.h"

Go to the source code of this file.

Classes

class  anonymous_namespace{ProjectFileManager.cpp}::ImportProgress
 
class  anonymous_namespace{ProjectFileManager.cpp}::CompactDialog
 

Namespaces

namespace  anonymous_namespace{ProjectFileManager.cpp}
 

Typedefs

using anonymous_namespace{ProjectFileManager.cpp}::Pair = std::pair< const char *, const char * >
 

Functions

wxString anonymous_namespace{ProjectFileManager.cpp}::FindHelpUrl (const TranslatableString &libraryError)
 
bool anonymous_namespace{ProjectFileManager.cpp}::ImportProject (AudacityProject &dest, const FilePath &fileName)
 
std::vector< std::shared_ptr< MIR::AnalyzedAudioClip > > anonymous_namespace{ProjectFileManager.cpp}::RunTempoDetection (const std::vector< std::shared_ptr< ClipMirAudioReader > > &readers, const MIR::ProjectInterface &project, bool projectWasEmpty)
 
static void RefreshAllTitles (bool bShowProjectNumbers)
 

Variables

static const AudacityProject::AttachedObjects::RegisteredFactory sFileManagerKey
 
const char *const anonymous_namespace{ProjectFileManager.cpp}::defaultHelpUrl
 
const Pair anonymous_namespace{ProjectFileManager.cpp}::helpURLTable []
 

Function Documentation

◆ RefreshAllTitles()

static void RefreshAllTitles ( bool  bShowProjectNumbers)
static

Definition at line 1726 of file ProjectFileManager.cpp.

1727{
1728 for ( auto pProject : AllProjects{} ) {
1729 if ( !GetProjectFrame( *pProject ).IsIconized() ) {
1731 bShowProjectNumbers ? pProject->GetProjectNumber() : -1 );
1732 }
1733 }
1734}
AUDACITY_DLL_API wxFrame & GetProjectFrame(AudacityProject &project)
Get the top-level window associated with the project (as a wxFrame only, when you do not need to use ...
void SetProjectTitle(int number=-1)
static ProjectFileIO & Get(AudacityProject &project)

References ProjectFileIO::Get(), GetProjectFrame(), and ProjectFileIO::SetProjectTitle().

Referenced by TitleRestorer::TitleRestorer(), and TitleRestorer::~TitleRestorer().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ sFileManagerKey

Initial value:
{
[]( AudacityProject &parent ){
auto result = std::make_shared< ProjectFileManager >( parent );
return result;
}
}
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90

Definition at line 75 of file ProjectFileManager.cpp.

Referenced by ProjectFileManager::Get().