summaryrefslogtreecommitdiff
path: root/libopie2/opieui
Unidiff
Diffstat (limited to 'libopie2/opieui') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opieui/config.in2
-rw-r--r--libopie2/opieui/otimepicker.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/libopie2/opieui/config.in b/libopie2/opieui/config.in
index d40b5d9..9d157a5 100644
--- a/libopie2/opieui/config.in
+++ b/libopie2/opieui/config.in
@@ -1,7 +1,7 @@
1 config LIBOPIE2UI 1 config LIBOPIE2UI
2 boolean "libopie2ui (user interface related classes)" 2 boolean "libopie2ui (user interface related classes)"
3 default "n" 3 default "y"
4 depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE 4 depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE
5 comment "libopie2ui needs a libqpe and libopie2core" 5 comment "libopie2ui needs a libqpe and libopie2core"
6 depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE) 6 depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE)
7 7
diff --git a/libopie2/opieui/otimepicker.h b/libopie2/opieui/otimepicker.h
index fb20781..894fbef 100644
--- a/libopie2/opieui/otimepicker.h
+++ b/libopie2/opieui/otimepicker.h
@@ -1,129 +1,129 @@
1/* 1/*
2 This file is part of the Opie Project 2 This file is part of the Opie Project
3 Copyright (C) Stefan Eilers <eilers.stefan@epost.de> 3 Copyright (C) Stefan Eilers <eilers.stefan@epost.de>
4 =. Copyright (C) The Opie Team <opie-devel@handhelds.org> 4 =. Copyright (C) The Opie Team <opie-devel@handhelds.org>
5 .=l. 5 .=l.
6           .>+-= 6           .>+-=
7 _;:,     .>    :=|. This program is free software; you can 7 _;:,     .>    :=|. This program is free software; you can
8.> <`_,   >  .   <= redistribute it and/or modify it under 8.> <`_,   >  .   <= redistribute it and/or modify it under
9:`=1 )Y*s>-.--   : the terms of the GNU Library General Public 9:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
10.="- .-=="i,     .._ License as published by the Free Software 10.="- .-=="i,     .._ License as published by the Free Software
11 - .   .-<_>     .<> Foundation; either version 2 of the License, 11 - .   .-<_>     .<> Foundation; either version 2 of the License,
12     ._= =}       : or (at your option) any later version. 12     ._= =}       : or (at your option) any later version.
13    .%`+i>       _;_. 13    .%`+i>       _;_.
14    .i_,=:_.      -<s. This program is distributed in the hope that 14    .i_,=:_.      -<s. This program is distributed in the hope that
15     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 15     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
16    : ..    .:,     . . . without even the implied warranty of 16    : ..    .:,     . . . without even the implied warranty of
17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
19..}^=.=       =       ; Library General Public License for more 19..}^=.=       =       ; Library General Public License for more
20++=   -.     .`     .: details. 20++=   -.     .`     .: details.
21 :     =  ...= . :.=- 21 :     =  ...= . :.=-
22 -.   .:....=;==+<; You should have received a copy of the GNU 22 -.   .:....=;==+<; You should have received a copy of the GNU
23  -_. . .   )=.  = Library General Public License along with 23  -_. . .   )=.  = Library General Public License along with
24    --        :-=` this library; see the file COPYING.LIB. 24    --        :-=` this library; see the file COPYING.LIB.
25 If not, write to the Free Software Foundation, 25 If not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330, 26 Inc., 59 Temple Place - Suite 330,
27 Boston, MA 02111-1307, USA. 27 Boston, MA 02111-1307, USA.
28*/ 28*/
29 29
30#ifndef OTIMEPICKER_H 30#ifndef OTIMEPICKER_H
31#define OTIMEPICKER_H 31#define OTIMEPICKER_H
32 32
33/* OPIE */ 33/* OPIE */
34#include <opie2/oclickablelabel.h> 34#include "oclickablelabel.h"
35#include <opie2/otimepickerbase.h> 35#include "otimepickerbase.h"
36 36
37/* QT */ 37/* QT */
38#include <qwidget.h> 38#include <qwidget.h>
39#include <qvaluelist.h> 39#include <qvaluelist.h>
40#include <qdatetime.h> 40#include <qdatetime.h>
41#include <qdialog.h> 41#include <qdialog.h>
42 42
43 43
44namespace Opie { 44namespace Opie {
45namespace Ui { 45namespace Ui {
46 46
47/** 47/**
48 * A class to pick time. It uses clickable labels 48 * A class to pick time. It uses clickable labels
49 * internally to allow a quick selection of a time. 49 * internally to allow a quick selection of a time.
50 * A time can be selected by two clicks of a user 50 * A time can be selected by two clicks of a user
51 * 51 *
52 * @short A widget to quickly pick a QTime 52 * @short A widget to quickly pick a QTime
53 * @version 1.0 53 * @version 1.0
54 * @see QWidget 54 * @see QWidget
55 * @see QTime 55 * @see QTime
56 * @author Hakan Ardo, Stefan Eilers 56 * @author Hakan Ardo, Stefan Eilers
57 */ 57 */
58class OTimePicker : public QWidget 58class OTimePicker : public QWidget
59{ 59{
60 Q_OBJECT 60 Q_OBJECT
61 61
62public: 62public:
63 OTimePicker(QWidget* parent = 0, const char* name = 0, WFlags fl = 0); 63 OTimePicker(QWidget* parent = 0, const char* name = 0, WFlags fl = 0);
64 64
65public slots: 65public slots:
66 void setHour(int h); 66 void setHour(int h);
67 void setMinute(int m); 67 void setMinute(int m);
68 void setTime( const QTime& ); 68 void setTime( const QTime& );
69 void setTime( int h, int m ); 69 void setTime( int h, int m );
70 70
71public: 71public:
72 QTime time()const; 72 QTime time()const;
73 73
74private: 74private:
75 QValueList<OClickableLabel *> hourLst; 75 QValueList<OClickableLabel *> hourLst;
76 QValueList<OClickableLabel *> minuteLst; 76 QValueList<OClickableLabel *> minuteLst;
77 QTime tm; 77 QTime tm;
78 struct Private; 78 struct Private;
79 Private *d; 79 Private *d;
80 80
81private slots: 81private slots:
82 void slotHour(bool b); 82 void slotHour(bool b);
83 void slotMinute(bool b); 83 void slotMinute(bool b);
84 84
85signals: 85signals:
86 /** 86 /**
87 * gets emitted when the time got changed by the user 87 * gets emitted when the time got changed by the user
88 */ 88 */
89 void timeChanged(const QTime &); 89 void timeChanged(const QTime &);
90}; 90};
91 91
92/** 92/**
93 * 93 *
94 * @short A small dialog to pick a time 94 * @short A small dialog to pick a time
95 * @version 1.0 95 * @version 1.0
96 * @author Stefan Eilers 96 * @author Stefan Eilers
97 * 97 *
98 **/ 98 **/
99 99
100class OTimePickerDialog: public OTimePickerDialogBase 100class OTimePickerDialog: public OTimePickerDialogBase
101{ 101{
102 Q_OBJECT 102 Q_OBJECT
103 103
104public: 104public:
105 OTimePickerDialog ( QWidget* parent = 0, const char* name = NULL, WFlags fl = 0 ); 105 OTimePickerDialog ( QWidget* parent = 0, const char* name = NULL, WFlags fl = 0 );
106 ~OTimePickerDialog() { }; 106 ~OTimePickerDialog() { };
107 107
108 QTime time()const; 108 QTime time()const;
109 109
110public slots: 110public slots:
111 void setTime( const QTime& time ); 111 void setTime( const QTime& time );
112 void setHour( const QString& hour ); 112 void setHour( const QString& hour );
113 void setMinute( const QString& minute ); 113 void setMinute( const QString& minute );
114 114
115private: 115private:
116 OTimePicker *m_timePicker; 116 OTimePicker *m_timePicker;
117 QTime m_time; 117 QTime m_time;
118 class Private; 118 class Private;
119 Private* d; 119 Private* d;
120}; 120};
121 121
122} 122}
123} 123}
124 124
125/* for Qt2 */ 125/* for Qt2 */
126#if ( QT_VERSION-0 >= 0x030000 ) 126#if ( QT_VERSION-0 >= 0x030000 )
127#error "Fix the UI File to use namespaces" 127#error "Fix the UI File to use namespaces"
128#endif 128#endif
129#endif 129#endif