|
MythTV master
|
#include <libmythui/mythuithemehelper.h>
Public Member Functions | |
| void | InitThemeHelper () |
| QString | FindThemeDir (const QString &ThemeName, bool Fallback=true) |
| Returns the full path to the theme denoted by themename. More... | |
| QString | FindMenuThemeDir (const QString &MenuName) |
| Returns the full path to the menu theme denoted by menuname. More... | |
| bool | FindThemeFile (QString &Path) |
| QString | GetThemeDir () |
| QString | GetThemeName () |
| QStringList | GetThemeSearchPath () |
| QString | GetMenuThemeDir () |
| QSize | GetBaseSize () const |
| QList< ThemeInfo > | GetThemes (ThemeType Type) |
Private Attributes | |
| QStringList | m_searchPaths |
| QString | m_menuthemepathname |
| QString | m_themepathname |
| QString | m_themename |
| QString | m_userThemeDir |
| QSize | m_baseSize { 800, 600 } |
| bool | m_isWide { false } |
Definition at line 10 of file mythuithemehelper.h.
| QString MythUIThemeHelper::FindMenuThemeDir | ( | const QString & | MenuName | ) |
Returns the full path to the menu theme denoted by menuname.
If the theme cannot be found falls back to the default menu. If the default menu theme doesn't exist then returns an empty string.
| MenuName | The menutheme name. |
Definition at line 106 of file mythuithemehelper.cpp.
Referenced by InitThemeHelper().
Returns the full path to the theme denoted by themename.
If the theme cannot be found falls back to the DEFAULT_UI_THEME. If the DEFAULT_UI_THEME doesn't exist then returns an empty string.
| ThemeName | The theme name. |
| Fallback | If true and the theme isn't found, allow fallback to the default theme. If false and the theme isn't found, then return an empty string. |
Definition at line 48 of file mythuithemehelper.cpp.
Referenced by GetThemeSearchPath(), InitThemeHelper(), main(), reloadTheme(), and resetTheme().
| bool MythUIThemeHelper::FindThemeFile | ( | QString & | Path | ) |
Definition at line 238 of file mythuithemehelper.cpp.
| QSize MythUIThemeHelper::GetBaseSize | ( | ) | const |
Definition at line 271 of file mythuithemehelper.cpp.
Referenced by MythUIScreenBounds::InitScreenBounds(), MythFontProperties::SetPixelSize(), and MythRect::setRect().
| QString MythUIThemeHelper::GetMenuThemeDir | ( | ) |
Definition at line 136 of file mythuithemehelper.cpp.
Referenced by MythThemedMenu::findMenuFile().
| QString MythUIThemeHelper::GetThemeDir | ( | ) |
Definition at line 141 of file mythuithemehelper.cpp.
Referenced by MythThemedMenu::findMenuFile(), MythUIImage::FindRandomImage(), MythImageReader::MythImageReader(), mythplugin_config(), NetworkControl::processTheme(), and runMenu().
| QString MythUIThemeHelper::GetThemeName | ( | ) |
Definition at line 146 of file mythuithemehelper.cpp.
Referenced by NetworkControl::processTheme().
Definition at line 211 of file mythuithemehelper.cpp.
Referenced by GetThemeSearchPath(), and MenuTheme().
| QStringList MythUIThemeHelper::GetThemeSearchPath | ( | ) |
Definition at line 151 of file mythuithemehelper.cpp.
Referenced by FindThemeFile(), XMLParseBase::LoadBaseTheme(), MythTVMenu::LoadFromFile(), loadScreens(), XMLParseBase::LoadWindowFromXML(), MythUIGuideGrid::parseDefaultCategoryColors(), and XMLParseBase::WindowExists().
| void MythUIThemeHelper::InitThemeHelper | ( | ) |
Definition at line 14 of file mythuithemehelper.cpp.
Referenced by MythUIHelper::Init(), and reloadTheme().
|
private |
Definition at line 30 of file mythuithemehelper.h.
Referenced by GetBaseSize(), and InitThemeHelper().
Definition at line 31 of file mythuithemehelper.h.
Referenced by GetThemeSearchPath(), and InitThemeHelper().
|
private |
Definition at line 26 of file mythuithemehelper.h.
Referenced by GetMenuThemeDir(), and InitThemeHelper().
|
private |
Definition at line 25 of file mythuithemehelper.h.
Referenced by GetThemeSearchPath(), and InitThemeHelper().
|
private |
Definition at line 28 of file mythuithemehelper.h.
Referenced by GetThemeName(), GetThemeSearchPath(), and InitThemeHelper().
|
private |
Definition at line 27 of file mythuithemehelper.h.
Referenced by GetThemeDir(), and InitThemeHelper().
|
private |
Definition at line 29 of file mythuithemehelper.h.
Referenced by FindMenuThemeDir(), FindThemeDir(), GetThemes(), and InitThemeHelper().