Audacity 3.2.0
Functions | Variables
anonymous_namespace{Theme.cpp} Namespace Reference

Functions

wxString ThemeFilePrefix (teThemeType id)
 
FilePath ThemeSubdir (const FilePath &themeDir, Identifier id)
 Has the side-effect of ensuring existence of the directory. More...
 
FilePath ThemeComponentsDir (const FilePath &themeDir, Identifier id)
 Has the side-effect of ensuring existence of the directory. More...
 
FilePath ThemeImageDefsAsCee (const FilePath &themeDir)
 
FilePath ThemeComponent (const wxString &dir, const wxString &Str)
 

Variables

constexpr int iColSize = 10
 
constexpr auto ImageCacheFileName = L"ImageCache.png"
 
constexpr auto ImageMapFileName = L"ImageCache.htm"
 
constexpr auto ColorFileName = L"Colors.txt"
 
constexpr auto ThemeCacheFileName = L"ThemeAsCeeCode.h"
 

Function Documentation

◆ ThemeComponent()

FilePath anonymous_namespace{Theme.cpp}::ThemeComponent ( const wxString &  dir,
const wxString &  Str 
)

Definition at line 131 of file Theme.cpp.

132{
133 return wxFileName( dir, Str, wxT("png") ).GetFullPath();
134}
wxT("CloseDown"))

References wxT().

Referenced by ThemeBase::LoadOneThemeComponents().

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

◆ ThemeComponentsDir()

FilePath anonymous_namespace{Theme.cpp}::ThemeComponentsDir ( const FilePath themeDir,
Identifier  id 
)

Has the side-effect of ensuring existence of the directory.

Definition at line 113 of file Theme.cpp.

114{
115 return FileNames::MkDir( wxFileName( ThemeSubdir(themeDir, id), wxT("Components") ).GetFullPath() );
116}
FILES_API wxString MkDir(const wxString &Str)
FilePath ThemeSubdir(const FilePath &themeDir, Identifier id)
Has the side-effect of ensuring existence of the directory.
Definition: Theme.cpp:106

References FileNames::MkDir(), ThemeSubdir(), and wxT().

Referenced by ThemeBase::LoadOneThemeComponents().

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

◆ ThemeFilePrefix()

wxString anonymous_namespace{Theme.cpp}::ThemeFilePrefix ( teThemeType  id)

Definition at line 96 of file Theme.cpp.

97{
98 auto strings = wxSplit(id.GET(), L'-');
99 wxString result;
100 for (auto &string : strings)
101 result += string.Capitalize();
102 return result;
103}

Referenced by ThemeBase::CreateOneImageCache().

Here is the caller graph for this function:

◆ ThemeImageDefsAsCee()

FilePath anonymous_namespace{Theme.cpp}::ThemeImageDefsAsCee ( const FilePath themeDir)

Definition at line 124 of file Theme.cpp.

125{
126 return wxFileName( themeDir, wxT("ThemeImageDefsAsCee.h") ).GetFullPath();
127}

References wxT().

Referenced by ThemeBase::WriteImageDefs().

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

◆ ThemeSubdir()

FilePath anonymous_namespace{Theme.cpp}::ThemeSubdir ( const FilePath themeDir,
Identifier  id 
)

Has the side-effect of ensuring existence of the directory.

Definition at line 106 of file Theme.cpp.

107{
108 return FileNames::MkDir(
109 wxFileName( FileNames::MkDir(themeDir), id.GET() ).GetFullPath() );
110}

References FileNames::MkDir().

Referenced by ThemeBase::CreateOneImageCache(), ThemeBase::ReadImageCache(), ThemeComponentsDir(), and ThemeBase::WriteOneImageMap().

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

Variable Documentation

◆ ColorFileName

constexpr auto anonymous_namespace{Theme.cpp}::ColorFileName = L"Colors.txt"
constexpr

Definition at line 122 of file Theme.cpp.

Referenced by ThemeBase::LoadOneThemeComponents().

◆ iColSize

constexpr int anonymous_namespace{Theme.cpp}::iColSize = 10
constexpr

◆ ImageCacheFileName

constexpr auto anonymous_namespace{Theme.cpp}::ImageCacheFileName = L"ImageCache.png"
constexpr

◆ ImageMapFileName

constexpr auto anonymous_namespace{Theme.cpp}::ImageMapFileName = L"ImageCache.htm"
constexpr

Definition at line 120 of file Theme.cpp.

Referenced by ThemeBase::WriteOneImageMap().

◆ ThemeCacheFileName

constexpr auto anonymous_namespace{Theme.cpp}::ThemeCacheFileName = L"ThemeAsCeeCode.h"
constexpr

Definition at line 129 of file Theme.cpp.

Referenced by ThemeBase::CreateOneImageCache().