00001 #ifndef ROMEDITDLG_H_ 00002 #define ROMEDITDLG_H_ 00003 00004 #include <mythscreentype.h> 00005 00006 class RomInfo; 00007 00008 class EditRomInfoDialog : public MythScreenType 00009 { 00010 Q_OBJECT 00011 00012 public: 00013 EditRomInfoDialog(MythScreenStack *parent, 00014 QString name, 00015 RomInfo *romInfo); 00016 00017 ~EditRomInfoDialog(); 00018 00019 bool Create(); 00020 void customEvent(QEvent *levent); 00021 void SetReturnEvent(QObject *retobject, const QString &resultid); 00022 00023 public slots: 00024 void SetGamename(); 00025 void SetGenre(); 00026 void SetYear(); 00027 void SetCountry(); 00028 void SetPlot(); 00029 void SetPublisher(); 00030 void ToggleFavorite(); 00031 void FindScreenshot(); 00032 void FindFanart(); 00033 void FindBoxart(); 00034 void SaveAndExit(); 00035 00036 private: 00037 void fillWidgets(); 00038 void SetScreenshot(QString file); 00039 void SetFanart(QString file); 00040 void SetBoxart(QString file); 00041 00042 private: 00043 RomInfo *m_workingRomInfo; 00044 QString m_id; 00045 QObject *m_retObject; 00046 00047 MythUITextEdit *m_gamenameEdit; 00048 MythUITextEdit *m_genreEdit; 00049 MythUITextEdit *m_yearEdit; 00050 MythUITextEdit *m_countryEdit; 00051 MythUITextEdit *m_plotEdit; 00052 MythUITextEdit *m_publisherEdit; 00053 MythUICheckBox *m_favoriteCheck; 00054 MythUIButton *m_screenshotButton; 00055 MythUIText *m_screenshotText; 00056 MythUIButton *m_fanartButton; 00057 MythUIText *m_fanartText; 00058 MythUIButton *m_boxartButton; 00059 MythUIText *m_boxartText; 00060 MythUIButton *m_doneButton; 00061 }; 00062 00063 #endif // ROMEDITDLG_H_
1.6.3