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 
17  ~EditRomInfoDialog() override;
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_
EditRomInfoDialog::m_yearEdit
MythUITextEdit * m_yearEdit
Definition: romedit.h:49
EditRomInfoDialog::SaveAndExit
void SaveAndExit()
Definition: romedit.cpp:159
EditRomInfoDialog::fillWidgets
void fillWidgets()
Definition: romedit.cpp:135
EditRomInfoDialog
Definition: romedit.h:8
EditRomInfoDialog::FindFanart
void FindFanart()
Definition: romedit.cpp:214
EditRomInfoDialog::SetCountry
void SetCountry()
Definition: romedit.cpp:187
MythScreenStack
Definition: mythscreenstack.h:16
EditRomInfoDialog::ToggleFavorite
void ToggleFavorite()
Definition: romedit.cpp:202
MythUITextEdit
A text entry and edit widget.
Definition: mythuitextedit.h:32
EditRomInfoDialog::SetBoxart
void SetBoxart(const QString &file)
Definition: romedit.cpp:246
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:44
build_compdb.file
file
Definition: build_compdb.py:55
EditRomInfoDialog::FindBoxart
void FindBoxart()
Definition: romedit.cpp:221
EditRomInfoDialog::m_fanartButton
MythUIButton * m_fanartButton
Definition: romedit.h:56
EditRomInfoDialog::customEvent
void customEvent(QEvent *levent) override
Definition: romedit.cpp:120
EditRomInfoDialog::m_boxartText
MythUIText * m_boxartText
Definition: romedit.h:59
EditRomInfoDialog::m_genreEdit
MythUITextEdit * m_genreEdit
Definition: romedit.h:48
EditRomInfoDialog::m_plotEdit
MythUITextEdit * m_plotEdit
Definition: romedit.h:51
EditRomInfoDialog::m_id
QString m_id
Definition: romedit.h:44
EditRomInfoDialog::SetGenre
void SetGenre()
Definition: romedit.cpp:177
EditRomInfoDialog::m_gamenameEdit
MythUITextEdit * m_gamenameEdit
Definition: romedit.h:47
EditRomInfoDialog::SetReturnEvent
void SetReturnEvent(QObject *retobject, const QString &resultid)
Definition: romedit.cpp:152
MythUIButton
A single button widget.
Definition: mythuibutton.h:21
EditRomInfoDialog::m_screenshotText
MythUIText * m_screenshotText
Definition: romedit.h:55
EditRomInfoDialog::m_screenshotButton
MythUIButton * m_screenshotButton
Definition: romedit.h:54
EditRomInfoDialog::Create
bool Create() override
Definition: romedit.cpp:31
MythUICheckBox
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
Definition: mythuicheckbox.h:15
RomInfo
Definition: rominfo.h:12
EditRomInfoDialog::EditRomInfoDialog
EditRomInfoDialog(MythScreenStack *parent, const QString &name, RomInfo *romInfo)
Definition: romedit.cpp:19
EditRomInfoDialog::m_favoriteCheck
MythUICheckBox * m_favoriteCheck
Definition: romedit.h:53
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:30
EditRomInfoDialog::FindScreenshot
void FindScreenshot()
Definition: romedit.cpp:207
EditRomInfoDialog::m_retObject
QObject * m_retObject
Definition: romedit.h:45
EditRomInfoDialog::SetPlot
void SetPlot()
Definition: romedit.cpp:192
EditRomInfoDialog::~EditRomInfoDialog
~EditRomInfoDialog() override
Definition: romedit.cpp:26
EditRomInfoDialog::m_countryEdit
MythUITextEdit * m_countryEdit
Definition: romedit.h:50
EditRomInfoDialog::SetFanart
void SetFanart(const QString &file)
Definition: romedit.cpp:237
EditRomInfoDialog::SetScreenshot
void SetScreenshot(const QString &file)
Definition: romedit.cpp:228
EditRomInfoDialog::SetYear
void SetYear()
Definition: romedit.cpp:182
EditRomInfoDialog::SetGamename
void SetGamename()
Definition: romedit.cpp:172
EditRomInfoDialog::m_publisherEdit
MythUITextEdit * m_publisherEdit
Definition: romedit.h:52
EditRomInfoDialog::m_workingRomInfo
RomInfo * m_workingRomInfo
Definition: romedit.h:43
EditRomInfoDialog::m_boxartButton
MythUIButton * m_boxartButton
Definition: romedit.h:58
mythscreentype.h
EditRomInfoDialog::m_doneButton
MythUIButton * m_doneButton
Definition: romedit.h:60
EditRomInfoDialog::SetPublisher
void SetPublisher()
Definition: romedit.cpp:197
EditRomInfoDialog::m_fanartText
MythUIText * m_fanartText
Definition: romedit.h:57