• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • 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 
00045 class KDEUI_EXPORT KProgressDialog : public KDialog
00046 {
00047     Q_OBJECT
00048 
00049     public:
00058         explicit KProgressDialog(QWidget* parent = 0, const QString& caption = QString(),
00059                                  const QString& text = QString(), Qt::WFlags flags = 0);
00060 
00064         ~KProgressDialog();
00065 
00071         QProgressBar *progressBar();
00072 
00078         const QProgressBar *progressBar() const;
00079 
00085         void setLabelText(const QString &text);
00086 
00090         QString labelText() const;
00091 
00103         void setAllowCancel(bool allowCancel);
00104 
00108         bool allowCancel() const;
00109 
00118         void showCancelButton(bool show);
00119 
00126         void setAutoClose(bool close);
00127 
00132         bool autoClose() const;
00133 
00141         void setAutoReset(bool autoReset);
00142 
00147         bool autoReset() const;
00148 
00154         bool wasCancelled() const;
00155 
00161         void ignoreCancel();
00162 
00166         void setButtonText(const QString &text);
00167 
00171         QString buttonText() const;
00172 
00177         void setMinimumDuration(int ms);
00178 
00182         int minimumDuration() const;
00183 
00184         virtual void reject();
00185 
00186     protected:
00187         virtual void showEvent(QShowEvent *event);
00188 
00189     private:
00190         Q_PRIVATE_SLOT(d, void slotAutoShow())
00191         Q_PRIVATE_SLOT(d, void slotAutoActions(int percentage))
00192 
00193     private:
00194         class KProgressDialogPrivate;
00195         friend class KProgressDialogPrivate;
00196         KProgressDialogPrivate *const d;
00197 
00198         Q_DISABLE_COPY(KProgressDialog)
00199 };
00200 
00201 #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
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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