
Definition at line 96 of file myththemedmenu.cpp.
Public Member Functions | |
| MythThemedMenuState () | |
| ~MythThemedMenuState () | |
| bool | parseSettings (const QString &dir, const QString &menuname) |
| Parse the menu from the given dir for background, button, logo, arrow, and font settings. | |
| void | parseBackground (const QString &dir, QDomElement &element) |
| Parse through the element's tags and set the button's area, spread, center, rows, columns and visible lower limit. | |
| void | parseLogo (const QString &dir, QDomElement &element) |
| Parse through the element's tags and set the logo's image and position. | |
| void | parseArrow (const QString &dir, QDomElement &element, bool up) |
| Parse through the element's tags to set the arrows image and position. | |
| void | parseTitle (const QString &dir, QDomElement &element) |
| Parse through the element's tags and set the title's image (and subsequent mode) and position. | |
| void | parseButtonDefinition (const QString &dir, QDomElement &element) |
| void | parseButton (const QString &dir, QDomElement &element) |
| Parse through the element's tags and set the button's definition as normal, active, text, or activetext. | |
| void | parseText (TextAttributes &attributes, QDomElement &element) |
| Parse through the element's tags and set the text's area, fontsize, fontname, positioning, and decorations. | |
| void | parseOutline (TextAttributes &attributes, QDomElement &element) |
| Parse through the element's tags and set the outline's color and size. | |
| void | parseShadow (TextAttributes &attributes, QDomElement &element) |
| Parse through the element's tags and set the shadow's color, offset, and alpha. | |
| void | Reset (void) |
| void | setDefaults (void) |
| Set buttons, logo, title icons and text, arrows and watermarks back to the defaults. | |
| ButtonIcon * | getButtonIcon (const QString &type) |
Public Attributes | |
| QRect | buttonArea |
| QRect | logoRect |
| MythImage * | logo |
| MythImage * | buttonnormal |
| MythImage * | buttonactive |
| QMap< QString, ButtonIcon > | allButtonIcons |
| TextAttributes | normalAttributes |
| TextAttributes | activeAttributes |
| void(* | callback )(void *, QString &) |
| void * | callbackdata |
| bool | killable |
| bool | balancerows |
| bool | spreadbuttons |
| bool | buttoncenter |
| QMap< QString, MythImage * > | titleIcons |
| QMap< QString, MythImage * > | m_loadedImages |
| QString | titleText |
| QPoint | titlePos |
| MythImage * | buttonBackground |
| MythImage * | uparrow |
| QRect | uparrowRect |
| MythImage * | downarrow |
| QRect | downarrowRect |
| QPoint | watermarkPos |
| QRect | watermarkRect |
| bool | allowreorder |
| int | maxColumns |
| int | visiblerowlimit |
| bool | loaded |
| QString | themeDir |
Static Public Attributes | |
| static bool | parseFonts = true |
| MythThemedMenuState::MythThemedMenuState | ( | ) |
Definition at line 246 of file myththemedmenu.cpp.
| MythThemedMenuState::~MythThemedMenuState | ( | ) |
Definition at line 265 of file myththemedmenu.cpp.
| bool MythThemedMenuState::parseSettings | ( | const QString & | dir, | |
| const QString & | menuname | |||
| ) |
Parse the menu from the given dir for background, button, logo, arrow, and font settings.
| dir | directory where setting may be found | |
| menuname | file name of menu file from which settings are parsed |
Definition at line 1165 of file myththemedmenu.cpp.
Referenced by MythThemedMenu::Init(), and MythThemedMenuPrivate::ReloadTheme().
| void MythThemedMenuState::parseBackground | ( | const QString & | dir, | |
| QDomElement & | element | |||
| ) |
Parse through the element's tags and set the button's area, spread, center, rows, columns and visible lower limit.
| dir | the directory path of background | |
| element | QDomElement with information about the background |
Definition at line 330 of file myththemedmenu.cpp.
Referenced by parseSettings().
| void MythThemedMenuState::parseLogo | ( | const QString & | dir, | |
| QDomElement & | element | |||
| ) |
Parse through the element's tags and set the logo's image and position.
| dir | directory where logo images may be found | |
| element | DOM element whose nodes describe the logo |
Definition at line 800 of file myththemedmenu.cpp.
Referenced by parseSettings().
| void MythThemedMenuState::parseArrow | ( | const QString & | dir, | |
| QDomElement & | element, | |||
| bool | up | |||
| ) |
Parse through the element's tags to set the arrows image and position.
| dir | directory where arrow images may be found | |
| element | DOM element dealing with arrow image and position |
Definition at line 939 of file myththemedmenu.cpp.
Referenced by parseSettings().
| void MythThemedMenuState::parseTitle | ( | const QString & | dir, | |
| QDomElement & | element | |||
| ) |
Parse through the element's tags and set the title's image (and subsequent mode) and position.
| dir | directory where title images may be found | |
| element | DOM element dealing with the title |
Definition at line 858 of file myththemedmenu.cpp.
Referenced by parseSettings().
| void MythThemedMenuState::parseButtonDefinition | ( | const QString & | dir, | |
| QDomElement & | element | |||
| ) |
| void MythThemedMenuState::parseButton | ( | const QString & | dir, | |
| QDomElement & | element | |||
| ) |
Parse through the element's tags and set the button's definition as normal, active, text, or activetext.
| dir | directory where the button images may be found | |
| element | DOM element whose nodes define Buttons |
Definition at line 1008 of file myththemedmenu.cpp.
Referenced by parseSettings().
| void MythThemedMenuState::parseText | ( | TextAttributes & | attributes, | |
| QDomElement & | element | |||
| ) |
Parse through the element's tags and set the text's area, fontsize, fontname, positioning, and decorations.
| attributes | text attributes whose font face will be set | |
| element | DOM element dealing with text |
Definition at line 533 of file myththemedmenu.cpp.
Referenced by parseButtonDefinition().
| void MythThemedMenuState::parseOutline | ( | TextAttributes & | attributes, | |
| QDomElement & | element | |||
| ) |
Parse through the element's tags and set the outline's color and size.
| attributes | text attributes whose font outline will be set | |
| element | DOM element dealing with outline |
Definition at line 476 of file myththemedmenu.cpp.
Referenced by parseText().
| void MythThemedMenuState::parseShadow | ( | TextAttributes & | attributes, | |
| QDomElement & | element | |||
| ) |
Parse through the element's tags and set the shadow's color, offset, and alpha.
| attributes | text attributes whose font shadow will be set | |
| element | DOM dealing with shadow |
Definition at line 407 of file myththemedmenu.cpp.
Referenced by parseText().
| void MythThemedMenuState::Reset | ( | void | ) |
Definition at line 270 of file myththemedmenu.cpp.
Referenced by MythThemedMenuPrivate::ReloadTheme(), and ~MythThemedMenuState().
| void MythThemedMenuState::setDefaults | ( | void | ) |
Set buttons, logo, title icons and text, arrows and watermarks back to the defaults.
Definition at line 1142 of file myththemedmenu.cpp.
Referenced by parseSettings(), and Reset().
| ButtonIcon * MythThemedMenuState::getButtonIcon | ( | const QString & | type | ) |
Definition at line 318 of file myththemedmenu.cpp.
Referenced by MythThemedMenuPrivate::addButton().
Definition at line 120 of file myththemedmenu.cpp.
Referenced by MythThemedMenuPrivate::layoutButtons(), parseBackground(), MythThemedMenuPrivate::positionButtons(), and MythThemedMenuPrivate::SetupBackground().
Definition at line 122 of file myththemedmenu.cpp.
Referenced by parseLogo(), and MythThemedMenuPrivate::SetupUITypes().
Definition at line 123 of file myththemedmenu.cpp.
Referenced by MythThemedMenuState(), parseLogo(), Reset(), setDefaults(), and MythThemedMenuPrivate::SetupUITypes().
Definition at line 125 of file myththemedmenu.cpp.
Referenced by MythThemedMenuPrivate::addButton(), MythThemedMenuPrivate::layoutButtons(), MythThemedMenuState(), parseButtonDefinition(), parseText(), MythThemedMenuPrivate::positionButtons(), Reset(), and setDefaults().
Definition at line 126 of file myththemedmenu.cpp.
Referenced by MythThemedMenuPrivate::addButton(), MythThemedMenuState(), parseButtonDefinition(), Reset(), and setDefaults().
| QMap<QString, ButtonIcon> MythThemedMenuState::allButtonIcons |
Definition at line 128 of file myththemedmenu.cpp.
Referenced by getButtonIcon(), parseButton(), Reset(), and MythThemedMenuPrivate::SetupUITypes().
Definition at line 130 of file myththemedmenu.cpp.
Referenced by MythThemedMenuPrivate::addButton(), parseButtonDefinition(), Reset(), and setDefaults().
Definition at line 131 of file myththemedmenu.cpp.
Referenced by MythThemedMenuPrivate::addButton(), parseButtonDefinition(), Reset(), and setDefaults().
| void(* MythThemedMenuState::callback)(void *, QString &) |
Definition at line 134 of file myththemedmenu.cpp.
Referenced by MythThemedMenuPrivate::handleAction(), MythThemedMenuPrivate::keyHandler(), and MythThemedMenu::setCallback().
Definition at line 136 of file myththemedmenu.cpp.
Referenced by MythThemedMenuPrivate::keyHandler(), MythThemedMenuState(), and MythThemedMenu::setKillable().
Definition at line 138 of file myththemedmenu.cpp.
Referenced by MythThemedMenuPrivate::layoutButtons(), MythThemedMenuState(), parseBackground(), and setDefaults().
Definition at line 139 of file myththemedmenu.cpp.
Referenced by parseBackground(), and MythThemedMenuPrivate::positionButtons().
Definition at line 140 of file myththemedmenu.cpp.
Referenced by parseBackground(), and MythThemedMenuPrivate::positionButtons().
| QMap<QString, MythImage *> MythThemedMenuState::titleIcons |
Definition at line 142 of file myththemedmenu.cpp.
Referenced by parseTitle(), Reset(), setDefaults(), and MythThemedMenuPrivate::SetupUITypes().
| QMap<QString, MythImage *> MythThemedMenuState::m_loadedImages |
Definition at line 143 of file myththemedmenu.cpp.
Referenced by parseButton(), parseTitle(), and Reset().
| QString MythThemedMenuState::titleText |
Definition at line 145 of file myththemedmenu.cpp.
Referenced by parseTitle(), and MythThemedMenuPrivate::SetupUITypes().
Definition at line 147 of file myththemedmenu.cpp.
Referenced by MythThemedMenuState(), parseBackground(), Reset(), and MythThemedMenuPrivate::SetupBackground().
Definition at line 149 of file myththemedmenu.cpp.
Referenced by MythThemedMenuState(), parseArrow(), Reset(), setDefaults(), and MythThemedMenuPrivate::SetupUITypes().
Definition at line 150 of file myththemedmenu.cpp.
Referenced by parseArrow(), and MythThemedMenuPrivate::SetupUITypes().
Definition at line 151 of file myththemedmenu.cpp.
Referenced by MythThemedMenuState(), parseArrow(), Reset(), setDefaults(), and MythThemedMenuPrivate::SetupUITypes().
Definition at line 152 of file myththemedmenu.cpp.
Referenced by parseArrow(), and MythThemedMenuPrivate::SetupUITypes().
Definition at line 154 of file myththemedmenu.cpp.
Referenced by parseButtonDefinition(), and setDefaults().
Definition at line 155 of file myththemedmenu.cpp.
Referenced by parseButton(), parseButtonDefinition(), setDefaults(), and MythThemedMenuPrivate::SetupUITypes().
Definition at line 157 of file myththemedmenu.cpp.
Referenced by MythThemedMenuPrivate::handleAction(), MythThemedMenuPrivate::layoutButtons(), MythThemedMenu::MythThemedMenu(), and MythThemedMenuState().
Definition at line 158 of file myththemedmenu.cpp.
Referenced by MythThemedMenuPrivate::layoutButtons(), parseBackground(), and MythThemedMenuPrivate::positionButtons().
Definition at line 160 of file myththemedmenu.cpp.
Referenced by MythThemedMenuPrivate::keyHandler(), MythThemedMenuPrivate::layoutButtons(), and parseBackground().
Definition at line 162 of file myththemedmenu.cpp.
Referenced by MythThemedMenu::Init(), MythThemedMenuState(), parseSettings(), and Reset().
| QString MythThemedMenuState::themeDir |
Definition at line 164 of file myththemedmenu.cpp.
Referenced by MythThemedMenuPrivate::handleAction(), and MythThemedMenuPrivate::MythThemedMenuPrivate().
bool MythThemedMenuState::parseFonts = true [static] |
Definition at line 167 of file myththemedmenu.cpp.
Referenced by parseSettings(), and MythThemedMenuPrivate::ReloadTheme().
1.5.5