00001 #ifndef MYTHNEWSEDITOR_H 00002 #define MYTHNEWSEDITOR_H 00003 00004 // Qt headers 00005 #include <QMutex> 00006 #include <QString> 00007 00008 // MythTV headers 00009 #include <mythscreentype.h> 00010 00011 class MythUIText; 00012 class MythUITextEdit; 00013 class MythUIButton; 00014 class MythUICheckBox; 00015 class NewsSite; 00016 00020 class MythNewsEditor : public MythScreenType 00021 { 00022 Q_OBJECT 00023 00024 public: 00025 MythNewsEditor(NewsSite *site, bool edit, MythScreenStack *parent, 00026 const QString &name = "MythNewsEditor"); 00027 ~MythNewsEditor(); 00028 00029 bool Create(void); 00030 bool keyPressEvent(QKeyEvent*); 00031 00032 private: 00033 mutable QMutex m_lock; 00034 NewsSite *m_site; 00035 QString m_siteName; 00036 bool m_editing; 00037 00038 MythUIText *m_titleText; 00039 MythUIText *m_nameLabelText; 00040 MythUIText *m_urlLabelText; 00041 MythUIText *m_iconLabelText; 00042 MythUIText *m_podcastLabelText; 00043 00044 MythUITextEdit *m_nameEdit; 00045 MythUITextEdit *m_urlEdit; 00046 MythUITextEdit *m_iconEdit; 00047 00048 MythUIButton *m_okButton; 00049 MythUIButton *m_cancelButton; 00050 00051 MythUICheckBox *m_podcastCheck; 00052 00053 private slots: 00054 void Save(void); 00055 }; 00056 00057 #endif /* MYTHNEWSEDITOR_H */
1.6.3