LogViewer Class Reference

#include <logviewer.h>

Inheritance diagram for LogViewer:
MythScreenType MythUIType XMLParseBase

List of all members.

Public Member Functions

 LogViewer (MythScreenStack *parent)
 ~LogViewer (void)
bool Create (void)
bool keyPressEvent (QKeyEvent *e)
 Key event handler.
void setFilenames (const QString &progressLog, const QString &fullLog)

Protected Slots

void cancelClicked (void)
void updateClicked (void)
void updateTimerTimeout (void)
void toggleAutoUpdate (void)
bool loadFile (QString filename, QStringList &list, int startline)
void showProgressLog (void)
void showFullLog (void)
void showMenu (void)
void updateLogItem (MythUIButtonListItem *item)

Private Member Functions

void Init (void)
 Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load().
QString getSetting (const QString &key)

Private Attributes

bool m_autoUpdate
int m_updateTime
QTimer * m_updateTimer
QString m_currentLog
QString m_progressLog
QString m_fullLog
MythUIButtonListm_logList
MythUITextm_logText
MythUIButtonm_exitButton
MythUIButtonm_cancelButton
MythUIButtonm_updateButton

Detailed Description

Definition at line 16 of file logviewer.h.


Constructor & Destructor Documentation

LogViewer::LogViewer ( MythScreenStack parent  ) 

Definition at line 42 of file logviewer.cpp.

LogViewer::~LogViewer ( void   ) 

Definition at line 61 of file logviewer.cpp.


Member Function Documentation

bool LogViewer::Create ( void   )  [virtual]

Reimplemented from MythScreenType.

Definition at line 70 of file logviewer.cpp.

Referenced by showLogViewer().

bool LogViewer::keyPressEvent ( QKeyEvent *   )  [virtual]

Key event handler.

Parameters:
event Keypress event

Reimplemented from MythScreenType.

Definition at line 118 of file logviewer.cpp.

void LogViewer::setFilenames ( const QString &  progressLog,
const QString &  fullLog 
)

Definition at line 280 of file logviewer.cpp.

Referenced by showLogViewer().

void LogViewer::cancelClicked ( void   )  [protected, slot]

Definition at line 165 of file logviewer.cpp.

Referenced by Create().

void LogViewer::updateClicked ( void   )  [protected, slot]

Definition at line 181 of file logviewer.cpp.

Referenced by Create(), Init(), showFullLog(), showProgressLog(), and updateTimerTimeout().

void LogViewer::updateTimerTimeout ( void   )  [protected, slot]

Definition at line 144 of file logviewer.cpp.

Referenced by Create().

void LogViewer::toggleAutoUpdate ( void   )  [protected, slot]

Definition at line 149 of file logviewer.cpp.

Referenced by showMenu().

bool LogViewer::loadFile ( QString  filename,
QStringList &  list,
int  startline 
) [protected, slot]

Definition at line 245 of file logviewer.cpp.

Referenced by updateClicked().

void LogViewer::showProgressLog ( void   )  [protected, slot]

Definition at line 287 of file logviewer.cpp.

Referenced by showMenu().

void LogViewer::showFullLog ( void   )  [protected, slot]

Definition at line 294 of file logviewer.cpp.

Referenced by showMenu().

void LogViewer::showMenu ( void   )  [protected, slot]

Definition at line 301 of file logviewer.cpp.

Referenced by keyPressEvent().

void LogViewer::updateLogItem ( MythUIButtonListItem item  )  [protected, slot]

Definition at line 159 of file logviewer.cpp.

Referenced by Create().

void LogViewer::Init ( void   )  [private, virtual]

Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load().

Warning:
Do NOT confuse this with Load(), they serve very different purposes and most often both should be used when creating a new screen.

Reimplemented from MythScreenType.

Definition at line 111 of file logviewer.cpp.

QString LogViewer::getSetting ( const QString &  key  )  [private]

Definition at line 218 of file logviewer.cpp.

Referenced by updateClicked().


Member Data Documentation

Definition at line 45 of file logviewer.h.

Referenced by LogViewer(), showMenu(), toggleAutoUpdate(), updateClicked(), and ~LogViewer().

int LogViewer::m_updateTime [private]

Definition at line 46 of file logviewer.h.

Referenced by LogViewer(), toggleAutoUpdate(), updateClicked(), and ~LogViewer().

QTimer* LogViewer::m_updateTimer [private]

Definition at line 47 of file logviewer.h.

Referenced by Create(), toggleAutoUpdate(), updateClicked(), and ~LogViewer().

QString LogViewer::m_currentLog [private]

Definition at line 49 of file logviewer.h.

Referenced by setFilenames(), showFullLog(), showProgressLog(), and updateClicked().

QString LogViewer::m_progressLog [private]

Definition at line 50 of file logviewer.h.

Referenced by setFilenames(), and showProgressLog().

QString LogViewer::m_fullLog [private]

Definition at line 51 of file logviewer.h.

Referenced by setFilenames(), and showFullLog().

Definition at line 53 of file logviewer.h.

Referenced by Create(), Init(), showFullLog(), showProgressLog(), and updateClicked().

Definition at line 54 of file logviewer.h.

Referenced by Create(), and updateLogItem().

Definition at line 56 of file logviewer.h.

Referenced by Create().

Definition at line 57 of file logviewer.h.

Referenced by Create(), and updateClicked().

Definition at line 58 of file logviewer.h.

Referenced by Create(), and updateClicked().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:08 2012 for MythTV by  doxygen 1.6.3