00001 #ifndef LOGVIEWER_H_ 00002 #define LOGVIEWER_H_ 00003 00004 // qt 00005 #include <qlayout.h> 00006 #include <qhbox.h> 00007 #include <qvariant.h> 00008 00009 // myth 00010 #include <mythtv/mythwidgets.h> 00011 #include <mythtv/mythdialogs.h> 00012 00013 00014 class LogViewer : public MythDialog 00015 { 00016 Q_OBJECT 00017 public: 00018 00019 LogViewer(MythMainWindow *parent, const char *name = 0); 00020 ~LogViewer(void); 00021 void setFilenames(const QString &progressLog, const QString &fullLog); 00022 00023 protected slots: 00024 void cancelClicked(void); 00025 void updateClicked(void); 00026 void updateTimerTimeout(void); 00027 void updateTimeChanged(int value); 00028 void toggleAutoUpdate(bool checked); 00029 bool loadFile(QString filename, QStringList &list, int startline); 00030 void keyPressEvent(QKeyEvent *e); 00031 void increaseFontSize(void); 00032 void decreaseFontSize(void); 00033 void showProgressLog(void); 00034 void showFullLog(void); 00035 void showMenu(void); 00036 void closePopupMenu(void); 00037 00038 private: 00039 QString getSetting(const QString &key); 00040 00041 int m_updateTime; 00042 QTimer *m_updateTimer; 00043 00044 QString m_currentLog; 00045 QString m_progressLog; 00046 QString m_fullLog; 00047 00048 MythPushButton *m_exitButton; 00049 MythPushButton *m_cancelButton; 00050 MythPushButton *m_updateButton; 00051 00052 MythSpinBox *m_updateTimeSpin; 00053 MythCheckBox *m_autoupdateCheck; 00054 MythListBox *m_listbox; 00055 00056 MythPopupBox *m_popupMenu; 00057 }; 00058 00059 #endif
1.5.5