KProgressDialog Class Reference
KProgressDialog provides a dialog with a text label, a progress bar and an optional cancel button with a KDE look 'n feel.A dialog with a progress bar. More...
#include <kprogress.h>
Inheritance diagram for KProgressDialog:


Public Member Functions | |
KProgressDialog (QWidget *parent=0, const char *name=0, const QString &caption=QString::null, const QString &text=QString::null, bool modal=false) | |
~KProgressDialog () | |
KProgress * | progressBar () |
const KProgress * | progressBar () const |
void | setLabel (const QString &text) |
QString | labelText () KDE_DEPRECATED |
QString | labelText () const |
void | setAllowCancel (bool allowCancel) |
bool | allowCancel () KDE_DEPRECATED |
bool | allowCancel () const |
void | showCancelButton (bool show) |
void | setAutoClose (bool close) |
bool | autoClose () |
bool | autoClose () const |
void | setAutoReset (bool autoReset) |
bool | autoReset () |
bool | autoReset () const |
bool | wasCancelled () |
bool | wasCancelled () const |
void | setButtonText (const QString &) |
QString | buttonText () KDE_DEPRECATED |
QString | buttonText () const |
void | setMinimumDuration (int ms) |
int | minimumDuration () KDE_DEPRECATED |
int | minimumDuration () const |
Protected Slots | |
void | slotAutoShow () |
void | slotAutoActions (int percentage) |
void | slotCancel () |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
KProgressDialog provides a dialog with a text label, a progress bar and an optional cancel button with a KDE look 'n feel.A dialog with a progress bar.Since knowing how long it can take to complete an action and it is undesirable to show a dialog for a split second before hiding it, there are a few ways to control the timing behavior of KProgressDialog. There is a time out that can be set before showing the dialog as well as an option to autohide or keep displaying the dialog once complete.
All the functionality of KProgress is available through direct access to the progress bar widget via progressBar();
- Author:
- Aaron J. Seigo
Definition at line 187 of file kprogress.h.
Constructor & Destructor Documentation
|
Constructs a KProgressDialog.
Definition at line 169 of file kprogress.cpp. References KDialogBase::actionButton(), KDialogBase::mainWidget(), KDialogBase::plainPage(), KWin::setIcons(), KDialogBase::showButton(), slotAutoActions(), slotAutoShow(), QTimer::start(), and QPushButton::text(). |
|
Destructor.
Definition at line 205 of file kprogress.cpp. |
Member Function Documentation
|
Returns the KProgress used in this dialog. To set the number of steps or other progress bar related settings, access the KProgress object directly via this method. Definition at line 279 of file kprogress.cpp. |
|
Returns the KProgress used in this dialog. To set the number of steps or other progress bar related settings, access the KProgress object directly via this method. Definition at line 284 of file kprogress.cpp. |
|
Sets the text in the dialog.
Definition at line 289 of file kprogress.cpp. References QLabel::setText(). |
|
Returns the current dialog text.
Definition at line 295 of file kprogress.cpp. References QLabel::text(). |
|
Returns the current dialog text.
Definition at line 300 of file kprogress.cpp. References QLabel::text(). |
|
Sets whether or not the user can cancel the process. If the dialog is cancellable, the Cancel button will be shown and the user can close the window using the window decorations. If the process is not (or should not be) interuptable, set the dialog to be modal and not cancellable.
Definition at line 262 of file kprogress.cpp. References showCancelButton(). Referenced by slotAutoActions(). |
|
Returns true if the dialog can be canceled, false otherwise.
Definition at line 269 of file kprogress.cpp. |
|
Returns true if the dialog can be canceled, false otherwise.
Definition at line 274 of file kprogress.cpp. |
|
Sets whether the cancel button is visible. setAllowCancel(false) implies showCancelButton(false)
Definition at line 305 of file kprogress.cpp. References KDialogBase::showButtonCancel(). Referenced by setAllowCancel(). |
|
Sets whether the dialog should close automagically when all the steps in the KProgress have been completed.
Definition at line 321 of file kprogress.cpp. |
|
Returns true if the dialog will close upon completion, or false otherwise.
Definition at line 311 of file kprogress.cpp. |
|
Returns true if the dialog will close upon completion, or false otherwise.
Definition at line 316 of file kprogress.cpp. |
|
Sets whether the dialog should reset the KProgress dialog back to 0 steps compelete when all steps have been completed. This is useful for KProgressDialogs that will be reused. Definition at line 337 of file kprogress.cpp. |
|
Returns true if the KProgress widget will be reset upon completion, or false otherwise.
Definition at line 327 of file kprogress.cpp. |
|
Returns true if the KProgress widget will be reset upon completion, or false otherwise.
Definition at line 332 of file kprogress.cpp. |
|
Returns true if the dialog was closed or canceled before completion. If the dialog is not cancellable it will always return false. Definition at line 232 of file kprogress.cpp. |
|
Returns true if the dialog was closed or canceled before completion. If the dialog is not cancellable it will always return false. Definition at line 237 of file kprogress.cpp. |
|
Sets the text to appear on the cancel button.
Definition at line 342 of file kprogress.cpp. References KDialogBase::setButtonCancel(). |
|
Returns the text on the cancel button.
Definition at line 349 of file kprogress.cpp. |
|
Returns the text on the cancel button.
Definition at line 354 of file kprogress.cpp. |
|
Set the minimum number of milliseconds to wait before actually showing the dialog.
Definition at line 242 of file kprogress.cpp. References QTimer::start(), and QTimer::stop(). |
|
Returns the wait duration in milliseconds.
Definition at line 252 of file kprogress.cpp. |
|
Returns the wait duration in milliseconds.
Definition at line 257 of file kprogress.cpp. |
|
Activated when the Cancel button has been clicked. The QDialog::reject() is activated in regular mode and QDialog::done( Cancel ) when in message box mode. Reimplemented from KDialogBase. Definition at line 222 of file kprogress.cpp. References KDialogBase::slotCancel(). |
The documentation for this class was generated from the following files: