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
13class MythUIText;
14class MythUIButton;
17class 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
MythUIImage * m_detailsImage
Definition: themeselector.h:58
void handlePrevPage(void)
MythUIButton * m_prevButton
Definition: themeselector.h:62
MythUIText * m_themedescText
Definition: themeselector.h:59
void handleNextPage(void)
void handleCancel(void)
MythUIButtonList * m_themeSelector
Definition: themeselector.h:50
MythUIImage * m_chapterImage
Definition: themeselector.h:57
MythUIButton * m_cancelButton
Definition: themeselector.h:63
DVDThemeSelector(MythScreenStack *parent, MythScreenType *destinationScreen, const ArchiveDestination &archiveDestination, const QString &name)
MythScreenType * m_destinationScreen
Definition: themeselector.h:45
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
bool Create(void) override
void getThemeList(void)
static QString loadFile(const QString &filename)
void themeChanged(MythUIButtonListItem *item)
QStringList m_themeList
Definition: themeselector.h:53
ArchiveDestination m_archiveDestination
Definition: themeselector.h:46
MythUIImage * m_mainmenuImage
Definition: themeselector.h:56
MythUIButton * m_nextButton
Definition: themeselector.h:61
void loadConfiguration(void)
MythUIImage * m_themeImage
Definition: themeselector.h:51
~DVDThemeSelector(void) override
MythUIImage * m_introImage
Definition: themeselector.h:55
void saveConfiguration(void)
Screen in which all other widgets are contained and rendered.
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
A single button widget.
Definition: mythuibutton.h:22
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:98
All purpose text widget, displays a text string.
Definition: mythuitext.h:29