00001 /* 00002 This file is part of the Opie Project 00003 00004 Copyright (C) Opie Team <opie-devel@handhelds.org> 00005 =. 00006 .=l. 00007 .>+-= 00008 _;:, .> :=|. This program is free software; you can 00009 .> <`_, > . <= redistribute it and/or modify it under 00010 :`=1 )Y*s>-.-- : the terms of the GNU Library General Public 00011 .="- .-=="i, .._ License as published by the Free Software 00012 - . .-<_> .<> Foundation; either version 2 of the License, 00013 ._= =} : or (at your option) any later version. 00014 .%`+i> _;_. 00015 .i_,=:_. -<s. This program is distributed in the hope that 00016 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00017 : .. .:, . . . without even the implied warranty of 00018 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00019 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 00020 ..}^=.= = ; Library General Public License for more 00021 ++= -. .` .: details. 00022 : = ...= . :.=- 00023 -. .:....=;==+<; You should have received a copy of the GNU 00024 -_. . . )=. = Library General Public License along with 00025 -- :-=` this library; see the file COPYING.LIB. 00026 If not, write to the Free Software Foundation, 00027 Inc., 59 Temple Place - Suite 330, 00028 Boston, MA 02111-1307, USA. 00029 */ 00030 00031 #ifndef TIMETABWIDGET_H 00032 #define TIMETABWIDGET_H 00033 00034 #include <qwidget.h> 00035 00036 class DateButton; 00037 class DateFormat; 00038 class QComboBox; 00039 class QDateTime; 00040 class QPushButton; 00041 class QSpinBox; 00042 class TimeZoneSelector; 00043 00044 class TimeTabWidget : public QWidget 00045 { 00046 Q_OBJECT 00047 00048 public: 00049 TimeTabWidget( QWidget * = 0l ); 00050 ~TimeTabWidget(); 00051 00052 void saveSettings( bool ); 00053 void setDateTime( const QDateTime & ); 00054 void setNTPBtnEnabled( bool enabled ); 00055 00056 private: 00057 QSpinBox *sbHour; 00058 QSpinBox *sbMin; 00059 QComboBox *cbAmpm; 00060 DateButton *btnDate; 00061 TimeZoneSelector *selTimeZone; 00062 QPushButton *m_ntpBtn; 00063 00064 bool use12HourTime; 00065 00066 void setSystemTime( const QDateTime & ); 00067 00068 signals: 00069 void tzChanged( const QString & ); 00070 void getNTPTime(); 00071 void getPredictedTime(); 00072 00073 public slots: 00074 void slotUse12HourTime( int ); 00075 void slotDateFormatChanged( const DateFormat & ); 00076 void slotWeekStartChanged( int ); 00077 00078 private slots: 00079 void slotTZChanged( const QString & ); 00080 }; 00081 00082 #endif
1.4.2