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

Opie::Ui::OTimePicker Class Reference

A widget to quickly pick a QTime. More...

#include </home/clem/local/src/opie/libopie2/opieui/otimepicker.h>

Inheritance diagram for Opie::Ui::OTimePicker:

Inheritance graph
[legend]
Collaboration diagram for Opie::Ui::OTimePicker:

Collaboration graph
[legend]
List of all members.

Public Slots

void setHour (int h)
void setMinute (int m)
void setTime (const QTime &)
void setTime (int h, int m)

Signals

void timeChanged (const QTime &)

Public Member Functions

 OTimePicker (QWidget *parent=0, const char *name=0, WFlags fl=0)
QTime time () const

Private Slots

void slotHour (bool b)
void slotMinute (bool b)

Private Attributes

QValueList< OClickableLabel * > hourLst
QValueList< OClickableLabel * > minuteLst
QTime tm
Private * d

Detailed Description

A widget to quickly pick a QTime.

A class to pick time. It uses clickable labels internally to allow a quick selection of a time. A time can be selected by two clicks of a user

Version:
1.0
See also:
QWidget

QTime

Author:
Hakan Ardo, Stefan Eilers

Definition at line 58 of file otimepicker.h.


Constructor & Destructor Documentation

Opie::Ui::OTimePicker::OTimePicker QWidget *  parent = 0,
const char *  name = 0,
WFlags  fl = 0
 


Member Function Documentation

void Opie::Ui::OTimePicker::setHour int  h  )  [slot]
 

Method to set the hour

Definition at line 201 of file otimepicker.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), OTimePicker::hourLst, QTime::minute(), QTime::setHMS(), QString::sprintf(), and OTimePicker::tm.

void Opie::Ui::OTimePicker::setMinute int  m  )  [slot]
 

Method to set the minutes

Parameters:
m minutes

Definition at line 182 of file otimepicker.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), QTime::hour(), OTimePicker::minuteLst, QTime::setHMS(), QString::sprintf(), and OTimePicker::tm.

void Opie::Ui::OTimePicker::setTime int  h,
int  m
[slot]
 

Method to set the time. No signal gets emitted during this method call

Parameters:
h The hour
m The minute. Minutes need to set by 5 minute steps

Definition at line 169 of file otimepicker.cpp.

References OTimePicker::setHour(), and OTimePicker::setMinute().

void Opie::Ui::OTimePicker::setTime const QTime t  )  [slot]
 

Method to set the time. No signal gets emitted during this method call Minutes must be within 5 minutes step starting at 0 ( 0,5,10,15,20... )

Parameters:
t The time to be set

Definition at line 159 of file otimepicker.cpp.

References OTimePicker::setTime().

void Opie::Ui::OTimePicker::slotHour bool  b  )  [private, slot]
 

Definition at line 110 of file otimepicker.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), OTimePicker::hourLst, QTime::minute(), QTime::setHMS(), Opie::Ui::OClickableLabel::setOn(), OTimePicker::timeChanged(), and OTimePicker::tm.

void Opie::Ui::OTimePicker::slotMinute bool  b  )  [private, slot]
 

Definition at line 132 of file otimepicker.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), QTime::hour(), OTimePicker::minuteLst, QTime::setHMS(), Opie::Ui::OClickableLabel::setOn(), OTimePicker::timeChanged(), and OTimePicker::tm.

QTime Opie::Ui::OTimePicker::time void   )  const
 

This method return the current time

Returns:
the time

Definition at line 105 of file otimepicker.cpp.

References OTimePicker::tm.

void Opie::Ui::OTimePicker::timeChanged const QTime  )  [signal]
 

gets emitted when the time got changed by the user


Member Data Documentation

Private* Opie::Ui::OTimePicker::d [private]
 

Definition at line 78 of file otimepicker.h.

QValueList<OClickableLabel *> Opie::Ui::OTimePicker::hourLst [private]
 

Definition at line 75 of file otimepicker.h.

QValueList<OClickableLabel *> Opie::Ui::OTimePicker::minuteLst [private]
 

Definition at line 76 of file otimepicker.h.

QTime Opie::Ui::OTimePicker::tm [private]
 

Definition at line 77 of file otimepicker.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:02:09 2005 for OPIE by  doxygen 1.4.2