MythTV  master
Public Member Functions | Private Attributes | List of all members
MythUIThemeHelper Class Reference

#include <mythuithemehelper.h>

Inheritance diagram for MythUIThemeHelper:
Inheritance graph
[legend]

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< ThemeInfoGetThemes (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 }
 

Detailed Description

Definition at line 10 of file mythuithemehelper.h.

Member Function Documentation

◆ InitThemeHelper()

void MythUIThemeHelper::InitThemeHelper ( )

Definition at line 14 of file mythuithemehelper.cpp.

Referenced by MythUIHelper::Init(), and reloadTheme().

◆ FindThemeDir()

QString MythUIThemeHelper::FindThemeDir ( const QString &  ThemeName,
bool  Fallback = true 
)

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.

Parameters
ThemeNameThe theme name.
FallbackIf 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.
Returns
Path to theme or empty string.

Definition at line 48 of file mythuithemehelper.cpp.

Referenced by GetThemeSearchPath(), InitThemeHelper(), main(), reloadTheme(), and resetTheme().

◆ FindMenuThemeDir()

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.

Parameters
MenuNameThe menutheme name.
Returns
Path to theme or empty string.

Definition at line 106 of file mythuithemehelper.cpp.

Referenced by InitThemeHelper().

◆ FindThemeFile()

bool MythUIThemeHelper::FindThemeFile ( QString &  Path)

Definition at line 236 of file mythuithemehelper.cpp.

Referenced by MythWebPage::extension().

◆ GetThemeDir()

QString MythUIThemeHelper::GetThemeDir ( )

◆ GetThemeName()

QString MythUIThemeHelper::GetThemeName ( )

Definition at line 146 of file mythuithemehelper.cpp.

Referenced by NetworkControl::processTheme().

◆ GetThemeSearchPath()

QStringList MythUIThemeHelper::GetThemeSearchPath ( )

◆ GetMenuThemeDir()

QString MythUIThemeHelper::GetMenuThemeDir ( )

Definition at line 136 of file mythuithemehelper.cpp.

Referenced by MythThemedMenu::findMenuFile().

◆ GetBaseSize()

QSize MythUIThemeHelper::GetBaseSize ( ) const

◆ GetThemes()

QList< ThemeInfo > MythUIThemeHelper::GetThemes ( ThemeType  Type)

Definition at line 209 of file mythuithemehelper.cpp.

Referenced by GetThemeSearchPath(), and MenuTheme().

Member Data Documentation

◆ m_searchPaths

QStringList MythUIThemeHelper::m_searchPaths
private

Definition at line 25 of file mythuithemehelper.h.

Referenced by GetThemeSearchPath(), and InitThemeHelper().

◆ m_menuthemepathname

QString MythUIThemeHelper::m_menuthemepathname
private

Definition at line 26 of file mythuithemehelper.h.

Referenced by GetMenuThemeDir(), and InitThemeHelper().

◆ m_themepathname

QString MythUIThemeHelper::m_themepathname
private

Definition at line 27 of file mythuithemehelper.h.

Referenced by GetThemeDir(), and InitThemeHelper().

◆ m_themename

QString MythUIThemeHelper::m_themename
private

Definition at line 28 of file mythuithemehelper.h.

Referenced by GetThemeName(), GetThemeSearchPath(), and InitThemeHelper().

◆ m_userThemeDir

QString MythUIThemeHelper::m_userThemeDir
private

Definition at line 29 of file mythuithemehelper.h.

Referenced by FindMenuThemeDir(), FindThemeDir(), GetThemes(), and InitThemeHelper().

◆ m_baseSize

QSize MythUIThemeHelper::m_baseSize { 800, 600 }
private

Definition at line 30 of file mythuithemehelper.h.

Referenced by GetBaseSize(), and InitThemeHelper().

◆ m_isWide

bool MythUIThemeHelper::m_isWide { false }
private

Definition at line 31 of file mythuithemehelper.h.

Referenced by GetThemeSearchPath(), and InitThemeHelper().


The documentation for this class was generated from the following files: