summaryrefslogtreecommitdiffabout
path: root/microkde/kdialog.h
blob: 5f9bf0ed0b8d4a9ca3bc6e4d516894058d5f3ba1 (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
39
40
#ifndef MINIKDE_KDIALOG_H
#define MINIKDE_KDIALOG_H

#include <qdialog.h>
//Added by qt3to4:
#include <QLabel>
class QLabel;
class Q3ProgressBar;
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;
    Q3ProgressBar *mBar;
    QPushButton *mButton;
 signals:
    void cancelled (); 
};

#endif