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 // qt 00019 #include <QPixmap> 00020 #include <QKeyEvent> 00021 00022 // mythtv 00023 #include <mythuibuttonlist.h> 00024 #include <mythscreentype.h> 00025 #include <mythdialogbox.h> 00026 00027 // zm 00028 #include <zmdefines.h> 00029 00030 class ZMEvents : public MythScreenType 00031 { 00032 Q_OBJECT 00033 00034 public: 00035 ZMEvents(MythScreenStack *parent); 00036 ~ZMEvents(); 00037 00038 bool Create(void); 00039 bool keyPressEvent(QKeyEvent *); 00040 00041 private slots: 00042 void getEventList(void); 00043 void playPressed(void); 00044 void deletePressed(void); 00045 void deleteAll(void); 00046 void doDeleteAll(bool doDelete); 00047 void changeView(void); 00048 void eventChanged(MythUIButtonListItem *item); 00049 void cameraChanged(void); 00050 void dateChanged(void); 00051 void playerExited(void); 00052 00053 private: 00054 void updateUIList(); 00055 void getCameraList(void); 00056 void getDateList(void); 00057 void setGridLayout(int layout); 00058 void showMenu(void); 00059 00060 bool m_oldestFirst; 00061 int m_layout; 00062 00063 std::vector<Event *> *m_eventList; 00064 QStringList m_dateList; 00065 int m_savedPosition; 00066 int m_currentCamera; 00067 int m_currentDate; 00068 00069 MythUIText *m_eventNoText; 00070 00071 MythUIButtonList *m_eventGrid; 00072 00073 MythUIButton *m_playButton; 00074 MythUIButton *m_deleteButton; 00075 00076 MythUIButtonList *m_cameraSelector; 00077 MythUIButtonList *m_dateSelector; 00078 00079 MythDialogBox *m_menuPopup; 00080 }; 00081 00082 #endif
1.6.3