Audacity 3.2.0
|
Classes | |
struct | FileType |
Functions | |
FILES_API wxString | FormatWildcard (const FileTypes &fileTypes) |
FILES_API bool | DoCopyFile (const FilePath &file1, const FilePath &file2, bool overwrite=true) |
FILES_API bool | HardLinkFile (const FilePath &file1, const FilePath &file2) |
FILES_API wxString | MkDir (const wxString &Str) |
FILES_API const FilePaths & | AudacityPathList () |
A list of directories that should be searched for Audacity files (plug-ins, help files, etc.). More... | |
FILES_API void | SetAudacityPathList (FilePaths list) |
FILES_API void | MakeNameUnique (FilePaths &otherNames, wxFileName &newName) |
FILES_API wxString | LowerCaseAppNameInPath (const wxString &dirIn) |
FILES_API FilePath | CacheDir () |
Audacity user cache directory. More... | |
FILES_API FilePath | ConfigDir () |
Audacity user config directory. More... | |
FILES_API FilePath | DataDir () |
Audacity user data directory. More... | |
FILES_API FilePath | StateDir () |
Audacity user state directory. More... | |
FILES_API FilePath | ResourcesDir () |
FILES_API FilePath | HtmlHelpDir () |
FILES_API FilePath | HtmlHelpIndexFile (bool quick) |
FILES_API FilePath | LegacyChainDir () |
FILES_API FilePath | MacroDir () |
FILES_API FilePath | NRPDir () |
FILES_API FilePath | NRPFile () |
FILES_API FilePath | Configuration () |
FILES_API FilePath | PluginRegistry () |
FILES_API FilePath | PluginSettings () |
FILES_API FilePath | BaseDir () |
FILES_API FilePath | ModulesDir () |
FILES_API FilePath | PlugInDir () |
The user plug-in directory (not a system one) More... | |
FILES_API FilePath | PathFromAddr (void *addr) |
FILES_API bool | IsPathAvailable (const FilePath &Path) |
FILES_API wxFileNameWrapper | DefaultToDocumentsFolder (const wxString &preference) |
FILES_API wxString | PreferenceKey (FileNames::Operation op, FileNames::PathType type) |
FILES_API FilePath | FindDefaultPath (Operation op) |
FILES_API void | UpdateDefaultPath (Operation op, const FilePath &path) |
template<typename F > | |
FilePath | WithDefaultPath (Operation op, const FilePath &defaultPath, F function) |
FILES_API void | AddUniquePathToPathList (const FilePath &path, FilePaths &pathList) |
FILES_API void | AddMultiPathsToPathList (const wxString &multiPathString, FilePaths &pathList) |
FILES_API void | FindFilesInPathList (const wxString &pattern, const FilePaths &pathList, FilePaths &results, int flags=wxDIR_FILES) |
FILES_API bool | WritableLocationCheck (const FilePath &path, const TranslatableString &message) |
Check location on writable access and return true if checked successfully. More... | |
FILES_API int | CompareNoCase (const wxString &first, const wxString &second) |
FILES_API wxString | CreateUniqueName (const wxString &prefix, const wxString &suffix=wxEmptyString) |
FILES_API wxString | UnsavedProjectExtension () |
FILES_API bool | IsOnFATFileSystem (const FilePath &path) |
FILES_API wxString | AbbreviatePath (const wxFileName &fileName) |
Give enough of the path to identify the device. (On Windows, drive letter plus ':') More... | |
FILES_API void | InitializePathList () |
FILES_API wxString FileNames::AbbreviatePath | ( | const wxFileName & | fileName | ) |
Give enough of the path to identify the device. (On Windows, drive letter plus ':')
Referenced by DBConnection::CheckpointThread(), ProjectFileManager::DoSave(), FileException::ErrorMessage(), ProjectFileIO::ProjectFileIO(), ProjectFileManager::SaveCopy(), and FileException::WriteFailureMessage().
FILES_API void FileNames::AddMultiPathsToPathList | ( | const wxString & | multiPathString, |
FilePaths & | pathList | ||
) |
Referenced by ModuleManager::DiscoverProviders(), and ModuleManager::FindModules().
Referenced by ModuleManager::DiscoverProviders(), ModuleManager::FindModules(), and NyquistBase::GetNyquistSearchPath().
FILES_API const FilePaths & FileNames::AudacityPathList | ( | ) |
A list of directories that should be searched for Audacity files (plug-ins, help files, etc.).
On Unix this will include the directory Audacity was installed into, plus the current user's .audacity-data/Plug-Ins directory. Additional directories can be specified using the AUDACITY_PATH environment variable. On Windows or Mac OS, this will include the directory which contains the Audacity program.
Referenced by ModuleManager::FindModules(), NyquistBase::GetNyquistSearchPath(), NyquistEffectsModule::Initialize(), LangChoiceDialog::LangChoiceDialog(), LangChoiceDialog::OnOk(), GUIPrefs::Populate(), anonymous_namespace{AudacityApp.cpp}::PopulatePreferences(), NyquistBase::Process(), and GUISettings::SetLang().
FILES_API FilePath FileNames::BaseDir | ( | ) |
FILES_API FilePath FileNames::CacheDir | ( | ) |
Audacity user cache directory.
Where audacity keeps its cache squirreled away, by default ~/.cache/audacity/ on Unix, Application Data/Audacity on windows system
Referenced by AboutDialog::PopulateInformationPage().
FILES_API int FileNames::CompareNoCase | ( | const wxString & | first, |
const wxString & | second | ||
) |
Referenced by anonymous_namespace{FileMenus.cpp}::DoImport(), ProjectFileManager::Import(), and ProjectManager::OpenFiles().
FILES_API FilePath FileNames::ConfigDir | ( | ) |
Audacity user config directory.
Where audacity keeps its settigns squirreled away, by default ~/.config/audacity/ on Unix, Application Data/Audacity on windows system
Referenced by TimeAndPitchExperimentalSettings::GetLogDir(), audacity::cloud::audiocom::anonymous_namespace{UserService.cpp}::MakeAvatarPath(), audacity::cloud::audiocom::sync::CloudProjectsDatabase::OpenConnection(), and AboutDialog::PopulateInformationPage().
FILES_API FilePath FileNames::Configuration | ( | ) |
FILES_API wxString FileNames::CreateUniqueName | ( | const wxString & | prefix, |
const wxString & | suffix = wxEmptyString |
||
) |
FILES_API FilePath FileNames::DataDir | ( | ) |
Audacity user data directory.
Where audacity keeps its user data squirreled away, by default ~/.local/share/audacity/ on Unix, Application Data/Audacity on windows system
Referenced by FFmpegPresets::FFmpegPresets(), EQCurveReader::GetDefaultFileName(), ThemeBase::GetFilePath(), AudacityApp::InitPart2(), Journal::anonymous_namespace{Journal.cpp}::JournalLogger::JournalLogger(), EQCurveReader::LoadCurves(), Tags::LoadGenres(), TagsEditorDialog::OnEdit(), EqualizationCurvesDialog::OnExport(), EqualizationCurvesDialog::OnImport(), TagsEditorDialog::OnLoad(), EqualizationCurvesDialog::OnOK(), TagsEditorDialog::OnReset(), TagsEditorDialog::OnSave(), AboutDialog::PopulateInformationPage(), NyquistBase::Process(), QuitAudacity(), NyquistBase::resolveFilePath(), EQCurveWriter::SaveCurves(), and FFmpegPresets::~FFmpegPresets().
FILES_API wxFileNameWrapper FileNames::DefaultToDocumentsFolder | ( | const wxString & | preference | ) |
FILES_API bool FileNames::DoCopyFile | ( | const FilePath & | file1, |
const FilePath & | file2, | ||
bool | overwrite = true |
||
) |
Referenced by PluginManager::DropFile(), and MacroCommands::MigrateLegacyChains().
Referenced by anonymous_namespace{FileMenus.cpp}::DoExport(), ExportAudioDialog::ExportAudioDialog(), ApplyMacroDialog::OnApplyToFiles(), NyquistBase::resolveFilePath(), ProjectFileManager::SaveAs(), ProjectFileManager::SaveCopy(), ProjectFileManager::ShowOpenDialog(), ExportCommand::VisitSettings(), and WithDefaultPath().
FILES_API void FileNames::FindFilesInPathList | ( | const wxString & | pattern, |
const FilePaths & | pathList, | ||
FilePaths & | results, | ||
int | flags = wxDIR_FILES |
||
) |
Referenced by ModuleManager::DiscoverProviders(), and ModuleManager::FindModules().
FILES_API wxString FileNames::FormatWildcard | ( | const FileTypes & | fileTypes | ) |
Referenced by FileDialogWrapper::Create(), ExportFilePanel::OnFolderBrowse(), and SelectFile().
FILES_API FilePath FileNames::HtmlHelpDir | ( | ) |
Referenced by FileLink(), LinkingHtmlWindow::OnLinkClicked(), NyquistBase::Process(), and HelpSystem::ShowHelp().
FILES_API FilePath FileNames::HtmlHelpIndexFile | ( | bool | quick | ) |
FILES_API void FileNames::InitializePathList | ( | ) |
Referenced by AudacityApp::OnInit(), and PluginHost::PluginHost().
FILES_API bool FileNames::IsOnFATFileSystem | ( | const FilePath & | path | ) |
Referenced by ProjectFileManager::DoSave(), TempDirectory::FATFilesystemDenied(), ProjectFileIO::GetFreeDiskSpace(), ProjectFileManager::SaveCopy(), and TempDirectory::TempDir().
FILES_API bool FileNames::IsPathAvailable | ( | const FilePath & | Path | ) |
Referenced by ProjectFileManager::SaveAs(), and ProjectFileManager::SaveCopy().
FILES_API FilePath FileNames::LegacyChainDir | ( | ) |
Referenced by MacroCommands::DeleteMacro(), and MacroCommands::MigrateLegacyChains().
FILES_API wxString FileNames::LowerCaseAppNameInPath | ( | const wxString & | dirIn | ) |
Referenced by anonymous_namespace{FileNames.cpp}::GetUserTargetDir().
FILES_API FilePath FileNames::MacroDir | ( | ) |
Referenced by MacroCommands::AddMacro(), MacroCommands::DeleteMacro(), MacroCommands::GetNames(), MacroCommands::MigrateLegacyChains(), MacroCommands::ReadMacro(), MacroCommands::RenameMacro(), and MacroCommands::WriteMacro().
FILES_API void FileNames::MakeNameUnique | ( | FilePaths & | otherNames, |
wxFileName & | newName | ||
) |
Referenced by ExportAudioDialog::UpdateLabelExportSettings(), and ExportAudioDialog::UpdateTrackExportSettings().
FILES_API wxString FileNames::MkDir | ( | const wxString & | Str | ) |
Referenced by anonymous_namespace{FileNames.cpp}::GetUserTargetDir(), anonymous_namespace{CloudProjectFileIOExtensions.cpp}::IOExtension::OnSave(), audacity::cloud::audiocom::CloudSyncService::SyncCloudSnapshot(), TempDirectory::TempDir(), anonymous_namespace{Theme.cpp}::ThemeComponentsDir(), and anonymous_namespace{Theme.cpp}::ThemeSubdir().
FILES_API FilePath FileNames::ModulesDir | ( | ) |
FILES_API FilePath FileNames::NRPDir | ( | ) |
FILES_API FilePath FileNames::NRPFile | ( | ) |
FILES_API FilePath FileNames::PathFromAddr | ( | void * | addr | ) |
Referenced by MP3Exporter::InitLibraryExternal(), FFmpegFunctions::Private::LibraryWithSymbol(), and FFmpegFunctions::Private::Load().
FILES_API FilePath FileNames::PlugInDir | ( | ) |
The user plug-in directory (not a system one)
This returns the string path to where the user may have put plug-ins if they don't have system admin rights. Under default settings, it's <DataDir>/Plug-Ins/
Referenced by PluginManager::FindFilesInPathList(), NyquistBase::GetNyquistSearchPath(), LadspaEffectsModule::InstallPath(), NyquistEffectsModule::InstallPath(), and NyquistBase::Process().
FILES_API FilePath FileNames::PluginRegistry | ( | ) |
Referenced by PluginManager::Load(), and PluginManager::Save().
FILES_API FilePath FileNames::PluginSettings | ( | ) |
FILES_API wxString FileNames::PreferenceKey | ( | FileNames::Operation | op, |
FileNames::PathType | type | ||
) |
Referenced by AudacityApp::InitPart2(), DirectoriesPrefs::OnTempBrowse(), DirectoriesPrefs::PopulateOrExchange(), TempDirectory::TempDir(), and WithDefaultPath().
FILES_API FilePath FileNames::ResourcesDir | ( | ) |
Referenced by EQCurveReader::GetDefaultFileName(), anonymous_namespace{MenuHelper.cpp}::IsBundledPlugin(), MenuHelper::PopulateEffectsMenu(), anonymous_namespace{AudacityApp.cpp}::PopulatePreferences(), and EQCurveReader::UpdateDefaultCurves().
FILES_API void FileNames::SetAudacityPathList | ( | FilePaths | list | ) |
FILES_API FilePath FileNames::StateDir | ( | ) |
Audacity user state directory.
Where audacity keeps its user state squirreled away, by default ~/.local/state/audacity/ on Unix, Application Data/Audacity on windows system
Referenced by anonymous_namespace{AudacityApp.cpp}::InitCrashreports(), and AboutDialog::PopulateInformationPage().
FILES_API wxString FileNames::UnsavedProjectExtension | ( | ) |
Referenced by AutoRecoveryDialog::OnDiscardSelected(), AutoRecoveryDialog::PopulateList(), and TempDirectory::UnsavedProjectFileName().
Referenced by anonymous_namespace{FileMenus.cpp}::DoImport(), EVT_MENU_RANGE(), AudacityApp::InitTempDir(), anonymous_namespace{PluginMenus.cpp}::OnResetConfig(), ProjectFileManager::ShowOpenDialog(), TempDirectory::TempDir(), and WithDefaultPath().
FilePath FileNames::WithDefaultPath | ( | Operation | op, |
const FilePath & | defaultPath, | ||
F | function | ||
) |
Definition at line 191 of file FileNames.h.
References FindDefaultPath(), gPrefs, PreferenceKey(), audacity::BasicSettings::Read(), and UpdateDefaultPath().
Referenced by SelectFile().
FILES_API bool FileNames::WritableLocationCheck | ( | const FilePath & | path, |
const TranslatableString & | message | ||
) |
Check location on writable access and return true if checked successfully.
Referenced by anonymous_namespace{AudioComPrefsPanel.cpp}::AudioComPrefsPanel::Browse(), anonymous_namespace{FileMenus.cpp}::DoExport(), audacity::cloud::audiocom::GetUploadTempPath(), DirectoriesPrefs::OnBrowse(), DirectoriesPrefs::OnTempBrowse(), and DirectoriesPrefs::Validate().