00001 #ifndef PREVIOUSLIST_H_ 00002 #define PREVIOUSLIST_H_ 00003 00004 #include <qdatetime.h> 00005 #include "libmyth/uitypes.h" 00006 #include "libmyth/xmlparse.h" 00007 #include "libmyth/mythwidgets.h" 00008 #include "libmyth/mythdialogs.h" 00009 #include "libmythtv/programinfo.h" 00010 00011 00012 class MPUBLIC PreviousList : public MythDialog 00013 { 00014 Q_OBJECT 00015 00016 public: 00017 PreviousList(MythMainWindow *parent, const char *name = 0, 00018 int recid = 0, QString ltitle = ""); 00019 ~PreviousList(); 00020 00021 protected slots: 00022 void cursorDown(bool page = false); 00023 void cursorUp(bool page = false); 00024 void prevView(void); 00025 void nextView(void); 00026 void setViewFromList(void); 00027 void select(void); 00028 void edit(void); 00029 void customEdit(void); 00030 void upcoming(void); 00031 void details(void); 00032 void chooseView(void); 00033 void removalDialog(void); 00034 void deleteItem(void); 00035 00036 protected: 00037 void paintEvent(QPaintEvent *); 00038 void keyPressEvent(QKeyEvent *e); 00039 void customEvent(QCustomEvent *e); 00040 00041 private: 00042 int m_recid; 00043 QString m_title; 00044 00045 QString view; 00046 QDateTime startTime; 00047 QDateTime searchTime; 00048 QString dayFormat; 00049 QString hourFormat; 00050 QString timeFormat; 00051 QString fullDateFormat; 00052 QString channelFormat; 00053 00054 RecSearchType searchtype; 00055 00056 int curView; 00057 QStringList viewList; 00058 QStringList viewTextList; 00059 00060 int curItem; 00061 ProgramList itemList; 00062 ProgramList schedList; 00063 00064 XMLParse *theme; 00065 QDomElement xmldata; 00066 00067 QRect viewRect; 00068 QRect listRect; 00069 QRect infoRect; 00070 QRect fullRect; 00071 int listsize; 00072 00073 bool allowEvents; 00074 bool allowUpdates; 00075 bool updateAll; 00076 bool refillAll; 00077 00078 void updateBackground(void); 00079 void updateView(QPainter *); 00080 void updateList(QPainter *); 00081 void updateInfo(QPainter *); 00082 void fillViewList(const QString &view); 00083 void fillItemList(void); 00084 void LoadWindow(QDomElement &); 00085 00086 void createPopup(void); 00087 void deletePopup(void); 00088 00089 MythPopupBox *choosePopup; 00090 MythListBox *chooseListBox; 00091 MythRemoteLineEdit *chooseLineEdit; 00092 MythPushButton *chooseOkButton; 00093 MythPushButton *chooseDeleteButton; 00094 MythPushButton *chooseRecordButton; 00095 MythComboBox *chooseDay; 00096 MythComboBox *chooseHour; 00097 }; 00098 00099 #endif
1.5.5