• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDEUI

kprogressdialog.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 1996 Martynas Kunigelis // krazy:exclude=copyright (email unknown)
00003    Copyright (C) 2006-2007 Urs Wolfer <uwolfer at kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License version 2 as published by the Free Software Foundation.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef KPROGRESSDIALOG_H
00021 #define KPROGRESSDIALOG_H
00022 
00023 #include <QtGui/QProgressBar>
00024 
00025 #include <kdialog.h>
00026 
00047 class KDEUI_EXPORT KProgressDialog : public KDialog
00048 {
00049     Q_OBJECT
00050 
00051     public:
00060         explicit KProgressDialog(QWidget* parent = 0, const QString& caption = QString(),
00061                                  const QString& text = QString(), Qt::WFlags flags = 0);
00062 
00066         ~KProgressDialog();
00067 
00073         QProgressBar *progressBar();
00074 
00080         const QProgressBar *progressBar() const;
00081 
00087         void setLabelText(const QString &text);
00088 
00092         QString labelText() const;
00093 
00105         void setAllowCancel(bool allowCancel);
00106 
00110         bool allowCancel() const;
00111 
00120         void showCancelButton(bool show);
00121 
00128         void setAutoClose(bool close);
00129 
00134         bool autoClose() const;
00135 
00143         void setAutoReset(bool autoReset);
00144 
00149         bool autoReset() const;
00150 
00156         bool wasCancelled() const;
00157 
00163         void ignoreCancel();
00164 
00168         void setButtonText(const QString &text);
00169 
00173         QString buttonText() const;
00174 
00186         void setMinimumDuration(int ms);
00187 
00192         int minimumDuration() const;
00193 
00194         virtual void reject();
00195 
00196     protected:
00197         virtual void showEvent(QShowEvent *event);
00198 
00199     private:
00200         Q_PRIVATE_SLOT(d, void slotAutoShow())
00201         Q_PRIVATE_SLOT(d, void slotAutoActions(int percentage))
00202 
00203     private:
00204         class KProgressDialogPrivate;
00205         friend class KProgressDialogPrivate;
00206         KProgressDialogPrivate *const d;
00207 
00208         Q_DISABLE_COPY(KProgressDialog)
00209 };
00210 
00211 #endif

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal