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