Audacity 3.2.0
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
16#include <wx/stdpaths.h>
17#include <wx/utils.h>
18
20{
21 return wxStandardPaths::Get().GetUserDataDir().ToStdString();
22}
23
25{
26 return wxStandardPaths::Get().GetUserLocalDataDir().ToStdString();
27}
28
30{
31 return wxStandardPaths::Get().GetResourcesDir().ToStdString();
32}
33
35{
36 return wxStandardPaths::Get().GetDataDir().ToStdString();
37}
38
40{
41 return wxStandardPaths::Get().GetPluginsDir().ToStdString();
42}
43
45{
46 return wxStandardPaths::Get().GetDocumentsDir().ToStdString();
47}
48
50{
51 return wxStandardPaths::Get().GetExecutablePath().ToStdString();
52}
53
55{
56 return wxStandardPaths::Get().GetTempDir().ToStdString();
57}
58
60{
61 return wxGetHomeDir().ToStdString();
62}
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
Definition: BasicUI.cpp:202
std::string FILES_API GetPluginsDir()
std::string FILES_API GetUserDataDir()
std::string FILES_API GetDocumentsDir()
std::string FILES_API GetTempDir()
std::string FILES_API GetDataDir()
std::string FILES_API GetResourcesDir()
std::string FILES_API GetExecutablePath()
std::string FILES_API GetHomeDir()
std::string FILES_API GetUserLocalDataDir()