MythTV  master
gamedetails.h
Go to the documentation of this file.
1 #ifndef GAMEDETAILS_H_
2 #define GAMEDETAILS_H_
3 
4 #include <QString>
5 
6 #include "mythscreentype.h"
7 #include "rominfo.h"
8 
10 {
11  Q_OBJECT
12 
13  public:
14  GameDetailsPopup(MythScreenStack *parent, const RomInfo *romInfo) :
15  MythScreenType (parent, "gamedetailspopup"),
16  m_romInfo(romInfo) {}
17  ~GameDetailsPopup() = default;
18 
19  bool Create(void) override; // MythScreenType
20  void SetReturnEvent(QObject *retobject, const QString &resultid);
21 
22  private slots:
23  void Play(void);
24 
25  private:
26  void handleText(const QString &name, const QString &value);
27  void handleImage(const QString &name, const QString &filename);
28 
29  const RomInfo *m_romInfo {nullptr};
30  QString m_id;
31  QObject *m_retObject {nullptr};
32 
33  MythUIText *m_gameName {nullptr};
34  MythUIText *m_gameType {nullptr};
35  MythUIText *m_romName {nullptr};
36  MythUIText *m_crc {nullptr};
37  MythUIText *m_romPath {nullptr};
38  MythUIText *m_genre {nullptr};
39  MythUIText *m_year {nullptr};
40  MythUIText *m_country {nullptr};
41  MythUIText *m_plot {nullptr};
42  MythUIText *m_publisher {nullptr};
45  MythUIImage *m_boxImage {nullptr};
46 
49 };
50 
51 #endif
52 
MythUIText * m_allSystems
Definition: gamedetails.h:43
MythUIText * m_year
Definition: gamedetails.h:39
unsigned int slots[4]
Definition: element.c:38
bool Create(void) override
Definition: gamedetails.cpp:39
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:97
MythUIImage * m_fanartImage
Definition: gamedetails.h:44
MythUIText * m_plot
Definition: gamedetails.h:41
const RomInfo * m_romInfo
Definition: gamedetails.h:29
void handleImage(const QString &name, const QString &filename)
Definition: gamedetails.cpp:23
MythUIText * m_romPath
Definition: gamedetails.h:37
MythUIText * m_romName
Definition: gamedetails.h:35
MythUIText * m_gameType
Definition: gamedetails.h:34
void SetReturnEvent(QObject *retobject, const QString &resultid)
Definition: gamedetails.cpp:87
MythUIText * m_publisher
Definition: gamedetails.h:42
const char * name
Definition: ParseText.cpp:328
QObject * m_retObject
Definition: gamedetails.h:31
~GameDetailsPopup()=default
GameDetailsPopup(MythScreenStack *parent, const RomInfo *romInfo)
Definition: gamedetails.h:14
A single button widget.
Definition: mythuibutton.h:21
MythUIImage * m_boxImage
Definition: gamedetails.h:45
void handleText(const QString &name, const QString &value)
Definition: gamedetails.cpp:13
void Play(void)
Definition: gamedetails.cpp:76
MythUIText * m_country
Definition: gamedetails.h:40
Screen in which all other widgets are contained and rendered.
MythUIButton * m_doneButton
Definition: gamedetails.h:48
MythUIText * m_crc
Definition: gamedetails.h:36
MythUIText * m_genre
Definition: gamedetails.h:38
MythUIButton * m_playButton
Definition: gamedetails.h:47
MythUIText * m_gameName
Definition: gamedetails.h:33