25 bool FileNameOk(
const char *FileName,
bool SetName =
false);
35 bool Load(
const char *FileName,
bool OnlyDescriptions =
false);
37 bool Save(
const char *FileName);
59 #define THEME_CLR(Theme, Subject, Color) static const tColor Subject = Theme.AddColor(#Subject, Color) 72 bool Load(
const char *SkinName);
74 const char *
Name(
int Index) {
return Index < numThemes ? names[Index] : NULL; }
75 const char *
FileName(
int Index) {
return Index < numThemes ? fileNames[Index] : NULL; }
78 static void SetThemesDirectory(
const char *ThemesDirectory);
79 static void Load(
const char *SkinName,
const char *ThemeName,
cTheme *
Theme);
80 static void Save(
const char *SkinName,
cTheme *Theme);
cTheme(void)
Creates a new theme class.
bool Save(const char *FileName)
Saves the theme data to the given file.
const char *const * Descriptions(void)
bool FileNameOk(const char *FileName, bool SetName=false)
const char * Description(void)
Returns a user visible, single line description of this theme.
bool Load(const char *FileName, bool OnlyDescriptions=false)
Loads the theme data from the given file.
static char * themesDirectory
const char * Name(int Index)
int AddColor(const char *Name, tColor Color)
Adds a color with the given Name to this theme, initializes it with Color and returns an index into t...
tColor colorValues[MaxThemeColors]
const char * FileName(int Index)
char * colorNames[MaxThemeColors]
tColor Color(int Subject)
Returns the color for the given Subject.