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

KDEUI

  • sources
  • kde-4.14
  • kdelibs
  • kdeui
  • dialogs
kprogressdialog.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 1996 Martynas Kunigelis // krazy:exclude=copyright (email unknown)
3  Copyright (C) 2006-2007 Urs Wolfer <uwolfer at kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KPROGRESSDIALOG_H
21 #define KPROGRESSDIALOG_H
22 
23 #include <QtGui/QProgressBar>
24 
25 #include <kdialog.h>
26 
47 class KDEUI_EXPORT KProgressDialog : public KDialog
48 {
49  Q_OBJECT
50 
51  public:
60  explicit KProgressDialog(QWidget* parent = 0, const QString& caption = QString(),
61  const QString& text = QString(), Qt::WindowFlags flags = 0);
62 
66  ~KProgressDialog();
67 
73  QProgressBar *progressBar();
74 
80  const QProgressBar *progressBar() const;
81 
87  void setLabelText(const QString &text);
88 
92  QString labelText() const;
93 
105  void setAllowCancel(bool allowCancel);
106 
110  bool allowCancel() const;
111 
120  void showCancelButton(bool show);
121 
128  void setAutoClose(bool close);
129 
134  bool autoClose() const;
135 
143  void setAutoReset(bool autoReset);
144 
149  bool autoReset() const;
150 
156  bool wasCancelled() const;
157 
163  void ignoreCancel();
164 
168  void setButtonText(const QString &text);
169 
173  QString buttonText() const;
174 
186  void setMinimumDuration(int ms);
187 
192  int minimumDuration() const;
193 
194  virtual void reject();
195 
196  protected:
197  virtual void showEvent(QShowEvent *event);
198 
199  private:
200  Q_PRIVATE_SLOT(d, void slotAutoShow())
201  Q_PRIVATE_SLOT(d, void slotAutoActions(int percentage))
202 
203  private:
204  class KProgressDialogPrivate;
205  friend class KProgressDialogPrivate;
206  KProgressDialogPrivate *const d;
207 
208  Q_DISABLE_COPY(KProgressDialog)
209 };
210 
211 #endif
kdialog.h
caption
QString caption()
QProgressBar
QWidget
QDialog::reject
virtual void reject()
KDialog
A dialog base class with standard buttons and predefined layouts.
Definition: kdialog.h:128
KDialog::buttonText
QString buttonText(ButtonCode id) const
Returns the text of any button.
Definition: kdialog.cpp:733
QShowEvent
QString
KProgressDialog
A dialog with a progress bar.
Definition: kprogressdialog.h:47
QDialog::showEvent
virtual void showEvent(QShowEvent *event)
Qt::WindowFlags
typedef WindowFlags
KDialog::setButtonText
void setButtonText(ButtonCode id, const QString &text)
Sets the text of any button.
Definition: kdialog.cpp:719
KStandardAction::close
KAction * close(const QObject *recvr, const char *slot, QObject *parent)
Close the current document.
Definition: kstandardaction.cpp:269
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • 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

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal