00001 /* ============================================================ 00002 * This program is free software; you can redistribute it 00003 * and/or modify it under the terms of the GNU General 00004 * Public License as published bythe Free Software Foundation; 00005 * either version 2, or (at your option) 00006 * any later version. 00007 * 00008 * This program is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 * GNU General Public License for more details. 00012 * 00013 * ============================================================ */ 00014 00015 #ifndef ZMEVENTS_H 00016 #define ZMEVENTS_H 00017 00018 // mythtv 00019 #include <mythtv/uitypes.h> 00020 #include <mythtv/uilistbtntype.h> 00021 #include <mythtv/xmlparse.h> 00022 #include <mythtv/mythdialogs.h> 00023 00024 // zm 00025 #include <zmdefines.h> 00026 00027 class ZMEvents : public MythThemedDialog 00028 { 00029 Q_OBJECT 00030 00031 public: 00032 ZMEvents(MythMainWindow *parent, 00033 const QString &window_name, const QString &theme_filename, 00034 const char *name = 0); 00035 ~ZMEvents(); 00036 00037 private slots: 00038 void getEventList(void); 00039 void playPressed(void); 00040 void deletePressed(void); 00041 void setCamera(int item); 00042 void setDate(int item); 00043 void gridItemChanged(ImageGridItem *item); 00044 00045 private: 00046 void wireUpTheme(void); 00047 UITextType* getTextType(QString name); 00048 void keyPressEvent(QKeyEvent *e); 00049 00050 void updateUIList(); 00051 void eventListDown(bool page); 00052 void eventListUp(bool page); 00053 void getCameraList(void); 00054 void getDateList(void); 00055 void setView(bool gridView); 00056 void setGridLayout(int layout); 00057 void showMenu(void); 00058 00059 void updateImageGrid(); 00060 QPixmap *createScaledPixmap(QString filename, int width, int height, 00061 QImage::ScaleMode mode); 00062 00063 bool m_oldestFirst; 00064 int m_currentEvent; 00065 int m_eventListSize; 00066 vector<Event *> *m_eventList; 00067 QStringList m_dateList; 00068 00069 UIListType *m_event_list; 00070 UITextType *m_eventNoText; 00071 00072 UIImageGridType *m_eventGrid; 00073 00074 UITextButtonType *m_playButton; 00075 UITextButtonType *m_deleteButton; 00076 00077 UISelectorType *m_cameraSelector; 00078 UISelectorType *m_dateSelector; 00079 }; 00080 00081 #endif
1.5.5