author | zecke <zecke> | 2003-05-07 14:45:49 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-05-07 14:45:49 (UTC) |
commit | 9602e59e3baf01465f4b4139715f2196bb01e012 (patch) (unidiff) | |
tree | 2d7f0dbf91e88de3981fcc82d49ba8ddc05cfbd5 /libopie/owait.h | |
parent | da949558a957ec4817bf610d7c9186585c0d2d92 (diff) | |
download | opie-9602e59e3baf01465f4b4139715f2196bb01e012.zip opie-9602e59e3baf01465f4b4139715f2196bb01e012.tar.gz opie-9602e59e3baf01465f4b4139715f2196bb01e012.tar.bz2 |
Add d ptr
add comments and FIXMEs
three new signals for otodoaccess
-rw-r--r-- | libopie/owait.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libopie/owait.h b/libopie/owait.h index 6217e31..cbfc8d6 100644 --- a/libopie/owait.h +++ b/libopie/owait.h | |||
@@ -1,74 +1,77 @@ | |||
1 | /* This file is part of the OPIE libraries | 1 | /* This file is part of the OPIE libraries |
2 | Copyright (C) 2003 Maximilian Reiss (harlekin@handhelds.org) | 2 | Copyright (C) 2003 Maximilian Reiss (harlekin@handhelds.org) |
3 | 3 | ||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Library General Public | 5 | modify it under the terms of the GNU Library General Public |
6 | License as published by the Free Software Foundation; either | 6 | License as published by the Free Software Foundation; either |
7 | version 2 of the License, or (at your option) any later version. | 7 | version 2 of the License, or (at your option) any later version. |
8 | 8 | ||
9 | This library is distributed in the hope that it will be useful, | 9 | This library is distributed in the hope that it will be useful, |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 | Library General Public License for more details. | 12 | Library General Public License for more details. |
13 | 13 | ||
14 | You should have received a copy of the GNU Library General Public License | 14 | You should have received a copy of the GNU Library General Public License |
15 | along with this library; see the file COPYING.LIB. If not, write to | 15 | along with this library; see the file COPYING.LIB. If not, write to |
16 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 16 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
17 | Boston, MA 02111-1307, USA. | 17 | Boston, MA 02111-1307, USA. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | 20 | ||
21 | 21 | ||
22 | #ifndef WAITPOPUP_H | 22 | #ifndef WAITPOPUP_H |
23 | #define WAITPOPUP_H | 23 | #define WAITPOPUP_H |
24 | 24 | ||
25 | #include <qdialog.h> | 25 | #include <qdialog.h> |
26 | #include <qpixmap.h> | 26 | #include <qpixmap.h> |
27 | #include <qlabel.h> | 27 | #include <qlabel.h> |
28 | #include <qtimer.h> | 28 | #include <qtimer.h> |
29 | 29 | ||
30 | /** | 30 | /** |
31 | * This class displays a animated waiting icon in the middle of the screen. | 31 | * This class displays a animated waiting icon in the middle of the screen. |
32 | * | 32 | * |
33 | * @short modal hour glass dialog | 33 | * @short modal hour glass dialog |
34 | * @see QDialog | 34 | * @see QDialog |
35 | * @author Maximilian Reiß | 35 | * @author Maximilian Reiß |
36 | */ | 36 | */ |
37 | class OWait : public QDialog { | 37 | class OWait : public QDialog { |
38 | 38 | ||
39 | Q_OBJECT | 39 | Q_OBJECT |
40 | 40 | ||
41 | public: | 41 | public: |
42 | // FIXME Wflags -zecke? | ||
42 | OWait(QWidget *parent=0,const char* name=0, bool dispIcon=TRUE); | 43 | OWait(QWidget *parent=0,const char* name=0, bool dispIcon=TRUE); |
43 | ~OWait(); | 44 | ~OWait(); |
44 | 45 | ||
45 | /** | 46 | /** |
46 | * reimplemented for control reasons | 47 | * reimplemented for control reasons |
47 | */ | 48 | */ |
48 | void show(); | 49 | void show(); |
49 | 50 | ||
50 | /** | 51 | /** |
51 | * Set the time before the icon will be automaticly hidden | 52 | * Set the time before the icon will be automaticly hidden |
52 | * The timer will be started once the widget will be shown. | 53 | * The timer will be started once the widget will be shown. |
53 | * @param length - time in seconds | 54 | * @param length - time in seconds |
54 | */ | 55 | */ |
55 | void setTimerLength( int length ); | 56 | void setTimerLength( int length ); |
56 | 57 | ||
57 | public slots: | 58 | public slots: |
58 | /** | 59 | /** |
59 | * reimplemented for control reasons | 60 | * reimplemented for control reasons |
60 | */ | 61 | */ |
61 | void hide(); | 62 | void hide(); |
62 | 63 | ||
63 | private: | 64 | private: |
64 | void timerEvent( QTimerEvent * ) ; | 65 | void timerEvent( QTimerEvent * ) ; |
65 | void paintEvent( QPaintEvent * ); | 66 | void paintEvent( QPaintEvent * ); |
66 | 67 | ||
67 | QPixmap m_pix; | 68 | QPixmap m_pix; |
68 | QLabel *m_lb; | 69 | QLabel *m_lb; |
69 | QTimer *m_waitTimer; | 70 | QTimer *m_waitTimer; |
70 | int m_timerLength; | 71 | int m_timerLength; |
71 | int m_aniSize; | 72 | int m_aniSize; |
73 | class Private; | ||
74 | Private *d; | ||
72 | }; | 75 | }; |
73 | 76 | ||
74 | #endif | 77 | #endif |