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() override = 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 
GameDetailsPopup::GameDetailsPopup
GameDetailsPopup(MythScreenStack *parent, const RomInfo *romInfo)
Definition: gamedetails.h:14
MythUIImage
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:97
GameDetailsPopup::~GameDetailsPopup
~GameDetailsPopup() override=default
GameDetailsPopup::m_retObject
QObject * m_retObject
Definition: gamedetails.h:31
GameDetailsPopup::m_country
MythUIText * m_country
Definition: gamedetails.h:40
MythScreenStack
Definition: mythscreenstack.h:16
GameDetailsPopup::handleText
void handleText(const QString &name, const QString &value)
Definition: gamedetails.cpp:13
GameDetailsPopup::Play
void Play(void)
Definition: gamedetails.cpp:76
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:44
GameDetailsPopup::m_boxImage
MythUIImage * m_boxImage
Definition: gamedetails.h:45
GameDetailsPopup::m_crc
MythUIText * m_crc
Definition: gamedetails.h:36
GameDetailsPopup::m_playButton
MythUIButton * m_playButton
Definition: gamedetails.h:47
GameDetailsPopup::m_gameName
MythUIText * m_gameName
Definition: gamedetails.h:33
GameDetailsPopup::m_doneButton
MythUIButton * m_doneButton
Definition: gamedetails.h:48
MythUIButton
A single button widget.
Definition: mythuibutton.h:21
rominfo.h
GameDetailsPopup::m_fanartImage
MythUIImage * m_fanartImage
Definition: gamedetails.h:44
GameDetailsPopup::m_romInfo
const RomInfo * m_romInfo
Definition: gamedetails.h:29
GameDetailsPopup::Create
bool Create(void) override
Definition: gamedetails.cpp:39
GameDetailsPopup::m_genre
MythUIText * m_genre
Definition: gamedetails.h:38
GameDetailsPopup::m_allSystems
MythUIText * m_allSystems
Definition: gamedetails.h:43
GameDetailsPopup
Definition: gamedetails.h:9
RomInfo
Definition: rominfo.h:12
GameDetailsPopup::SetReturnEvent
void SetReturnEvent(QObject *retobject, const QString &resultid)
Definition: gamedetails.cpp:86
GameDetailsPopup::m_year
MythUIText * m_year
Definition: gamedetails.h:39
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:30
GameDetailsPopup::m_id
QString m_id
Definition: gamedetails.h:30
GameDetailsPopup::m_romPath
MythUIText * m_romPath
Definition: gamedetails.h:37
GameDetailsPopup::m_romName
MythUIText * m_romName
Definition: gamedetails.h:35
GameDetailsPopup::m_gameType
MythUIText * m_gameType
Definition: gamedetails.h:34
GameDetailsPopup::handleImage
void handleImage(const QString &name, const QString &filename)
Definition: gamedetails.cpp:23
GameDetailsPopup::m_plot
MythUIText * m_plot
Definition: gamedetails.h:41
build_compdb.filename
filename
Definition: build_compdb.py:21
mythscreentype.h
GameDetailsPopup::m_publisher
MythUIText * m_publisher
Definition: gamedetails.h:42