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

#include <libmythui/themeinfo.h>

Inheritance diagram for ThemeInfo:
[legend]
Collaboration diagram for ThemeInfo:
[legend]

Public Member Functions

 ThemeInfo (const QString &theme)
 
 ~ThemeInfo ()=default
 
bool IsWide () const
 
QString GetAspect () const
 
QSize GetBaseRes () const
 
QString GetName () const
 
QString GetBaseTheme () const
 
QString GetDescription () const
 
QString GetErrata () const
 
QString GetPreviewPath () const
 
int GetType () const
 
int GetMajorVersion () const
 
int GetMinorVersion () const
 
QString GetDownloadURL () const
 
QString GetThemeWebSite () const
 
QString GetLocalURL () const
 
QString GetDirectoryName () const
 
void ToMap (InfoMap &infoMap) const
 

Private Member Functions

bool parseThemeInfo ()
 

Private Attributes

QString m_themeurl
 
QFileInfo m_theme
 
QString m_baseTheme
 
int m_type {THEME_UNKN}
 
QString m_aspect
 
QSize m_baseres {800,600}
 
QString m_name
 
QString m_previewpath
 
QString m_description
 
QString m_errata
 
int m_majorver {0}
 
int m_minorver {0}
 
QString m_authorName
 
QString m_authorEmail
 
QString m_downloadurl
 
QString m_themesite
 

Additional Inherited Members

- Static Public Member Functions inherited from XMLParseBase
static QString getFirstText (QDomElement &element)
 
static bool parseBool (const QString &text)
 
static bool parseBool (QDomElement &element)
 
static MythPoint parsePoint (const QString &text, bool normalize=true)
 
static MythPoint parsePoint (QDomElement &element, bool normalize=true)
 
static QSize parseSize (const QString &text, bool normalize=true)
 
static QSize parseSize (QDomElement &element, bool normalize=true)
 
static MythRect parseRect (const QString &text, bool normalize=true)
 
static MythRect parseRect (QDomElement &element, bool normalize=true)
 
static int parseAlignment (const QString &text)
 
static int parseAlignment (QDomElement &element)
 
static QBrush parseGradient (const QDomElement &element)
 
static QString parseText (QDomElement &element)
 
static MythUITypeGetGlobalObjectStore (void)
 
static void ClearGlobalObjectStore (void)
 
static void ParseChildren (const QString &filename, QDomElement &element, MythUIType *parent, bool showWarnings)
 
static MythUITypeParseUIType (const QString &filename, QDomElement &element, const QString &type, MythUIType *parent, MythScreenType *screen, bool showWarnings, QMap< QString, QString > &parentDependsMap)
 
static bool WindowExists (const QString &xmlfile, const QString &windowname)
 
static bool LoadWindowFromXML (const QString &xmlfile, const QString &windowname, MythUIType *parent)
 
static bool LoadBaseTheme (void)
 
static bool LoadBaseTheme (const QString &baseTheme)
 
static bool CopyWindowFromBase (const QString &windowname, MythScreenType *win)
 

Detailed Description

Definition at line 20 of file themeinfo.h.

Constructor & Destructor Documentation

◆ ThemeInfo()

ThemeInfo::ThemeInfo ( const QString &  theme)
explicit

Definition at line 17 of file themeinfo.cpp.

◆ ~ThemeInfo()

ThemeInfo::~ThemeInfo ( )
default

Member Function Documentation

◆ IsWide()

bool ThemeInfo::IsWide ( ) const

Definition at line 247 of file themeinfo.cpp.

Referenced by MythUIThemeHelper::InitThemeHelper().

◆ GetAspect()

QString ThemeInfo::GetAspect ( ) const
inline

Definition at line 27 of file themeinfo.h.

Referenced by ThemeChooser::Init().

◆ GetBaseRes()

QSize ThemeInfo::GetBaseRes ( ) const
inline

Definition at line 28 of file themeinfo.h.

Referenced by MythUIThemeHelper::InitThemeHelper().

◆ GetName()

QString ThemeInfo::GetName ( ) const
inline

◆ GetBaseTheme()

QString ThemeInfo::GetBaseTheme ( ) const
inline

Definition at line 30 of file themeinfo.h.

◆ GetDescription()

QString ThemeInfo::GetDescription ( ) const
inline

Definition at line 31 of file themeinfo.h.

◆ GetErrata()

QString ThemeInfo::GetErrata ( ) const
inline

