summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/waitwnd.h
Unidiff
Diffstat (limited to 'pwmanager/pwmanager/waitwnd.h') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/waitwnd.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/waitwnd.h b/pwmanager/pwmanager/waitwnd.h
new file mode 100644
index 0000000..ae86c8b
--- a/dev/null
+++ b/pwmanager/pwmanager/waitwnd.h
@@ -0,0 +1,61 @@
1/***************************************************************************
2 * *
3 * copyright (C) 2003 by Michael Buesch *
4 * email: mbuesch@freenet.de *
5 * *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License version 2 *
8 * as published by the Free Software Foundation. *
9 * *
10 ***************************************************************************/
11
12/***************************************************************************
13 * copyright (C) 2004 by Ulf Schenk
14 * This file is originaly based on version 1.0.1 of pwmanager
15 * and was modified to run on embedded devices that run microkde
16 *
17 * $Id$
18 **************************************************************************/
19
20#ifndef WAITWND_H
21#define WAITWND_H
22
23#include <qvbox.h>
24#include <qdialog.h>
25#include <qlabel.h>
26#include <qpushbutton.h>
27#include <qevent.h>
28
29/** window to ask the user to wait */
30class WaitWnd : public QDialog
31{
32 Q_OBJECT
33public:
34 WaitWnd(QString caption, QString _staticText,
35 bool showCancelButton, bool showGenericText,
36 QWidget *parent = 0, const char *name = 0,
37 bool modal = FALSE, WFlags f = 0);
38 ~WaitWnd();
39
40 void updateGenericText(const QString &text);
41
42signals:
43 void goingToClose();
44
45protected slots:
46 void cancel_slot();
47
48protected:
49 QVBox *vbox1;
50 QLabel *staticText;
51 QLabel *genericText;
52 QPushButton *cancelButton;
53 /** can we safely close the widget? */
54 bool canClose;
55
56protected:
57 void resizeEvent(QResizeEvent *);
58 void closeEvent(QCloseEvent *e);
59};
60
61#endif