|
MythTV
0.26-pre
|
00001 #ifndef _PROGLIST_HELPERS_H_ 00002 #define _PROGLIST_HELPERS_H_ 00003 00004 // Qt headers 00005 #include <QDateTime> 00006 00007 // MythTV headers 00008 #include "mythscreentype.h" 00009 #include "recordingtypes.h" 00010 00011 class MythUIText; 00012 class MythUIButtonList; 00013 class ProgLister; 00014 00015 class PhrasePopup : public MythScreenType 00016 { 00017 Q_OBJECT 00018 00019 public: 00020 PhrasePopup(MythScreenStack *parentStack, 00021 ProgLister *parent, 00022 RecSearchType searchType, 00023 const QStringList &list, 00024 const QString ¤tValue); 00025 00026 bool Create(); 00027 00028 signals: 00029 void haveResult(QString item); 00030 00031 private slots: 00032 void okClicked(void); 00033 void deleteClicked(void); 00034 void recordClicked(void); 00035 void phraseClicked(MythUIButtonListItem *item); 00036 void phraseSelected(MythUIButtonListItem *item); 00037 void editChanged(void); 00038 00039 private: 00040 ProgLister *m_parent; 00041 RecSearchType m_searchType; 00042 QStringList m_list; 00043 QString m_currentValue; 00044 00045 MythUIText *m_titleText; 00046 MythUIButtonList *m_phraseList; 00047 MythUITextEdit *m_phraseEdit; 00048 MythUIButton *m_okButton; 00049 MythUIButton *m_deleteButton; 00050 MythUIButton *m_recordButton; 00051 }; 00052 00053 class PowerSearchPopup : public MythScreenType 00054 { 00055 Q_OBJECT 00056 00057 public: 00058 PowerSearchPopup(MythScreenStack *parentStack, 00059 ProgLister *parent, 00060 RecSearchType searchType, 00061 const QStringList &list, 00062 const QString ¤tValue); 00063 00064 bool Create(); 00065 00066 signals: 00067 void haveResult(QString item); 00068 00069 private slots: 00070 void editClicked(void); 00071 void deleteClicked(void); 00072 void recordClicked(void); 00073 void phraseClicked(MythUIButtonListItem *item); 00074 void phraseSelected(MythUIButtonListItem *item); 00075 00076 private: 00077 ProgLister *m_parent; 00078 RecSearchType m_searchType; 00079 QStringList m_list; 00080 QString m_currentValue; 00081 00082 MythUIText *m_titleText; 00083 MythUIButtonList *m_phraseList; 00084 MythUITextEdit *m_phraseEdit; 00085 MythUIButton *m_editButton; 00086 MythUIButton *m_deleteButton; 00087 MythUIButton *m_recordButton; 00088 }; 00089 00090 class EditPowerSearchPopup : public MythScreenType 00091 { 00092 Q_OBJECT 00093 00094 public: 00095 EditPowerSearchPopup(MythScreenStack *parentStack, ProgLister *parent, 00096 const QString ¤tValue); 00097 00098 bool Create(); 00099 00100 private slots: 00101 void okClicked(void); 00102 00103 private: 00104 void initLists(void); 00105 00106 ProgLister *m_parent; 00107 QStringList m_categories; 00108 QStringList m_genres; 00109 QStringList m_channels; 00110 00111 QString m_currentValue; 00112 00113 MythUITextEdit *m_titleEdit; 00114 MythUITextEdit *m_subtitleEdit; 00115 MythUITextEdit *m_descEdit; 00116 MythUIButtonList *m_categoryList; 00117 MythUIButtonList *m_genreList; 00118 MythUIButtonList *m_channelList; 00119 00120 MythUIButton *m_okButton; 00121 }; 00122 00123 #endif // _PROGLIST_HELPERS_H_
1.7.6.1