MythTV  master
mythuithemehelper.h
Go to the documentation of this file.
1 #ifndef MYTHUITHEMEHELPER_H
2 #define MYTHUITHEMEHELPER_H
3 
4 // MythTV
5 #include "themeinfo.h"
6 
7 static constexpr const char* DEFAULT_UI_THEME { "MythCenter-wide" };
8 static constexpr const char* FALLBACK_UI_THEME { "Terra" };
9 
11 {
12  public:
13  void InitThemeHelper();
14  QString FindThemeDir(const QString& ThemeName, bool Fallback = true);
15  QString FindMenuThemeDir(const QString& MenuName);
16  bool FindThemeFile(QString& Path);
17  QString GetThemeDir();
18  QString GetThemeName();
19  QStringList GetThemeSearchPath();
20  QString GetMenuThemeDir();
21  QSize GetBaseSize() const;
22  QList<ThemeInfo> GetThemes(ThemeType Type);
23 
24  private:
25  QStringList m_searchPaths;
27  QString m_themepathname;
28  QString m_themename;
29  QString m_userThemeDir;
30  QSize m_baseSize { 800, 600 };
31  bool m_isWide { false };
32 };
33 
34 #endif
MUI_PUBLIC
#define MUI_PUBLIC
Definition: mythuiexp.h:9
MythUIThemeHelper::m_themename
QString m_themename
Definition: mythuithemehelper.h:28
MythUIThemeHelper::m_menuthemepathname
QString m_menuthemepathname
Definition: mythuithemehelper.h:26
MythUIThemeHelper
Definition: mythuithemehelper.h:10
themeinfo.h
MythUIThemeHelper::m_userThemeDir
QString m_userThemeDir
Definition: mythuithemehelper.h:29
ThemeType
ThemeType
Definition: themeinfo.h:13
MythUIThemeHelper::m_searchPaths
QStringList m_searchPaths
Definition: mythuithemehelper.h:25
MythUIThemeHelper::m_themepathname
QString m_themepathname
Definition: mythuithemehelper.h:27
DEFAULT_UI_THEME
static constexpr const char * DEFAULT_UI_THEME
Definition: mythuithemehelper.h:7
FALLBACK_UI_THEME
static constexpr const char * FALLBACK_UI_THEME
Definition: mythuithemehelper.h:8