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

TimeZoneSelector Class Reference

The TimeZoneSelector widget allows users to configure their time zone information. More...

#include </home/clem/local/src/opie/library/tzselect.h>

Collaboration diagram for TimeZoneSelector:

Collaboration graph
[legend]
List of all members.

Signals

void signalNewTz (const QString &id)

Public Member Functions

 TimeZoneSelector (QWidget *parent=0, const char *name=0)
 ~TimeZoneSelector ()
QString currentZone () const
void setCurrentZone (const QString &id)

Private Slots

void slotTzActive (int index)
void slotExecute (void)

Private Attributes

TZCombocmbTz
QToolButton * cmdTz
TimeZoneSelectorPrivated

Detailed Description

The TimeZoneSelector widget allows users to configure their time zone information.

Definition at line 58 of file tzselect.h.


Constructor & Destructor Documentation

TimeZoneSelector::TimeZoneSelector QWidget *  p = 0,
const char *  n = 0
 

Creates a new TimeZoneSelector with parent p and name n. The combobox will be populated with the available timezones.

Definition at line 209 of file tzselect.cpp.

References cmbTz, cmdTz, d, Resource::loadIconSet(), slotExecute(), and slotTzActive().

TimeZoneSelector::~TimeZoneSelector  ) 
 

Destroys a TimeZoneSelector.

Definition at line 231 of file tzselect.cpp.


Member Function Documentation

QString TimeZoneSelector::currentZone  )  const
 

Returns the currently selected timezone as a string in location format, e.g.

 Australia/Brisbane 

Definition at line 250 of file tzselect.cpp.

References cmbTz, and TZCombo::currZone().

Referenced by TimeTabWidget::saveSettings().

void TimeZoneSelector::setCurrentZone const QString id  ) 
 

Sets the current timezone to id.

Definition at line 258 of file tzselect.cpp.

References cmbTz, and TZCombo::setCurrZone().

Referenced by TimeTabWidget::TimeTabWidget().

void TimeZoneSelector::signalNewTz const QString id  )  [signal]
 

This signal is emitted when a timezone has been selected by the user. The id is a QString in location format, eg

 Australia/Brisbane 

Referenced by slotTzActive().

void TimeZoneSelector::slotExecute void   )  [private, slot]
 

Definition at line 273 of file tzselect.cpp.

References Global::execute(), QFile::exists(), QPEApplication::qpeDir(), tr, and warning().

Referenced by TimeZoneSelector().

void TimeZoneSelector::slotTzActive int  index  )  [private, slot]
 

Definition at line 268 of file tzselect.cpp.

References cmbTz, TZCombo::currZone(), and signalNewTz().

Referenced by TimeZoneSelector().


Member Data Documentation

TZCombo* TimeZoneSelector::cmbTz [private]
 

Definition at line 84 of file tzselect.h.

Referenced by currentZone(), setCurrentZone(), slotTzActive(), and TimeZoneSelector().

QToolButton* TimeZoneSelector::cmdTz [private]
 

Definition at line 85 of file tzselect.h.

Referenced by TimeZoneSelector().

TimeZoneSelectorPrivate* TimeZoneSelector::d [private]
 

Definition at line 86 of file tzselect.h.

Referenced by TimeZoneSelector().


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