MythTV  master
themeselector.h
Go to the documentation of this file.
1 #ifndef THEMESELECTOR_H_
2 #define THEMESELECTOR_H_
3 
4 // qt
5 #include <QStringList>
6 
7 // mythtv
9 
10 // mytharchive
11 #include "archiveutil.h"
12 
13 class MythUIText;
14 class MythUIButton;
15 class MythUIButtonList;
17 class MythUIImage;
18 
20 {
21 
22  Q_OBJECT
23 
24  public:
25  DVDThemeSelector(MythScreenStack *parent, MythScreenType *destinationScreen,
26  const ArchiveDestination& archiveDestination, const QString& name);
27  ~DVDThemeSelector(void) override;
28 
29  bool Create(void) override; // MythScreenType
30  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
31 
32  protected slots:
33  void handleNextPage(void);
34  void handlePrevPage(void);
35  void handleCancel(void);
36 
38 
39  private:
40  void getThemeList(void);
41  static QString loadFile(const QString &filename);
42  void loadConfiguration(void);
43  void saveConfiguration(void);
44 
47 
48  QString m_themeDir;
49 
52  int m_themeNo {0};
53  QStringList m_themeList;
54 
60 
64 };
65 
66 #endif
67 
68 
DVDThemeSelector::m_themeNo
int m_themeNo
Definition: themeselector.h:52
ArchiveDestination
Definition: archiveutil.h:26
DVDThemeSelector::m_themedescText
MythUIText * m_themedescText
Definition: themeselector.h:59
MythUIImage
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:97
DVDThemeSelector::m_nextButton
MythUIButton * m_nextButton
Definition: themeselector.h:61
DVDThemeSelector::handleNextPage
void handleNextPage(void)
Definition: themeselector.cpp:100
DVDThemeSelector::handlePrevPage
void handlePrevPage(void)
Definition: themeselector.cpp:114
DVDThemeSelector::loadFile
static QString loadFile(const QString &filename)
Definition: themeselector.cpp:204
DVDThemeSelector::Create
bool Create(void) override
Definition: themeselector.cpp:42
MythScreenStack
Definition: mythscreenstack.h:16
DVDThemeSelector::m_detailsImage
MythUIImage * m_detailsImage
Definition: themeselector.h:58
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
DVDThemeSelector
Definition: themeselector.h:19
MythUIButtonListItem
Definition: mythuibuttonlist.h:41
DVDThemeSelector::m_themeImage
MythUIImage * m_themeImage
Definition: themeselector.h:51
archiveutil.h
DVDThemeSelector::m_prevButton
MythUIButton * m_prevButton
Definition: themeselector.h:62
DVDThemeSelector::m_themeSelector
MythUIButtonList * m_themeSelector
Definition: themeselector.h:50
MythUIButton
A single button widget.
Definition: mythuibutton.h:21
DVDThemeSelector::~DVDThemeSelector
~DVDThemeSelector(void) override
Definition: themeselector.cpp:37
DVDThemeSelector::loadConfiguration
void loadConfiguration(void)
Definition: themeselector.cpp:237
DVDThemeSelector::m_introImage
MythUIImage * m_introImage
Definition: themeselector.h:55
DVDThemeSelector::m_mainmenuImage
MythUIImage * m_mainmenuImage
Definition: themeselector.h:56
DVDThemeSelector::m_themeDir
QString m_themeDir
Definition: themeselector.h:48
DVDThemeSelector::handleCancel
void handleCancel(void)
Definition: themeselector.cpp:119
DVDThemeSelector::DVDThemeSelector
DVDThemeSelector(MythScreenStack *parent, MythScreenType *destinationScreen, const ArchiveDestination &archiveDestination, const QString &name)
Definition: themeselector.cpp:27
DVDThemeSelector::m_chapterImage
MythUIImage * m_chapterImage
Definition: themeselector.h:57
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
DVDThemeSelector::m_cancelButton
MythUIButton * m_cancelButton
Definition: themeselector.h:63
DVDThemeSelector::m_destinationScreen
MythScreenType * m_destinationScreen
Definition: themeselector.h:45
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:191
DVDThemeSelector::getThemeList
void getThemeList(void)
Definition: themeselector.cpp:125
build_compdb.filename
filename
Definition: build_compdb.py:21
DVDThemeSelector::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: themeselector.cpp:89
DVDThemeSelector::saveConfiguration
void saveConfiguration(void)
Definition: themeselector.cpp:244
DVDThemeSelector::m_archiveDestination
ArchiveDestination m_archiveDestination
Definition: themeselector.h:46
DVDThemeSelector::themeChanged
void themeChanged(MythUIButtonListItem *item)
Definition: themeselector.cpp:152
mythscreentype.h
DVDThemeSelector::m_themeList
QStringList m_themeList
Definition: themeselector.h:53