
Definition at line 172 of file myththemedmenu.cpp.
Public Member Functions | |
| MythThemedMenuPrivate (MythThemedMenu *lparent, const char *cdir, MythThemedMenuState *lstate) | |
| Constructor, Init() must be called before class can be used. | |
| ~MythThemedMenuPrivate () | |
| bool | keyPressHandler (QKeyEvent *e) |
| Delegate key event to appropriate action for keyHandler(). | |
| bool | keyHandler (QStringList &actions, bool fullexit) |
| Interpret key presses on the menu into the appropriate actions. | |
| bool | ReloadTheme (void) |
| Reset and reparse everything. | |
| bool | parseMenu (const QString &menuname) |
| Parse the themebuttons to be added based on the name of the menu file provided. | |
| void | parseThemeButton (QDomElement &element) |
| Parses the element's tags and set the ThemeButton's type, text, depends, and action, then adds the button. | |
| void | addButton (const QString &type, const QString &text, const QString &alttext, const QStringList &action) |
| Create a new MythThemedButton based on the MythThemedMenuState m_state and the type, text, alt-text and action provided in the parameters. | |
| bool | layoutButtons (void) |
| Properly lay out all of the buttons that were added with addButton. | |
| void | positionButtons (bool resetpos) |
| Place buttons in position and set them visible and active. | |
| bool | makeRowVisible (int newrow, int oldrow) |
| bool | handleAction (const QString &action) |
| Handle a MythTV action for the Menus. | |
| bool | findDepends (const QString &fileList) |
| QString | findMenuFile (const QString &menuname) |
| Locates the appropriate menu file from which to parse the menu. | |
| void | checkScrollArrows (void) |
| Add or remove scroll arrows as needed. | |
| bool | checkPinCode (const QString ×tamp_setting, const QString &password_setting, const QString &text) |
| Queries the user for a password to enter a part of MythTV restricted by a password. | |
| void | SetupBackground () |
| Sets up menu background, must be done before the buttons are parsed. | |
| void | SetupUITypes () |
| Sets up UI according to the corresponding mythThemedMenuState. | |
| bool | gestureEvent (MythUIType *origtype, MythGestureEvent *ge) |
| Interprets mouse gestures as MythTV action events. | |
| void | updateLCD (void) |
Public Attributes | |
| MythThemedMenu * | parent |
| MythThemedMenuState * | m_state |
| bool | allocedstate |
| vector< ThemedButton * > | buttonList |
| ThemedButton * | activebutton |
| int | currentrow |
| int | currentcolumn |
| vector< MenuRow > | buttonRows |
| QString | selection |
| bool | foundtheme |
| int | exitModifier |
| bool | ignorekeys |
| int | maxrows |
| int | visiblerows |
| int | columns |
| bool | wantpop |
| QString | titleText |
| QString | menumode |
| MythUIStateType * | watermark |
| MythUIImage * | uparrow |
| MythUIImage * | downarrow |
| MythThemedMenuPrivate::MythThemedMenuPrivate | ( | MythThemedMenu * | lparent, | |
| const char * | cdir, | |||
| MythThemedMenuState * | lstate | |||
| ) |
Constructor, Init() must be called before class can be used.
| lparent | menu that owns this instance | |
| cdir | directory where theme is stored | |
| lstate | corresponding settings of the theme |
Definition at line 1281 of file myththemedmenu.cpp.
| MythThemedMenuPrivate::~MythThemedMenuPrivate | ( | ) |
Definition at line 1304 of file myththemedmenu.cpp.
| bool MythThemedMenuPrivate::keyPressHandler | ( | QKeyEvent * | e | ) |
Delegate key event to appropriate action for keyHandler().
Definition at line 1974 of file myththemedmenu.cpp.
Referenced by MythThemedMenu::keyPressEvent().
Interpret key presses on the menu into the appropriate actions.
| actions | list of MythTV actions to be handled. |
Definition at line 1986 of file myththemedmenu.cpp.
Referenced by gestureEvent(), and keyPressHandler().
| bool MythThemedMenuPrivate::ReloadTheme | ( | void | ) |
Reset and reparse everything.
Note: this does not use the theme or menu file chosen in Init(), but instead uses defaults which should work if MythTV was properly installed.
Definition at line 1948 of file myththemedmenu.cpp.
Referenced by MythThemedMenu::ReloadTheme().
| bool MythThemedMenuPrivate::parseMenu | ( | const QString & | menuname | ) |
Parse the themebuttons to be added based on the name of the menu file provided.
If the menu to be parsed is the main menu and this fails to find the XML file this will simply return false. Otherwise if it fails to find the menu it will pop up an error dialog and then return false.
The idea behind this is that if we can't parse the main menu we have to exit from the fronend entirely. But in all other cases we can simply return to the main menu and hope that it is a non-essential portion of MythTV which the theme does not support.
Definition at line 1423 of file myththemedmenu.cpp.
Referenced by MythThemedMenu::Init(), and ReloadTheme().
| void MythThemedMenuPrivate::parseThemeButton | ( | QDomElement & | element | ) |
Parses the element's tags and set the ThemeButton's type, text, depends, and action, then adds the button.
| element | DOM element describing features of the themeButton |
Definition at line 1315 of file myththemedmenu.cpp.
Referenced by parseMenu().
| void MythThemedMenuPrivate::addButton | ( | const QString & | type, | |
| const QString & | text, | |||
| const QString & | alttext, | |||
| const QStringList & | action | |||
| ) |
Create a new MythThemedButton based on the MythThemedMenuState m_state and the type, text, alt-text and action provided in the parameters.
| type | type of button to be created | |
| text | text to appear on the button | |
| alttext | alternate text to appear when required | |
| action | actions to be associated with button |
Definition at line 1638 of file myththemedmenu.cpp.
Referenced by parseThemeButton().
| bool MythThemedMenuPrivate::layoutButtons | ( | void | ) |
Properly lay out all of the buttons that were added with addButton.
Definition at line 1729 of file myththemedmenu.cpp.
Referenced by parseMenu().
| void MythThemedMenuPrivate::positionButtons | ( | bool | resetpos | ) |
Place buttons in position and set them visible and active.
| resetpos | whether or not to reset the active button to the first one on the buttonlist. |
Definition at line 1815 of file myththemedmenu.cpp.
Referenced by makeRowVisible(), and parseMenu().
| bool MythThemedMenuPrivate::makeRowVisible | ( | int | newrow, | |
| int | oldrow | |||
| ) |
| bool MythThemedMenuPrivate::handleAction | ( | const QString & | action | ) |
Handle a MythTV action for the Menus.
| action | single action to be handled |
Definition at line 2240 of file myththemedmenu.cpp.
Referenced by gestureEvent(), and keyHandler().
| bool MythThemedMenuPrivate::findDepends | ( | const QString & | fileList | ) |
| QString MythThemedMenuPrivate::findMenuFile | ( | const QString & | menuname | ) |
Locates the appropriate menu file from which to parse the menu.
| menuname | file name of the menu you want to find |
Definition at line 2204 of file myththemedmenu.cpp.
Referenced by findDepends(), and parseMenu().
| void MythThemedMenuPrivate::checkScrollArrows | ( | void | ) |
Add or remove scroll arrows as needed.
Definition at line 1929 of file myththemedmenu.cpp.
Referenced by makeRowVisible(), and SetupUITypes().
| bool MythThemedMenuPrivate::checkPinCode | ( | const QString & | timestamp_setting, | |
| const QString & | password_setting, | |||
| const QString & | text | |||
| ) |
Queries the user for a password to enter a part of MythTV restricted by a password.
| timestamp_setting | time settings to be checked | |
| password_setting | password to be checked | |
| text | the message text to be displayed |
Definition at line 2379 of file myththemedmenu.cpp.
Referenced by handleAction().
| void MythThemedMenuPrivate::SetupBackground | ( | void | ) |
Sets up menu background, must be done before the buttons are parsed.
Definition at line 1536 of file myththemedmenu.cpp.
Referenced by parseMenu().
| void MythThemedMenuPrivate::SetupUITypes | ( | void | ) |
Sets up UI according to the corresponding mythThemedMenuState.
Definition at line 1550 of file myththemedmenu.cpp.
Referenced by parseMenu().
| bool MythThemedMenuPrivate::gestureEvent | ( | MythUIType * | origtype, | |
| MythGestureEvent * | ge | |||
| ) |
Interprets mouse gestures as MythTV action events.
| origtype | originating element type for the gesture | |
| ge | mouse gesture event |
Definition at line 2143 of file myththemedmenu.cpp.
Referenced by MythThemedMenu::gestureEvent().
| void MythThemedMenuPrivate::updateLCD | ( | void | ) |
Definition at line 1602 of file myththemedmenu.cpp.
Referenced by MythThemedMenu::aboutToShow(), and keyHandler().
Definition at line 211 of file myththemedmenu.cpp.
Referenced by addButton(), handleAction(), keyHandler(), MythThemedMenuPrivate(), parseMenu(), ReloadTheme(), SetupBackground(), and SetupUITypes().
Definition at line 213 of file myththemedmenu.cpp.
Referenced by addButton(), handleAction(), MythThemedMenu::Init(), keyHandler(), layoutButtons(), MythThemedMenu::MythThemedMenu(), MythThemedMenuPrivate(), positionButtons(), ReloadTheme(), MythThemedMenu::setCallback(), MythThemedMenu::setKillable(), SetupBackground(), SetupUITypes(), and ~MythThemedMenuPrivate().
Definition at line 214 of file myththemedmenu.cpp.
Referenced by handleAction(), keyHandler(), MythThemedMenuPrivate(), and ~MythThemedMenuPrivate().
Definition at line 216 of file myththemedmenu.cpp.
Referenced by addButton(), layoutButtons(), parseMenu(), positionButtons(), and ReloadTheme().
Definition at line 217 of file myththemedmenu.cpp.
Referenced by gestureEvent(), keyHandler(), parseMenu(), positionButtons(), and SetupUITypes().
Definition at line 218 of file myththemedmenu.cpp.
Referenced by keyHandler(), positionButtons(), and updateLCD().
Definition at line 219 of file myththemedmenu.cpp.
Referenced by keyHandler(), positionButtons(), and updateLCD().
Definition at line 221 of file myththemedmenu.cpp.
Referenced by checkScrollArrows(), keyHandler(), layoutButtons(), makeRowVisible(), parseMenu(), positionButtons(), ReloadTheme(), and updateLCD().
| QString MythThemedMenuPrivate::selection |
Definition at line 223 of file myththemedmenu.cpp.
Referenced by MythThemedMenu::getSelection(), handleAction(), and parseMenu().
Definition at line 224 of file myththemedmenu.cpp.
Referenced by MythThemedMenu::foundTheme(), MythThemedMenu::Init(), and MythThemedMenu::ReloadTheme().
Definition at line 226 of file myththemedmenu.cpp.
Referenced by keyHandler(), keyPressHandler(), MythThemedMenuPrivate(), and MythThemedMenu::ReloadExitKey().
Definition at line 228 of file myththemedmenu.cpp.
Referenced by MythThemedMenu::keyPressEvent(), and MythThemedMenuPrivate().
Definition at line 231 of file myththemedmenu.cpp.
Referenced by layoutButtons(), makeRowVisible(), and positionButtons().
Definition at line 234 of file myththemedmenu.cpp.
Referenced by MythThemedMenu::gestureEvent(), handleAction(), keyHandler(), MythThemedMenu::keyPressEvent(), and MythThemedMenuPrivate().
| QString MythThemedMenuPrivate::titleText |
| QString MythThemedMenuPrivate::menumode |
Definition at line 239 of file myththemedmenu.cpp.
Referenced by gestureEvent(), keyHandler(), and SetupUITypes().
Definition at line 240 of file myththemedmenu.cpp.
Referenced by checkScrollArrows(), gestureEvent(), and SetupUITypes().
Definition at line 241 of file myththemedmenu.cpp.
Referenced by checkScrollArrows(), gestureEvent(), and SetupUITypes().
1.5.5