View and select installed themes. More...
#include <themechooser.h>
Signals | |
| void | themeChanged (void) |
Public Member Functions | |
| ThemeChooser (MythScreenStack *parent, const QString name="ThemeChooser") | |
| Creates a new ThemeChooser Screen. | |
| ~ThemeChooser () | |
| bool | Create (void) |
| void | Load (void) |
| Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning). | |
| void | Init (void) |
| Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load(). | |
| bool | keyPressEvent (QKeyEvent *) |
| Key event handler. | |
| void | customEvent (QEvent *e) |
Protected Slots | |
| void | popupClosed (QString which, int result) |
| void | saveAndReload (void) |
| void | toggleFullscreenPreview (void) |
| void | toggleThemeUpdateNotifications (void) |
| void | refreshDownloadableThemes (void) |
| void | removeTheme (void) |
Private Types | |
| enum | DownloadState { dsIdle = 0, dsDownloadingOnBackend, dsDownloadingOnFrontend, dsExtractingTheme } |
Private Slots | |
| void | itemChanged (MythUIButtonListItem *item) |
| void | saveAndReload (MythUIButtonListItem *item) |
Private Member Functions | |
| ThemeInfo * | loadThemeInfo (QFileInfo &theme) |
| void | showPopupMenu (void) |
| void | updateProgressBar (int bytesReceived, int bytesTotal) |
| void | removeThemeDir (const QString &dirname) |
Private Attributes | |
| MythUIButtonList * | m_themes |
| MythUIImage * | m_preview |
| bool | m_fullPreviewShowing |
| MythUIStateType * | m_fullPreviewStateType |
| MythUIText * | m_fullScreenName |
| MythUIImage * | m_fullScreenPreview |
| QFileInfoList | m_infoList |
| bool | m_refreshDownloadableThemes |
| QString | m_userThemeDir |
| QMap< QString, ThemeInfo * > | m_themeNameInfos |
| QMap< QString, ThemeInfo * > | m_themeFileNameInfos |
| QMap< QString, QString > | m_themeStatuses |
| ThemeInfo * | m_downloadTheme |
| QString | m_downloadFile |
| DownloadState | m_downloadState |
| MythDialogBox * | m_popupMenu |
View and select installed themes.
Definition at line 27 of file themechooser.h.
enum ThemeChooser::DownloadState [private] |
Definition at line 58 of file themechooser.h.
| ThemeChooser::ThemeChooser | ( | MythScreenStack * | parent, | |
| const QString | name = "ThemeChooser" | |||
| ) |
Creates a new ThemeChooser Screen.
| parent | Pointer to the screen stack | |
| name | The name of the window |
Definition at line 72 of file themechooser.cpp.
| ThemeChooser::~ThemeChooser | ( | ) |
Definition at line 90 of file themechooser.cpp.
| bool ThemeChooser::Create | ( | void | ) | [virtual] |
Reimplemented from MythScreenType.
Definition at line 101 of file themechooser.cpp.
Referenced by TVMenuCallback().
| void ThemeChooser::Load | ( | void | ) | [virtual] |
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning).
Reimplemented from MythScreenType.
Definition at line 145 of file themechooser.cpp.
| void ThemeChooser::Init | ( | void | ) | [virtual] |
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load().
Reimplemented from MythScreenType.
Definition at line 334 of file themechooser.cpp.
| bool ThemeChooser::keyPressEvent | ( | QKeyEvent * | ) | [virtual] |
Key event handler.
| event | Keypress event |
Reimplemented from MythScreenType.
Definition at line 496 of file themechooser.cpp.
| void ThemeChooser::customEvent | ( | QEvent * | e | ) | [virtual] |
Reimplemented from MythUIType.
Definition at line 701 of file themechooser.cpp.
| void ThemeChooser::itemChanged | ( | MythUIButtonListItem * | item | ) | [private, slot] |
Definition at line 634 of file themechooser.cpp.
| void ThemeChooser::saveAndReload | ( | MythUIButtonListItem * | item | ) | [private, slot] |
Definition at line 589 of file themechooser.cpp.
| void ThemeChooser::popupClosed | ( | QString | which, | |
| int | result | |||
| ) | [protected, slot] |
Definition at line 488 of file themechooser.cpp.
Referenced by showPopupMenu().
| void ThemeChooser::saveAndReload | ( | void | ) | [protected, slot] |
Definition at line 582 of file themechooser.cpp.
Referenced by Create(), and showPopupMenu().
| void ThemeChooser::toggleFullscreenPreview | ( | void | ) | [protected, slot] |
Definition at line 529 of file themechooser.cpp.
Referenced by keyPressEvent(), and showPopupMenu().
| void ThemeChooser::toggleThemeUpdateNotifications | ( | void | ) | [protected, slot] |
Definition at line 566 of file themechooser.cpp.
Referenced by showPopupMenu().
| void ThemeChooser::refreshDownloadableThemes | ( | void | ) | [protected, slot] |
Definition at line 574 of file themechooser.cpp.
Referenced by showPopupMenu().
| void ThemeChooser::removeTheme | ( | void | ) | [protected, slot] |
Definition at line 816 of file themechooser.cpp.
Referenced by keyPressEvent(), and showPopupMenu().
| void ThemeChooser::themeChanged | ( | void | ) | [signal] |
| ThemeInfo * ThemeChooser::loadThemeInfo | ( | QFileInfo & | theme | ) | [private] |
Definition at line 401 of file themechooser.cpp.
Referenced by Load().
| void ThemeChooser::showPopupMenu | ( | void | ) | [private] |
Definition at line 427 of file themechooser.cpp.
Referenced by keyPressEvent().
| void ThemeChooser::updateProgressBar | ( | int | bytesReceived, | |
| int | bytesTotal | |||
| ) | [private] |
Definition at line 688 of file themechooser.cpp.
Referenced by customEvent().
| void ThemeChooser::removeThemeDir | ( | const QString & | dirname | ) | [private] |
Definition at line 844 of file themechooser.cpp.
Referenced by Load(), and removeTheme().
MythUIButtonList* ThemeChooser::m_themes [private] |
Definition at line 71 of file themechooser.h.
Referenced by Create(), Init(), removeTheme(), saveAndReload(), showPopupMenu(), and toggleFullscreenPreview().
MythUIImage* ThemeChooser::m_preview [private] |
Definition at line 72 of file themechooser.h.
Referenced by Create(), and itemChanged().
bool ThemeChooser::m_fullPreviewShowing [private] |
Definition at line 74 of file themechooser.h.
Referenced by itemChanged(), keyPressEvent(), showPopupMenu(), and toggleFullscreenPreview().
Definition at line 75 of file themechooser.h.
Referenced by Create(), itemChanged(), showPopupMenu(), and toggleFullscreenPreview().
MythUIText* ThemeChooser::m_fullScreenName [private] |
Definition at line 76 of file themechooser.h.
Referenced by Create(), itemChanged(), and toggleFullscreenPreview().
MythUIImage* ThemeChooser::m_fullScreenPreview [private] |
Definition at line 77 of file themechooser.h.
Referenced by Create(), itemChanged(), and toggleFullscreenPreview().
QFileInfoList ThemeChooser::m_infoList [private] |
Definition at line 79 of file themechooser.h.
Definition at line 80 of file themechooser.h.
Referenced by Load(), and refreshDownloadableThemes().
QString ThemeChooser::m_userThemeDir [private] |
Definition at line 81 of file themechooser.h.
Referenced by customEvent(), Load(), removeTheme(), removeThemeDir(), showPopupMenu(), and ThemeChooser().
QMap<QString, ThemeInfo*> ThemeChooser::m_themeNameInfos [private] |
Definition at line 83 of file themechooser.h.
Referenced by Load(), and loadThemeInfo().
QMap<QString, ThemeInfo*> ThemeChooser::m_themeFileNameInfos [private] |
Definition at line 84 of file themechooser.h.
Referenced by Init(), and loadThemeInfo().
QMap<QString, QString> ThemeChooser::m_themeStatuses [private] |
Definition at line 85 of file themechooser.h.
ThemeInfo* ThemeChooser::m_downloadTheme [private] |
Definition at line 86 of file themechooser.h.
Referenced by customEvent(), and saveAndReload().
QString ThemeChooser::m_downloadFile [private] |
Definition at line 87 of file themechooser.h.
Referenced by customEvent(), and saveAndReload().
DownloadState ThemeChooser::m_downloadState [private] |
Definition at line 88 of file themechooser.h.
Referenced by customEvent(), and saveAndReload().
MythDialogBox* ThemeChooser::m_popupMenu [private] |
Definition at line 90 of file themechooser.h.
Referenced by popupClosed(), and showPopupMenu().
1.6.3