add more spacing
[personal-kdebase.git] / apps / kdialog / progressdialog.h
blobbac64298fed68f77cdcdca84f6e8bac8f7e9f35a
1 //
2 // Copyright (C) 2004-2005 Stephan Binner <binner@kde.org>
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the7 implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #ifndef PROGRESSDIALOG_H
20 #define PROGRESSDIALOG_H
22 #include <kprogressdialog.h>
23 class ProgressDialog : public KProgressDialog
25 Q_OBJECT
26 Q_PROPERTY(int value READ value WRITE setValue)
27 Q_PROPERTY(int maximum READ maximum WRITE setMaximum)
28 Q_PROPERTY(bool autoClose READ autoClose WRITE setAutoClose)
30 public:
31 explicit ProgressDialog(QWidget* parent = 0,
32 const QString& caption = QString(),
33 const QString& text = QString(), int totalSteps = 100);
35 void setMaximum( int );
36 int maximum() const;
38 void setValue( int );
39 int value() const;
41 void setLabelText(const QString&);
43 void showCancelButton(bool show);
44 bool wasCancelled() const;
45 void ignoreCancel();
47 void setAutoClose( bool );
48 bool autoClose() const;
50 void close();
53 #endif // PROGRESSDIALOG_H