MythTV  master
romedit.h
Go to the documentation of this file.
1 #ifndef ROMEDITDLG_H_
2 #define ROMEDITDLG_H_
3 
4 #include <mythscreentype.h>
5 
6 class RomInfo;
7 
9 {
10  Q_OBJECT
11 
12  public:
14  const QString& name,
15  RomInfo *romInfo);
16 
18 
19  bool Create() override; // MythScreenType
20  void customEvent(QEvent *levent) override; // MythUIType
21  void SetReturnEvent(QObject *retobject, const QString &resultid);
22 
23  public slots:
24  void SetGamename();
25  void SetGenre();
26  void SetYear();
27  void SetCountry();
28  void SetPlot();
29  void SetPublisher();
30  void ToggleFavorite();
31  void FindScreenshot();
32  void FindFanart();
33  void FindBoxart();
34  void SaveAndExit();
35 
36  private:
37  void fillWidgets();
38  void SetScreenshot(const QString& file);
39  void SetFanart(const QString& file);
40  void SetBoxart(const QString& file);
41 
42  private:
44  QString m_id;
45  QObject *m_retObject {nullptr};
46 
61 };
62 
63 #endif // ROMEDITDLG_H_
void SetPublisher()
Definition: romedit.cpp:201
unsigned int slots[4]
Definition: element.c:38
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
void customEvent(QEvent *levent) override
Definition: romedit.cpp:122
MythUIText * m_boxartText
Definition: romedit.h:59
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
MythUIText * m_fanartText
Definition: romedit.h:57
void fillWidgets()
Definition: romedit.cpp:138
MythUITextEdit * m_genreEdit
Definition: romedit.h:48
MythUIButton * m_fanartButton
Definition: romedit.h:56
void ToggleFavorite()
Definition: romedit.cpp:206
void SetBoxart(const QString &file)
Definition: romedit.cpp:250
MythUITextEdit * m_plotEdit
Definition: romedit.h:51
MythUIButton * m_screenshotButton
Definition: romedit.h:54
MythUITextEdit * m_gamenameEdit
Definition: romedit.h:47
void SetReturnEvent(QObject *retobject, const QString &resultid)
Definition: romedit.cpp:155
MythUIText * m_screenshotText
Definition: romedit.h:55
QString m_id
Definition: romedit.h:44
A text entry and edit widget.
bool Create() override
Definition: romedit.cpp:31
const char * name
Definition: ParseText.cpp:328
MythUITextEdit * m_countryEdit
Definition: romedit.h:50
A single button widget.
Definition: mythuibutton.h:21
void SetFanart(const QString &file)
Definition: romedit.cpp:241
void SetScreenshot(const QString &file)
Definition: romedit.cpp:232
MythUICheckBox * m_favoriteCheck
Definition: romedit.h:53
QObject * m_retObject
Definition: romedit.h:45
MythUIButton * m_boxartButton
Definition: romedit.h:58
RomInfo * m_workingRomInfo
Definition: romedit.h:43
EditRomInfoDialog(MythScreenStack *parent, const QString &name, RomInfo *romInfo)
Definition: romedit.cpp:19
void FindScreenshot()
Definition: romedit.cpp:211
Screen in which all other widgets are contained and rendered.
MythUITextEdit * m_publisherEdit
Definition: romedit.h:52
MythUITextEdit * m_yearEdit
Definition: romedit.h:49
MythUIButton * m_doneButton
Definition: romedit.h:60
void SaveAndExit()
Definition: romedit.cpp:162
void SetGamename()
Definition: romedit.cpp:176