summaryrefslogtreecommitdiffabout
path: root/microkde/kdialog.h
blob: bc806890a574d749833aac985fad84d86e81eaaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef MINIKDE_KDIALOG_H
#define MINIKDE_KDIALOG_H

#include <qdialog.h>
class QLabel;
class QProgressBar;
class QPushButton ;

class KDialog : public QDialog
{ 
    Q_OBJECT
  public:
    KDialog( QWidget *parent=0, const char *name=0, bool modal=true );

    static int spacingHint();
    static int marginHint();
    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