XMLParse Class Reference

#include <xmlparse.h>

List of all members.

Public Member Functions

 XMLParse ()
 ~XMLParse ()

Protected Member Functions

fontPropGetFont (const QString &, bool checkGlobal=true)
LayerSetGetSet (const QString &text)
void SetWMult (double wm)
void SetHMult (double hm)
bool LoadTheme (QDomElement &, QString, QString sf="")

Private Member Functions

bool doLoadTheme (QDomElement &, QString, QString)
QString getFirstText (QDomElement &)
void parseFont (QDomElement &)
void normalizeRect (QRect &)
QPoint parsePoint (QString)
QRect parseRect (QString)
void parseContainer (QDomElement &, QString &, int &, QRect &)
void parseKeyboard (LayerSet *, QDomElement &)
void parseKey (LayerSet *, QDomElement &)

Private Attributes

QMap< QString, fontPropfontMap
QMap< QString, LayerSet * > layerMap
vector< LayerSet * > * allTypes
double wmult
double hmult
QString fontSizeType
MythUIHelperui

Friends

class MythThemedDialog
class MythDialog

Detailed Description

Definition at line 12 of file xmlparse.h.


Constructor & Destructor Documentation

XMLParse::XMLParse ( void   ) 

Definition at line 28 of file xmlparse.cpp.

XMLParse::~XMLParse (  ) 

Definition at line 34 of file xmlparse.cpp.


Member Function Documentation

fontProp * XMLParse::GetFont ( const QString &  text,
bool  checkGlobal = true 
) [protected]

Definition at line 376 of file xmlparse.cpp.

Referenced by MythThemedDialog::getFont(), parseFont(), parseKey(), and parseKeyboard().

LayerSet * XMLParse::GetSet ( const QString &  text  )  [protected]
void XMLParse::SetWMult ( double  wm  )  [inline, protected]

Definition at line 21 of file xmlparse.h.

Referenced by MythThemedDialog::loadThemedWindow().

void XMLParse::SetHMult ( double  hm  )  [inline, protected]

Definition at line 22 of file xmlparse.h.

Referenced by MythThemedDialog::loadThemedWindow().

bool XMLParse::LoadTheme ( QDomElement &  ele,
QString  winName,
QString  sf = "" 
) [protected]

Definition at line 46 of file xmlparse.cpp.

Referenced by MythThemedDialog::loadThemedWindow().

bool XMLParse::doLoadTheme ( QDomElement &  ele,
QString  winName,
QString  themeFile 
) [private]

Definition at line 66 of file xmlparse.cpp.

Referenced by LoadTheme().

QString XMLParse::getFirstText ( QDomElement &  element  )  [private]

Definition at line 131 of file xmlparse.cpp.

Referenced by parseContainer(), parseFont(), parseKey(), and parseKeyboard().

void XMLParse::parseFont ( QDomElement &  element  )  [private]

Definition at line 143 of file xmlparse.cpp.

Referenced by MythThemedDialog::loadWindow(), and MythThemedDialog::parseFont().

void XMLParse::normalizeRect ( QRect &  rect  )  [private]

Definition at line 388 of file xmlparse.cpp.

Referenced by parseContainer(), and parseKeyboard().

QPoint XMLParse::parsePoint ( QString  text  )  [private]

Definition at line 397 of file xmlparse.cpp.

Referenced by parseFont(), and parseKey().

QRect XMLParse::parseRect ( QString  text  )  [private]

Definition at line 411 of file xmlparse.cpp.

Referenced by parseContainer(), and parseKeyboard().

void XMLParse::parseContainer ( QDomElement &  element,
QString &  newname,
int &  context,
QRect &  area 
) [private]

Definition at line 428 of file xmlparse.cpp.

Referenced by MythThemedDialog::parseContainer().

void XMLParse::parseKeyboard ( LayerSet container,
QDomElement &  element 
) [private]

Definition at line 693 of file xmlparse.cpp.

Referenced by parseContainer().

void XMLParse::parseKey ( LayerSet container,
QDomElement &  element 
) [private]

Definition at line 512 of file xmlparse.cpp.

Referenced by parseKeyboard().


Friends And Related Function Documentation

friend class MythThemedDialog [friend]

Definition at line 48 of file xmlparse.h.

friend class MythDialog [friend]

Definition at line 49 of file xmlparse.h.


Member Data Documentation

QMap<QString, fontProp> XMLParse::fontMap [private]

Definition at line 28 of file xmlparse.h.

Referenced by GetFont(), and parseFont().

QMap<QString, LayerSet*> XMLParse::layerMap [private]

Definition at line 29 of file xmlparse.h.

Referenced by GetSet(), and parseContainer().

vector<LayerSet *>* XMLParse::allTypes [private]

Definition at line 30 of file xmlparse.h.

Referenced by parseContainer(), XMLParse(), and ~XMLParse().

double XMLParse::wmult [private]

Definition at line 41 of file xmlparse.h.

Referenced by normalizeRect(), parseFont(), parseKey(), parseKeyboard(), and SetWMult().

double XMLParse::hmult [private]

Definition at line 42 of file xmlparse.h.

Referenced by normalizeRect(), parseFont(), parseKey(), parseKeyboard(), and SetHMult().

QString XMLParse::fontSizeType [private]

Definition at line 44 of file xmlparse.h.

Referenced by LoadTheme(), and parseFont().

Definition at line 46 of file xmlparse.h.

Referenced by LoadTheme(), parseKey(), parseKeyboard(), and XMLParse().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:33 2012 for MythTV by  doxygen 1.6.3