Definition at line 32 of file themeinfo.h.

◆ GetPreviewPath()

QString ThemeInfo::GetPreviewPath ( ) const
inline

Definition at line 33 of file themeinfo.h.

Referenced by ThemeChooser::Init(), and ThemeChooser::LoadVersion().

◆ GetType()

int ThemeInfo::GetType ( ) const
inline

◆ GetMajorVersion()

int ThemeInfo::GetMajorVersion ( ) const
inline

◆ GetMinorVersion()

int ThemeInfo::GetMinorVersion ( ) const
inline

◆ GetDownloadURL()

QString ThemeInfo::GetDownloadURL ( ) const
inline

Definition at line 38 of file themeinfo.h.

Referenced by ThemeChooser::Init().

◆ GetThemeWebSite()

QString ThemeInfo::GetThemeWebSite ( ) const
inline

Definition at line 39 of file themeinfo.h.

◆ GetLocalURL()

QString ThemeInfo::GetLocalURL ( ) const
inline

Definition at line 41 of file themeinfo.h.

◆ GetDirectoryName()

QString ThemeInfo::GetDirectoryName ( ) const

Definition at line 252 of file themeinfo.cpp.

Referenced by ThemeChooser::customEvent(), and ThemeChooser::Init().

◆ ToMap()

void ThemeInfo::ToMap ( InfoMap infoMap) const

Definition at line 261 of file themeinfo.cpp.

Referenced by ThemeChooser::Init().

◆ parseThemeInfo()

bool ThemeInfo::parseThemeInfo ( )
private

Definition at line 51 of file themeinfo.cpp.

Referenced by ThemeInfo().

Member Data Documentation

◆ m_themeurl

QString ThemeInfo::m_themeurl
private

Definition at line 49 of file themeinfo.h.

Referenced by parseThemeInfo(), and ThemeInfo().

◆ m_theme

QFileInfo ThemeInfo::m_theme
private

Definition at line 50 of file themeinfo.h.

Referenced by GetDirectoryName(), parseThemeInfo(), and ThemeInfo().

◆ m_baseTheme

QString ThemeInfo::m_baseTheme
private

Definition at line 51 of file themeinfo.h.

Referenced by parseThemeInfo(), and ToMap().

◆ m_type

int ThemeInfo::m_type {THEME_UNKN}
private

Definition at line 52 of file themeinfo.h.

Referenced by parseThemeInfo().

◆ m_aspect

QString ThemeInfo::m_aspect
private

Definition at line 53 of file themeinfo.h.

Referenced by IsWide(), parseThemeInfo(), and ToMap().

◆ m_baseres

QSize ThemeInfo::m_baseres {800,600}
private

Definition at line 54 of file themeinfo.h.

Referenced by parseThemeInfo(), and ToMap().

◆ m_name

QString ThemeInfo::m_name
private

Definition at line 55 of file themeinfo.h.

Referenced by parseThemeInfo(), and ToMap().

◆ m_previewpath

QString ThemeInfo::m_previewpath
private

Definition at line 56 of file themeinfo.h.

Referenced by parseThemeInfo().

◆ m_description

QString ThemeInfo::m_description
private

Definition at line 57 of file themeinfo.h.

Referenced by parseThemeInfo(), and ToMap().

◆ m_errata

QString ThemeInfo::m_errata
private

Definition at line 58 of file themeinfo.h.

Referenced by parseThemeInfo(), and ToMap().

◆ m_majorver

int ThemeInfo::m_majorver {0}
private

Definition at line 59 of file themeinfo.h.

Referenced by parseThemeInfo(), and ToMap().

◆ m_minorver

int ThemeInfo::m_minorver {0}
private

Definition at line 60 of file themeinfo.h.

Referenced by parseThemeInfo(), and ToMap().

◆ m_authorName

QString ThemeInfo::m_authorName
private

Definition at line 62 of file themeinfo.h.

Referenced by parseThemeInfo(), and ToMap().

◆ m_authorEmail

QString ThemeInfo::m_authorEmail
private

Definition at line 63 of file themeinfo.h.

Referenced by parseThemeInfo(), and ToMap().

◆ m_downloadurl

QString ThemeInfo::m_downloadurl
private

Definition at line 65 of file themeinfo.h.

Referenced by parseThemeInfo().

◆ m_themesite

QString ThemeInfo::m_themesite
private

Definition at line 66 of file themeinfo.h.


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