Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CityTime Class Reference

#include </home/clem/local/src/opie/core/settings/citytime/citytime.h>

Inheritance diagram for CityTime:

Inheritance graph
[legend]
Collaboration diagram for CityTime:

Collaboration graph
[legend]
List of all members.

Public Slots

void beginNewTz ()
void slotNewTz (const QString &strNewCountry, const QString &strNewCity)
void changeClock (bool newClock)

Public Member Functions

 CityTime (QWidget *parent=0, const char *name=0, WFlags fl=0)
 ~CityTime ()

Static Public Member Functions

static QString appName ()

Protected Member Functions

void timerEvent (QTimerEvent *)
void mousePressEvent (QMouseEvent *event)

Private Member Functions

void showTime (void)
void readInTimes (void)

Private Attributes

QString strRealTz
QString nameRealTz
QString strHome
bool bAdded
bool bWhichClock
int timerId
QWidget * selWidget
QString strCityTz [CITIES]
QList< QToolButton > listCities
QList< QLabel > listTimes
bool changed

Constructor & Destructor Documentation

CityTime::CityTime QWidget *  parent = 0,
const char *  name = 0,
WFlags  fl = 0
 

Definition at line 44 of file citytime.cpp.

References bAdded, bWhichClock, changeClock(), ZoneMap::changeClock(), changed, CityTimeBase::CityTimeBaseLayout, CityTimeBase::cmdCity1, CityTimeBase::cmdCity2, CityTimeBase::cmdCity3, CityTimeBase::cmdCity4, CityTimeBase::cmdCity5, CityTimeBase::cmdCity6, CityTimeBase::cmdCity7, CityTimeBase::cmdCity8, CityTimeBase::cmdCity9, d, FALSE, CityTimeBase::frmMap, CityTimeBase::lblCTime1, CityTimeBase::lblCTime2, CityTimeBase::lblCTime3, CityTimeBase::lblCTime4, CityTimeBase::lblCTime5, CityTimeBase::lblCTime6, CityTimeBase::lblCTime7, CityTimeBase::lblCTime8, CityTimeBase::lblCTime9, listCities, listTimes, NULL, odebug, oendl, qApp, Config::readBoolEntry(), readInTimes(), ZoneMap::selectionWidget(), selWidget, Config::setGroup(), strHome, strRealTz, timerEvent(), and TRUE.

CityTime::~CityTime  ) 
 

Definition at line 122 of file citytime.cpp.

References changed, CITIES, FALSE, QString::find(), i, QString::isEmpty(), QString::isNull(), listCities, QString::mid(), nameRealTz, QString::number(), Config::removeEntry(), Config::setGroup(), strCityTz, strRealTz, TRUE, and Config::writeEntry().


Member Function Documentation

static QString CityTime::appName  )  [inline, static]
 

Definition at line 39 of file citytime.h.

References QString::fromLatin1().

void CityTime::beginNewTz  )  [virtual, slot]
 

Reimplemented from CityTimeBase.

Definition at line 206 of file citytime.cpp.

References CityTimeBase::buttonWidget, CityTimeBase::frmMap, and selWidget.

void CityTime::changeClock bool  newClock  )  [slot]
 

Definition at line 279 of file citytime.cpp.

References bWhichClock, and showTime().

Referenced by CityTime().

void CityTime::mousePressEvent QMouseEvent *  event  )  [protected]
 

Definition at line 172 of file citytime.cpp.

void CityTime::readInTimes void   )  [private]
 

Definition at line 239 of file citytime.cpp.

References QValueList< T >::begin(), CITIES, i, QString::isEmpty(), QString::isNull(), list, listCities, nameRealTz, QString::null, QString::number(), Config::readEntry(), Config::setGroup(), strCityTz, strRealTz, and timezoneDefaults().

Referenced by CityTime().

void CityTime::showTime void   )  [private]
 

Definition at line 178 of file citytime.cpp.

References bWhichClock, CITIES, i, QString::isNull(), listTimes, QString::number(), TimeString::shortTime(), strCityTz, strRealTz, and tr.

Referenced by changeClock(), slotNewTz(), and timerEvent().

void CityTime::slotNewTz const QString strNewCountry,
const QString strNewCity
[virtual, slot]
 

Reimplemented from CityTimeBase.

Definition at line 214 of file citytime.cpp.

References CityTimeBase::buttonWidget, changed, CITIES, i, listCities, QString::replace(), s, selWidget, showTime(), strCityTz, and TRUE.

void CityTime::timerEvent QTimerEvent *   )  [protected]
 

Definition at line 162 of file citytime.cpp.

References QTime::currentTime(), showTime(), and timerId.

Referenced by CityTime().


Member Data Documentation

bool CityTime::bAdded [private]
 

Definition at line 55 of file citytime.h.

Referenced by CityTime().

bool CityTime::bWhichClock [private]
 

Definition at line 56 of file citytime.h.

Referenced by changeClock(), CityTime(), and showTime().

bool CityTime::changed [private]
 

Definition at line 65 of file citytime.h.

Referenced by CityTime(), slotNewTz(), and ~CityTime().

QList<QToolButton> CityTime::listCities [private]
 

Definition at line 63 of file citytime.h.

Referenced by CityTime(), readInTimes(), slotNewTz(), and ~CityTime().

QList<QLabel> CityTime::listTimes [private]
 

Definition at line 64 of file citytime.h.

Referenced by CityTime(), and showTime().

QString CityTime::nameRealTz [private]
 

Definition at line 53 of file citytime.h.

Referenced by readInTimes(), and ~CityTime().

QWidget* CityTime::selWidget [private]
 

Definition at line 60 of file citytime.h.

Referenced by beginNewTz(), CityTime(), and slotNewTz().

QString CityTime::strCityTz[CITIES] [private]
 

Definition at line 62 of file citytime.h.

Referenced by readInTimes(), showTime(), slotNewTz(), and ~CityTime().

QString CityTime::strHome [private]
 

Definition at line 54 of file citytime.h.

Referenced by CityTime().

QString CityTime::strRealTz [private]
 

Definition at line 52 of file citytime.h.

Referenced by CityTime(), readInTimes(), showTime(), and ~CityTime().

int CityTime::timerId [private]
 

Definition at line 57 of file citytime.h.

Referenced by timerEvent().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:28:59 2005 for OPIE by  doxygen 1.4.2