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

Opie::Ui::OTimePickerDialog Class Reference

A small dialog to pick a time. More...

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

Collaboration diagram for Opie::Ui::OTimePickerDialog:

Collaboration graph
[legend]
List of all members.

Public Slots

void setTime (const QTime &time)
void setHour (const QString &hour)
void setMinute (const QString &minute)

Public Member Functions

 OTimePickerDialog (QWidget *parent=0, const char *name=NULL, WFlags fl=0)
 ~OTimePickerDialog ()
QTime time () const

Private Attributes

OTimePickerm_timePicker
QTime m_time
Private * d

Detailed Description

A small dialog to pick a time.

Version:
1.0
Author:
Stefan Eilers

Definition at line 100 of file otimepicker.h.


Constructor & Destructor Documentation

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

This is a modal Dialog.

Parameters:
parent The parent widget
name The name of the object
fl Possible window flags

Definition at line 224 of file otimepicker.cpp.

References m_timePicker, setHour(), setMinute(), and setTime().

Opie::Ui::OTimePickerDialog::~OTimePickerDialog  )  [inline]
 

Definition at line 106 of file otimepicker.h.


Member Function Documentation

void Opie::Ui::OTimePickerDialog::setHour const QString hour  )  [slot]
 

This method takes the current minute and tries to set hour to hour. This succeeds if the resulting date is valid

Parameters:
hour The hour as a string

Definition at line 276 of file otimepicker.cpp.

References QTime::isValid(), OTimePickerDialog::m_time, QTime::minute(), QTime::setHMS(), and OTimePickerDialog::setTime().

Referenced by OTimePickerDialog().

void Opie::Ui::OTimePickerDialog::setMinute const QString minute  )  [slot]
 

Method to set a new minute. It tries to convert the string to int and if the resulting date is valid a new date is set.

See also:
setHour

Definition at line 291 of file otimepicker.cpp.

References QTime::hour(), QTime::isValid(), OTimePickerDialog::m_time, QTime::setHMS(), OTimePickerDialog::setTime(), and QString::toInt().

Referenced by OTimePickerDialog().

void Opie::Ui::OTimePickerDialog::setTime const QTime time  )  [slot]
 

Set the time to time

Parameters:
time The time to be set

Definition at line 251 of file otimepicker.cpp.

References QTime::hour(), OTimePickerDialog::m_time, QTime::minute(), and QString::number().

Referenced by TaskEditorAlarms::inlineSetTime(), and OTimePickerDialog().

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

Returns:
the time

Definition at line 242 of file otimepicker.cpp.

References OTimePickerDialog::m_time.

Referenced by TaskEditorAlarms::inlineSetTime().


Member Data Documentation

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

Definition at line 118 of file otimepicker.h.

QTime Opie::Ui::OTimePickerDialog::m_time [private]
 

Definition at line 117 of file otimepicker.h.

OTimePicker* Opie::Ui::OTimePickerDialog::m_timePicker [private]
 

Definition at line 116 of file otimepicker.h.

Referenced by OTimePickerDialog().


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