Audacity
3.2.0
libraries
lib-files
PlatformCompatibilityWX.cpp
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
/*!********************************************************************
3
4
Audacity: A Digital Audio Editor
5
6
PlatformCompatibilityWX.cpp
7
8
Matthieu Hodgkinson
9
10
Requires a running wxApp to work. For another UI framework you'll need to use
11
another source file.
12
13
**********************************************************************/
14
15
#include "
PlatformCompatibility.h
"
16
#include <wx/stdpaths.h>
17
#include <wx/utils.h>
18
19
std::string
PlatformCompatibility::GetUserDataDir
()
20
{
21
return
wxStandardPaths::Get
().GetUserDataDir().ToStdString();
22
}
23
24
std::string
PlatformCompatibility::GetUserLocalDataDir
()
25
{
26
return
wxStandardPaths::Get
().GetUserLocalDataDir().ToStdString();
27
}
28
29
std::string
PlatformCompatibility::GetResourcesDir
()
30
{
31
return
wxStandardPaths::Get
().GetResourcesDir().ToStdString();
32
}
33
34
std::string
PlatformCompatibility::GetDataDir
()
35
{
36
return
wxStandardPaths::Get
().GetDataDir().ToStdString();
37
}
38
39
std::string
PlatformCompatibility::GetPluginsDir
()
40
{
41
return
wxStandardPaths::Get
().GetPluginsDir().ToStdString();
42
}
43
44
std::string
PlatformCompatibility::GetDocumentsDir
()
45
{
46
return
wxStandardPaths::Get
().GetDocumentsDir().ToStdString();
47
}
48
49
std::string
PlatformCompatibility::GetExecutablePath
()
50
{
51
return
wxStandardPaths::Get
().GetExecutablePath().ToStdString();
52
}
53
54
std::string
PlatformCompatibility::GetTempDir
()
55
{
56
return
wxStandardPaths::Get
().GetTempDir().ToStdString();
57
}
58
59
std::string
PlatformCompatibility::GetHomeDir
()
60
{
61
return
wxGetHomeDir().ToStdString();
62
}
PlatformCompatibility.h
BasicUI::Get
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
Definition:
BasicUI.cpp:202
PlatformCompatibility::GetPluginsDir
std::string FILES_API GetPluginsDir()
PlatformCompatibility::GetUserDataDir
std::string FILES_API GetUserDataDir()
PlatformCompatibility::GetDocumentsDir
std::string FILES_API GetDocumentsDir()
PlatformCompatibility::GetTempDir
std::string FILES_API GetTempDir()
PlatformCompatibility::GetDataDir
std::string FILES_API GetDataDir()
PlatformCompatibility::GetResourcesDir
std::string FILES_API GetResourcesDir()
PlatformCompatibility::GetExecutablePath
std::string FILES_API GetExecutablePath()
PlatformCompatibility::GetHomeDir
std::string FILES_API GetHomeDir()
PlatformCompatibility::GetUserLocalDataDir
std::string FILES_API GetUserLocalDataDir()
Generated by
1.9.3