00001 #ifndef VIEWSCHEDULED_H_ 00002 #define VIEWSCHEDULED_H_ 00003 00004 #include <qdatetime.h> 00005 #include <qdom.h> 00006 #include "mythwidgets.h" 00007 #include "mythdialogs.h" 00008 #include "uitypes.h" 00009 #include "xmlparse.h" 00010 #include "programinfo.h" 00011 00012 class TV; 00013 class Timer; 00014 00015 class ViewScheduled : public MythDialog 00016 { 00017 Q_OBJECT 00018 public: 00019 ViewScheduled(MythMainWindow *parent, const char *name = 0, 00020 TV *player = NULL, bool showTV = false); 00021 ~ViewScheduled(); 00022 static void * RunViewScheduled(void *player, bool); 00023 00024 protected slots: 00025 void edit(); 00026 void customEdit(); 00027 void remove(); 00028 void upcoming(); 00029 void details(); 00030 void selected(); 00031 void cursorDown(bool page = false); 00032 void cursorUp(bool page = false); 00033 void pageDown() { cursorDown(true); } 00034 void pageUp() { cursorUp(true); } 00035 00036 protected: 00037 void paintEvent(QPaintEvent *); 00038 void keyPressEvent(QKeyEvent *e); 00039 void customEvent(QCustomEvent *e); 00040 00041 private: 00042 void FillList(void); 00043 void setShowAll(bool all); 00044 void viewCards(void); 00045 void viewInputs(void); 00046 00047 void updateBackground(void); 00048 void updateList(QPainter *); 00049 void updateConflict(QPainter *); 00050 void updateShowLevel(QPainter *); 00051 void updateInfo(QPainter *); 00052 void updateRecStatus(QPainter *); 00053 00054 void LoadWindow(QDomElement &); 00055 void parseContainer(QDomElement &); 00056 void EmbedTVWindow(void); 00057 XMLParse *theme; 00058 QDomElement xmldata; 00059 00060 QPixmap myBackground; 00061 00062 bool conflictBool; 00063 QDate conflictDate; 00064 QString dateformat; 00065 QString timeformat; 00066 QString channelFormat; 00067 00068 QRect listRect; 00069 QRect infoRect; 00070 QRect conflictRect; 00071 QRect showLevelRect; 00072 QRect recStatusRect; 00073 QRect fullRect; 00074 QRect tvRect; 00075 00076 int listsize; 00077 00078 bool showAll; 00079 00080 bool inEvent; 00081 bool inFill; 00082 bool needFill; 00083 00084 int listPos; 00085 ProgramList recList; 00086 00087 QMap<int, int> cardref; 00088 int maxcard; 00089 int curcard; 00090 00091 QMap<int, int> inputref; 00092 int maxinput; 00093 int curinput; 00094 00095 TV *m_player; 00096 }; 00097 00098 #endif
1.5.5