#include <TipDialog.h>

Inheritance diagram for TipDialog:
Inheritance graph
Collaboration diagram for TipDialog:
Collaboration graph

Classes

class  TipFileParser
 

Public Member Functions

 TipDialog (QWidget *parent=0)
 
virtual ~TipDialog ()
 
bool isOK ()
 

Protected Slots

void previous ()
 
void next ()
 

Protected Member Functions

void readTips ()
 
void showTip ()
 

Protected Attributes

int m_tipNumber
 
QLabel * m_label
 
QString m_caption
 
std::vector< QString > m_tips
 

Detailed Description

Definition at line 30 of file TipDialog.h.

Constructor & Destructor Documentation

TipDialog::TipDialog ( QWidget *  parent = 0)

Definition at line 31 of file TipDialog.cpp.

References m_caption, m_label, m_tipNumber, next(), previous(), readTips(), and showTip().

TipDialog::~TipDialog ( )
virtual

Definition at line 88 of file TipDialog.cpp.

Member Function Documentation

bool TipDialog::isOK ( )
inline

Definition at line 38 of file TipDialog.h.

References m_tips, next(), and previous().

void TipDialog::previous ( )
protectedslot

Definition at line 105 of file TipDialog.cpp.

References m_tipNumber, m_tips, and showTip().

Referenced by isOK(), and TipDialog().

void TipDialog::next ( )
protectedslot

!! The tips file should define where we loop back to – the

Definition at line 93 of file TipDialog.cpp.

References m_tipNumber, m_tips, and showTip().

Referenced by isOK(), and TipDialog().

void TipDialog::readTips ( )
protected

Definition at line 115 of file TipDialog.cpp.

References TipDialog::TipFileParser::parse().

Referenced by TipDialog().

void TipDialog::showTip ( )
protected

!! as above

Definition at line 146 of file TipDialog.cpp.

References m_label, m_tipNumber, and m_tips.

Referenced by next(), previous(), and TipDialog().

Member Data Documentation

int TipDialog::m_tipNumber
protected

Definition at line 45 of file TipDialog.h.

Referenced by next(), previous(), showTip(), and TipDialog().

QLabel* TipDialog::m_label
protected

Definition at line 46 of file TipDialog.h.

Referenced by showTip(), and TipDialog().

QString TipDialog::m_caption
protected

Definition at line 47 of file TipDialog.h.

Referenced by TipDialog::TipFileParser::startElement(), and TipDialog().

std::vector<QString> TipDialog::m_tips
protected

The documentation for this class was generated from the following files: