summaryrefslogtreecommitdiffabout
path: root/microkde/kdialog.h
Side-by-side diff
Diffstat (limited to 'microkde/kdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kdialog.h20
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
@@ -2,6 +2,9 @@
#define MINIKDE_KDIALOG_H
#include <qdialog.h>
+class QLabel;
+class QProgressBar;
+class QPushButton ;
class KDialog : public QDialog
{
@@ -14,5 +17,22 @@ class KDialog : public QDialog
static int spacingHintSmall();
static int marginHintSmall();
};
+class KProgressDialog : public QDialog
+{
+ Q_OBJECT
+ public:
+ KProgressDialog( QWidget *parent=0, const char *name=0, bool modal=false );
+ void setLabelText ( const QString & );
+ void setTotalSteps ( int totalSteps );
+ void setProgress ( int progress );
+ void accept();
+ void reject();
+ private:
+ QLabel * mLabel;
+ QProgressBar *mBar;
+ QPushButton *mButton;
+ signals:
+ void cancelled ();
+};
#endif