author | zautrix <zautrix> | 2005-07-09 01:22:50 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-09 01:22:50 (UTC) |
commit | 3c756588a4f650fc6f2e5971d56d56b74d67bfda (patch) (unidiff) | |
tree | 8c62bc77c8248520ff3f0ecf508ab47550a1de74 /microkde/kdialog.h | |
parent | 1e11d41ecb6a912c4c0a2747eb1fa26626fdcca2 (diff) | |
download | kdepimpi-3c756588a4f650fc6f2e5971d56d56b74d67bfda.zip kdepimpi-3c756588a4f650fc6f2e5971d56d56b74d67bfda.tar.gz kdepimpi-3c756588a4f650fc6f2e5971d56d56b74d67bfda.tar.bz2 |
comp fixes
-rw-r--r-- | microkde/kdialog.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/microkde/kdialog.h b/microkde/kdialog.h index 703d268..bc80689 100644 --- a/microkde/kdialog.h +++ b/microkde/kdialog.h | |||
@@ -1,18 +1,38 @@ | |||
1 | #ifndef MINIKDE_KDIALOG_H | 1 | #ifndef MINIKDE_KDIALOG_H |
2 | #define MINIKDE_KDIALOG_H | 2 | #define MINIKDE_KDIALOG_H |
3 | 3 | ||
4 | #include <qdialog.h> | 4 | #include <qdialog.h> |
5 | class QLabel; | ||
6 | class QProgressBar; | ||
7 | class QPushButton ; | ||
5 | 8 | ||
6 | class KDialog : public QDialog | 9 | class KDialog : public QDialog |
7 | { | 10 | { |
8 | Q_OBJECT | 11 | Q_OBJECT |
9 | public: | 12 | public: |
10 | KDialog( QWidget *parent=0, const char *name=0, bool modal=true ); | 13 | KDialog( QWidget *parent=0, const char *name=0, bool modal=true ); |
11 | 14 | ||
12 | static int spacingHint(); | 15 | static int spacingHint(); |
13 | static int marginHint(); | 16 | static int marginHint(); |
14 | static int spacingHintSmall(); | 17 | static int spacingHintSmall(); |
15 | static int marginHintSmall(); | 18 | static int marginHintSmall(); |
16 | }; | 19 | }; |
20 | class KProgressDialog : public QDialog | ||
21 | { | ||
22 | Q_OBJECT | ||
23 | public: | ||
24 | KProgressDialog( QWidget *parent=0, const char *name=0, bool modal=false ); | ||
25 | void setLabelText ( const QString & ); | ||
26 | void setTotalSteps ( int totalSteps ); | ||
27 | void setProgress ( int progress ); | ||
28 | void accept(); | ||
29 | void reject(); | ||
30 | private: | ||
31 | QLabel * mLabel; | ||
32 | QProgressBar *mBar; | ||
33 | QPushButton *mButton; | ||
34 | signals: | ||
35 | void cancelled (); | ||
36 | }; | ||
17 | 37 | ||
18 | #endif | 38 | #endif |