Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2169

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QProgressDialog" doc="/**
&lt;p&gt;The &lt;a href=&quot;QProgressDialog.html#QProgressDialog(java.lang.String, java.lang.String, int, int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QProgressDialog&lt;/tt&gt;&lt;/a&gt; class provides feedback on the progress of a slow operation.&lt;/p&gt;
&lt;p&gt;A progress dialog is used to give the user an indication of how long an operation is going to take, and to demonstrate that the application has not frozen. It can also give the user an opportunity to abort the operation.&lt;/p&gt;
&lt;p&gt;A common problem with progress dialogs is that it is difficult to know when to use them; operations take different amounts of time on different hardware. &lt;a href=&quot;QProgressDialog.html#QProgressDialog(java.lang.String, java.lang.String, int, int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QProgressDialog&lt;/tt&gt;&lt;/a&gt; offers a solution to this problem: it estimates the time the operation will take (based on time for steps), and only shows itself if that estimate is beyond &lt;a href=&quot;QProgressDialog.html#minimumDuration()&quot;&gt;&lt;tt&gt;minimumDuration&lt;/tt&gt;&lt;/a&gt; (4 seconds by default).&lt;/p&gt;
&lt;p&gt;Use &lt;a href=&quot;QProgressDialog.html#setMinimum(int)&quot;&gt;&lt;tt&gt;setMinimum&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QProgressDialog.html#setMaximum(int)&quot;&gt;&lt;tt&gt;setMaximum&lt;/tt&gt;&lt;/a&gt; or the constructor to set the number of &amp;quot;steps&amp;quot; in the operation and call &lt;a href=&quot;QProgressDialog.html#setValue(int)&quot;&gt;&lt;tt&gt;setValue&lt;/tt&gt;&lt;/a&gt; as the operation progresses. The number of steps can be chosen arbitrarily. It can be the number of files copied, the number of bytes received, the number of iterations through the main loop of your algorithm, or some other suitable unit. Progress starts at the value set by &lt;a href=&quot;QProgressDialog.html#setMinimum(int)&quot;&gt;&lt;tt&gt;setMinimum&lt;/tt&gt;&lt;/a&gt;, and the progress dialog shows that the operation has finished when you call &lt;a href=&quot;QProgressDialog.html#setValue(int)&quot;&gt;&lt;tt&gt;setValue&lt;/tt&gt;&lt;/a&gt; with the value set by &lt;a href=&quot;QProgressDialog.html#setMaximum(int)&quot;&gt;&lt;tt&gt;setMaximum&lt;/tt&gt;&lt;/a&gt; as its argument.&lt;/p&gt;
&lt;p&gt;The dialog automatically resets and hides itself at the end of the operation. Use &lt;a href=&quot;QProgressDialog.html#setAutoReset(boolean)&quot;&gt;&lt;tt&gt;setAutoReset&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QProgressDialog.html#setAutoClose(boolean)&quot;&gt;&lt;tt&gt;setAutoClose&lt;/tt&gt;&lt;/a&gt; to change this behavior.&lt;/p&gt;
&lt;p&gt;There are two ways of using &lt;a href=&quot;QProgressDialog.html#QProgressDialog(java.lang.String, java.lang.String, int, int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QProgressDialog&lt;/tt&gt;&lt;/a&gt;: modal and modeless.&lt;/p&gt;
&lt;p&gt;Compared to a modeless &lt;a href=&quot;QProgressDialog.html#QProgressDialog(java.lang.String, java.lang.String, int, int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QProgressDialog&lt;/tt&gt;&lt;/a&gt;, a modal &lt;a href=&quot;QProgressDialog.html#QProgressDialog(java.lang.String, java.lang.String, int, int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QProgressDialog&lt;/tt&gt;&lt;/a&gt; is simpler to use for the programmer. Do the operation in a loop, call &lt;a href=&quot;QProgressDialog.html#setValue(int)&quot;&gt;&lt;tt&gt;setValue&lt;/tt&gt;&lt;/a&gt; at intervals, and check for cancellation with &lt;a href=&quot;QProgressDialog.html#wasCanceled()&quot;&gt;&lt;tt&gt;wasCanceled&lt;/tt&gt;&lt;/a&gt;. For example:&lt;/p&gt;
&lt;pre&gt;        QProgressDialog progress(&amp;quot;Copying files...&amp;quot;, &amp;quot;Abort Copy&amp;quot;, 0, numFiles, this);
        progress.setWindowModality(Qt::WindowModal);

        for (int i = 0; i &amp;lt; numFiles; i++) {
            progress.setValue(i);

            if (progress.wasCanceled())
                break;
            &lt;span class=&quot;comment&quot;&gt;//... copy one file&lt;/span&gt;
        }
        progress.setValue(numFiles);&lt;/pre&gt;
&lt;p&gt;A modeless progress dialog is suitable for operations that take place in the background, where the user is able to interact with the application. Such operations are typically based on &lt;a href=&quot;%2E%2E/core/QTimer.html&quot;&gt;&lt;tt&gt;QTimer&lt;/tt&gt;&lt;/a&gt; (or QObject::timerEvent()), &lt;a href=&quot;%2E%2E/core/QSocketNotifier.html&quot;&gt;&lt;tt&gt;QSocketNotifier&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;%2E%2E/porting4.html#qurloperator&quot;&gt;&lt;tt&gt;QUrlOperator&lt;/tt&gt;&lt;/a&gt;; or performed in a separate thread. A &lt;a href=&quot;QProgressBar.html&quot;&gt;&lt;tt&gt;QProgressBar&lt;/tt&gt;&lt;/a&gt; in the status bar of your main window is often an alternative to a modeless progress dialog.&lt;/p&gt;
&lt;p&gt;You need to have an event loop to be running, connect the &lt;a href=&quot;QProgressDialog.html#canceled()&quot;&gt;&lt;tt&gt;canceled&lt;/tt&gt;&lt;/a&gt; signal to a slot that stops the operation, and call &lt;a href=&quot;QProgressDialog.html#setValue(int)&quot;&gt;&lt;tt&gt;setValue&lt;/tt&gt;&lt;/a&gt; at intervals. For example:&lt;/p&gt;
&lt;pre&gt;&lt;span class=&quot;comment&quot;&gt;    // Operation constructor&lt;/span&gt;
    Operation::Operation(QObject *parent)
        : QObject(parent), steps(0)
    {
        pd = new QProgressDialog(&amp;quot;Operation in progress.&amp;quot;, &amp;quot;Cancel&amp;quot;, 0, 100);
        connect(pd, SIGNAL(canceled()), this, SLOT(cancel()));
        t = new QTimer(this);
        connect(t, SIGNAL(timeout()), this, SLOT(perform()));
        t-&amp;gt;start(0);
    }

    void Operation::perform()
    {
        pd-&amp;gt;setValue(steps);
        &lt;span class=&quot;comment&quot;&gt;//... perform one percent of the operation&lt;/span&gt;
        steps++;
        if (steps &amp;gt; pd-&amp;gt;maximum())
            t-&amp;gt;stop();
    }

    void Operation::cancel()
    {
        t-&amp;gt;stop();
        &lt;span class=&quot;comment&quot;&gt;//... cleanup&lt;/span&gt;
    }&lt;/pre&gt;
&lt;p&gt;In both modes the progress dialog may be customized by replacing the child widgets with custom widgets by using &lt;a href=&quot;QProgressDialog.html#setLabel(com.trolltech.qt.gui.QLabel)&quot;&gt;&lt;tt&gt;setLabel&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QProgressDialog.html#setBar(com.trolltech.qt.gui.QProgressBar)&quot;&gt;&lt;tt&gt;setBar&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QProgressDialog.html#setCancelButton(com.trolltech.qt.gui.QPushButton)&quot;&gt;&lt;tt&gt;setCancelButton&lt;/tt&gt;&lt;/a&gt;. The functions &lt;a href=&quot;QProgressDialog.html#setLabelText(java.lang.String)&quot;&gt;&lt;tt&gt;setLabelText&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QProgressDialog.html#setCancelButtonText(java.lang.String)&quot;&gt;&lt;tt&gt;setCancelButtonText&lt;/tt&gt;&lt;/a&gt; set the texts shown.&lt;/p&gt;
&lt;p&gt;The Standard Dialogs&lt;/tt&gt; example shows how to use &lt;a href=&quot;QProgressDialog.html#QProgressDialog(java.lang.String, java.lang.String, int, int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QProgressDialog&lt;/tt&gt;&lt;/a&gt; as well as other built-in Qt dialogs.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/plastique-progressdialog.png&quot; alt=&quot;A progress dialog shown in the Plastique widget style.&quot; /&gt;&lt;/p&gt;
@see &lt;a href=&quot;QDialog.html#QDialog(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QDialog&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressBar.html&quot;&gt;&lt;tt&gt;QProgressBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/guibooks.html#fowler&quot;&gt;GUI Design Handbook: Progress Indicator&lt;/tt&gt;&lt;/a&gt;
@see Find Files Example&lt;/tt&gt;
@see Pixelator Example&lt;/tt&gt; */">
    <signal name="protected final void accepted()" doc="/**
&lt;p&gt;This signal is emitted when the dialog has been accepted either by the user or by calling &lt;a href=&quot;QDialog.html#accept()&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDialog.html#done(int)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt; with the QDialog::Accepted argument.&lt;/p&gt;
&lt;p&gt;Note that this signal is &lt;i&gt;not&lt;/i&gt; emitted when hiding the dialog with &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDialog.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false). This includes deleting the dialog while it is visible.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QProgressDialog.html#finished(int)&quot;&gt;&lt;tt&gt;finished&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QProgressDialog.html#rejected()&quot;&gt;&lt;tt&gt;rejected&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void canceled()" doc="/**
&lt;p&gt;This signal is emitted when the cancel button is clicked. It is connected to the &lt;a href=&quot;QProgressDialog.html#cancel()&quot;&gt;&lt;tt&gt;cancel&lt;/tt&gt;&lt;/a&gt; slot by default.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QProgressDialog.html#wasCanceled()&quot;&gt;&lt;tt&gt;wasCanceled&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This signal is emitted when the widget's &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position &lt;tt&gt;pos&lt;/tt&gt; is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is &lt;a href=&quot;QAbstractScrollArea.html&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; and its subclasses that map the context menu event to coordinates of the viewport()&lt;/tt&gt; .&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QPoint pos)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void finished(int result)" doc="/**
&lt;p&gt;This signal is emitted when the dialog's &lt;tt&gt;result&lt;/tt&gt; code has been set, either by the user or by calling &lt;a href=&quot;QDialog.html#done(int)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDialog.html#accept()&quot;&gt;&lt;tt&gt;accept&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QDialog.html#reject()&quot;&gt;&lt;tt&gt;reject&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Note that this signal is &lt;i&gt;not&lt;/i&gt; emitted when hiding the dialog with &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDialog.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false). This includes deleting the dialog while it is visible.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int result)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QProgressDialog.html#accepted()&quot;&gt;&lt;tt&gt;accepted&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QProgressDialog.html#rejected()&quot;&gt;&lt;tt&gt;rejected&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void rejected()" doc="/**
&lt;p&gt;This signal is emitted when the dialog has been rejected either by the user or by calling &lt;a href=&quot;QDialog.html#reject()&quot;&gt;&lt;tt&gt;reject&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDialog.html#done(int)&quot;&gt;&lt;tt&gt;done&lt;/tt&gt;&lt;/a&gt; with the QDialog::Rejected argument.&lt;/p&gt;
&lt;p&gt;Note that this signal is &lt;i&gt;not&lt;/i&gt; emitted when hiding the dialog with &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QDialog.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false). This includes deleting the dialog while it is visible.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QProgressDialog.html#finished(int)&quot;&gt;&lt;tt&gt;finished&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QProgressDialog.html#accepted()&quot;&gt;&lt;tt&gt;accepted&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QProgressDialog(com.trolltech.qt.gui.QWidget parent, com.trolltech.qt.core.Qt.WindowFlags f)" doc="/**
&lt;p&gt;Constructs a progress dialog.&lt;/p&gt;
&lt;p&gt;Default settings:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The label text is empty.&lt;/li&gt;
&lt;li&gt;The cancel button text is (translated) &amp;quot;Cancel&amp;quot;.&lt;/li&gt;
&lt;li&gt;minimum is 0;&lt;/li&gt;
&lt;li&gt;maximum is 100&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;tt&gt;parent&lt;/tt&gt; argument is dialog's parent widget. The widget flags, &lt;tt&gt;f&lt;/tt&gt;, are passed to the QDialog::QDialog() constructor.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#setLabelText(java.lang.String)&quot;&gt;&lt;tt&gt;setLabelText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setCancelButtonText(java.lang.String)&quot;&gt;&lt;tt&gt;setCancelButtonText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setCancelButton(com.trolltech.qt.gui.QPushButton)&quot;&gt;&lt;tt&gt;setCancelButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setMinimum(int)&quot;&gt;&lt;tt&gt;setMinimum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setMaximum(int)&quot;&gt;&lt;tt&gt;setMaximum&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QProgressDialog(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QProgressDialog.html#QProgressDialog(java.lang.String, java.lang.String, int, int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QProgressDialog&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, 0). */"/>
    <method name="public QProgressDialog()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QProgressDialog.html#QProgressDialog(java.lang.String, java.lang.String, int, int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QProgressDialog&lt;/tt&gt;&lt;/a&gt;(0, 0). */"/>
    <method name="public QProgressDialog(java.lang.String labelText, java.lang.String cancelButtonText, int minimum, int maximum, com.trolltech.qt.gui.QWidget parent, com.trolltech.qt.core.Qt.WindowFlags f)" doc="/**
&lt;p&gt;Constructs a progress dialog.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;labelText&lt;/tt&gt; is the text used to remind the user what is progressing.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;cancelButtonText&lt;/tt&gt; is the text to display on the cancel button, or 0 if no cancel button is to be shown.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;minimum&lt;/tt&gt; and &lt;tt&gt;maximum&lt;/tt&gt; is the number of steps in the operation for which this progress dialog shows progress. For example, if the operation is to examine 50 files, this value minimum value would be 0, and the maximum would be 50. Before examining the first file, call &lt;a href=&quot;QProgressDialog.html#setValue(int)&quot;&gt;&lt;tt&gt;setValue&lt;/tt&gt;&lt;/a&gt;(0). As each file is processed call &lt;a href=&quot;QProgressDialog.html#setValue(int)&quot;&gt;&lt;tt&gt;setValue&lt;/tt&gt;&lt;/a&gt;(1), &lt;a href=&quot;QProgressDialog.html#setValue(int)&quot;&gt;&lt;tt&gt;setValue&lt;/tt&gt;&lt;/a&gt;(2), etc., finally calling &lt;a href=&quot;QProgressDialog.html#setValue(int)&quot;&gt;&lt;tt&gt;setValue&lt;/tt&gt;&lt;/a&gt;(50) after examining the last file.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;parent&lt;/tt&gt; argument is the dialog's parent widget. The and widget flags, &lt;tt&gt;f&lt;/tt&gt;, are passed to the QDialog::QDialog() constructor.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#setLabelText(java.lang.String)&quot;&gt;&lt;tt&gt;setLabelText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setLabel(com.trolltech.qt.gui.QLabel)&quot;&gt;&lt;tt&gt;setLabel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setCancelButtonText(java.lang.String)&quot;&gt;&lt;tt&gt;setCancelButtonText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setCancelButton(com.trolltech.qt.gui.QPushButton)&quot;&gt;&lt;tt&gt;setCancelButton&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setMinimum(int)&quot;&gt;&lt;tt&gt;setMinimum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setMaximum(int)&quot;&gt;&lt;tt&gt;setMaximum&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QProgressDialog(java.lang.String labelText, java.lang.String cancelButtonText, int minimum, int maximum, com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QProgressDialog.html#QProgressDialog(java.lang.String, java.lang.String, int, int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QProgressDialog&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;labelText&lt;/tt&gt;, &lt;tt&gt;cancelButtonText&lt;/tt&gt;, &lt;tt&gt;minimum&lt;/tt&gt;, &lt;tt&gt;maximum&lt;/tt&gt;, &lt;tt&gt;parent&lt;/tt&gt;, 0). */"/>
    <method name="public QProgressDialog(java.lang.String labelText, java.lang.String cancelButtonText, int minimum, int maximum)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QProgressDialog.html#QProgressDialog(java.lang.String, java.lang.String, int, int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QProgressDialog&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;labelText&lt;/tt&gt;, &lt;tt&gt;cancelButtonText&lt;/tt&gt;, &lt;tt&gt;minimum&lt;/tt&gt;, &lt;tt&gt;maximum&lt;/tt&gt;, 0, 0). */"/>
    <method name="public final boolean autoClose()" doc="/**
&lt;p&gt;Returns whether the dialog gets hidden by &lt;a href=&quot;QProgressDialog.html#reset()&quot;&gt;&lt;tt&gt;reset&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The default is true.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#setAutoClose(boolean)&quot;&gt;&lt;tt&gt;setAutoClose&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setAutoReset(boolean)&quot;&gt;&lt;tt&gt;setAutoReset&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean autoReset()" doc="/**
&lt;p&gt;Returns whether the progress dialog calls &lt;a href=&quot;QProgressDialog.html#reset()&quot;&gt;&lt;tt&gt;reset&lt;/tt&gt;&lt;/a&gt; as soon as progress() equals totalSteps().&lt;/p&gt;
&lt;p&gt;The default is true.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#setAutoReset(boolean)&quot;&gt;&lt;tt&gt;setAutoReset&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setAutoClose(boolean)&quot;&gt;&lt;tt&gt;setAutoClose&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void cancel()" doc="/**
&lt;p&gt;Resets the progress dialog. &lt;a href=&quot;QProgressDialog.html#wasCanceled()&quot;&gt;&lt;tt&gt;wasCanceled&lt;/tt&gt;&lt;/a&gt; becomes true until the progress dialog is reset. The progress dialog becomes hidden.&lt;/p&gt;
 */"/>
    <method name="protected final void forceShow()" doc="/**
&lt;p&gt;Shows the dialog if it is still hidden after the algorithm has been started and &lt;a href=&quot;QProgressDialog.html#minimumDuration()&quot;&gt;&lt;tt&gt;minimumDuration&lt;/tt&gt;&lt;/a&gt; milliseconds have passed.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#setMinimumDuration(int)&quot;&gt;&lt;tt&gt;setMinimumDuration&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String labelText()" doc="/**
&lt;p&gt;Returns the label's text.&lt;/p&gt;
&lt;p&gt;The default text is an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#setLabelText(java.lang.String)&quot;&gt;&lt;tt&gt;setLabelText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int maximum()" doc="/**
&lt;p&gt;Returns the highest value represented by the progress bar.&lt;/p&gt;
&lt;p&gt;The default is 0.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#setMaximum(int)&quot;&gt;&lt;tt&gt;setMaximum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#minimum()&quot;&gt;minimum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setRange(int, int)&quot;&gt;&lt;tt&gt;setRange&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int minimum()" doc="/**
&lt;p&gt;Returns the lowest value represented by the progress bar.&lt;/p&gt;
&lt;p&gt;The default is 0.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#setMinimum(int)&quot;&gt;&lt;tt&gt;setMinimum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#maximum()&quot;&gt;maximum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setRange(int, int)&quot;&gt;&lt;tt&gt;setRange&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int minimumDuration()" doc="/**
&lt;p&gt;Returns the time that must pass before the dialog appears.&lt;/p&gt;
&lt;p&gt;If the expected duration of the task is less than the &lt;a href=&quot;QProgressDialog.html#minimumDuration()&quot;&gt;&lt;tt&gt;minimumDuration&lt;/tt&gt;&lt;/a&gt;, the dialog will not appear at all. This prevents the dialog popping up for tasks that are quickly over. For tasks that are expected to exceed the &lt;a href=&quot;QProgressDialog.html#minimumDuration()&quot;&gt;&lt;tt&gt;minimumDuration&lt;/tt&gt;&lt;/a&gt;, the dialog will pop up after the &lt;a href=&quot;QProgressDialog.html#minimumDuration()&quot;&gt;&lt;tt&gt;minimumDuration&lt;/tt&gt;&lt;/a&gt; time or as soon as any progress is set.&lt;/p&gt;
&lt;p&gt;If set to 0, the dialog is always shown as soon as any progress is set. The default is 4000 milliseconds.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#setMinimumDuration(int)&quot;&gt;&lt;tt&gt;setMinimumDuration&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void reset()" doc="/**
&lt;p&gt;Resets the progress dialog. The progress dialog becomes hidden if &lt;a href=&quot;QProgressDialog.html#autoClose()&quot;&gt;&lt;tt&gt;autoClose&lt;/tt&gt;&lt;/a&gt; is true.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#setAutoClose(boolean)&quot;&gt;&lt;tt&gt;setAutoClose&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setAutoReset(boolean)&quot;&gt;&lt;tt&gt;setAutoReset&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setAutoClose(boolean b)" doc="/**
&lt;p&gt;Sets whether the dialog gets hidden by &lt;a href=&quot;QProgressDialog.html#reset()&quot;&gt;&lt;tt&gt;reset&lt;/tt&gt;&lt;/a&gt; to &lt;tt&gt;b&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default is true.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#autoClose()&quot;&gt;&lt;tt&gt;autoClose&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setAutoReset(boolean)&quot;&gt;&lt;tt&gt;setAutoReset&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setAutoReset(boolean b)" doc="/**
&lt;p&gt;Sets whether the progress dialog calls &lt;a href=&quot;QProgressDialog.html#reset()&quot;&gt;&lt;tt&gt;reset&lt;/tt&gt;&lt;/a&gt; as soon as progress() equals totalSteps() to &lt;tt&gt;b&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default is true.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#autoReset()&quot;&gt;&lt;tt&gt;autoReset&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setAutoClose(boolean)&quot;&gt;&lt;tt&gt;setAutoClose&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBar(com.trolltech.qt.gui.QProgressBar bar)" doc="/**
&lt;p&gt;Sets the progress bar widget to &lt;tt&gt;bar&lt;/tt&gt;. The progress dialog resizes to fit. The progress dialog takes ownership of the progress &lt;tt&gt;bar&lt;/tt&gt; which will be deleted when necessary, so do not use a progress bar allocated on the stack.&lt;/p&gt;
 */"/>
    <method name="public final void setCancelButton(com.trolltech.qt.gui.QPushButton button)" doc="/**
&lt;p&gt;Sets the cancel button to the push button, &lt;tt&gt;button&lt;/tt&gt;. The progress dialog takes ownership of this button which will be deleted when necessary, so do not pass the address of an object that is on the stack, i.e&amp;#x2e; use new() to create the button.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#setCancelButtonText(java.lang.String)&quot;&gt;&lt;tt&gt;setCancelButtonText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCancelButtonText(java.lang.String arg__1)" doc="/**
&lt;p&gt;Sets the cancel button's text to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#setCancelButton(com.trolltech.qt.gui.QPushButton)&quot;&gt;&lt;tt&gt;setCancelButton&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setLabel(com.trolltech.qt.gui.QLabel label)" doc="/**
&lt;p&gt;Sets the label to &lt;tt&gt;label&lt;/tt&gt;. The progress dialog resizes to fit. The label becomes owned by the progress dialog and will be deleted when necessary, so do not pass the address of an object on the stack.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#setLabelText(java.lang.String)&quot;&gt;&lt;tt&gt;setLabelText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setLabelText(java.lang.String arg__1)" doc="/**
&lt;p&gt;Sets the label's text to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default text is an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#labelText()&quot;&gt;&lt;tt&gt;labelText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMaximum(int maximum)" doc="/**
&lt;p&gt;Sets the highest value represented by the progress bar to &lt;tt&gt;maximum&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default is 0.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#maximum()&quot;&gt;&lt;tt&gt;maximum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#minimum()&quot;&gt;minimum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setRange(int, int)&quot;&gt;&lt;tt&gt;setRange&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMinimum(int minimum)" doc="/**
&lt;p&gt;Sets the lowest value represented by the progress bar to &lt;tt&gt;minimum&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default is 0.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#minimum()&quot;&gt;&lt;tt&gt;minimum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#maximum()&quot;&gt;maximum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#setRange(int, int)&quot;&gt;&lt;tt&gt;setRange&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMinimumDuration(int ms)" doc="/**
&lt;p&gt;Sets the time that must pass before the dialog appears to &lt;tt&gt;ms&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If the expected duration of the task is less than the &lt;a href=&quot;QProgressDialog.html#minimumDuration()&quot;&gt;&lt;tt&gt;minimumDuration&lt;/tt&gt;&lt;/a&gt;, the dialog will not appear at all. This prevents the dialog popping up for tasks that are quickly over. For tasks that are expected to exceed the &lt;a href=&quot;QProgressDialog.html#minimumDuration()&quot;&gt;&lt;tt&gt;minimumDuration&lt;/tt&gt;&lt;/a&gt;, the dialog will pop up after the &lt;a href=&quot;QProgressDialog.html#minimumDuration()&quot;&gt;&lt;tt&gt;minimumDuration&lt;/tt&gt;&lt;/a&gt; time or as soon as any progress is set.&lt;/p&gt;
&lt;p&gt;If set to 0, the dialog is always shown as soon as any progress is set. The default is 4000 milliseconds.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#minimumDuration()&quot;&gt;&lt;tt&gt;minimumDuration&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRange(int minimum, int maximum)" doc="/**
&lt;p&gt;Sets the progress dialog's minimum and maximum values to &lt;tt&gt;minimum&lt;/tt&gt; and &lt;tt&gt;maximum&lt;/tt&gt;, respectively.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;maximum&lt;/tt&gt; is smaller than &lt;tt&gt;minimum&lt;/tt&gt;, &lt;tt&gt;minimum&lt;/tt&gt; becomes the only legal value.&lt;/p&gt;
&lt;p&gt;If the current value falls outside the new range, the progress dialog is reset with &lt;a href=&quot;QProgressDialog.html#reset()&quot;&gt;&lt;tt&gt;reset&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#minimum()&quot;&gt;minimum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#maximum()&quot;&gt;maximum&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setValue(int progress)" doc="/**
&lt;p&gt;Sets the current amount of progress made. to &lt;tt&gt;progress&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;For the progress dialog to work as expected, you should initially set this property to 0 and finally set it to QProgressDialog::maximum(); you can call &lt;a href=&quot;QProgressDialog.html#setValue(int)&quot;&gt;&lt;tt&gt;setValue&lt;/tt&gt;&lt;/a&gt; any number of times in-between.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; If the progress dialog is modal (see QProgressDialog::QProgressDialog()), this function calls QApplication::processEvents(), so take care that this does not cause undesirable re-entrancy in your code. For example, don't use a &lt;a href=&quot;QProgressDialog.html#QProgressDialog(java.lang.String, java.lang.String, int, int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QProgressDialog&lt;/tt&gt;&lt;/a&gt; inside a &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt;!&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#value()&quot;&gt;&lt;tt&gt;value&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#minimum()&quot;&gt;minimum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#maximum()&quot;&gt;maximum&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int value()" doc="/**
&lt;p&gt;Returns the current amount of progress made..&lt;/p&gt;
&lt;p&gt;For the progress dialog to work as expected, you should initially set this property to 0 and finally set it to QProgressDialog::maximum(); you can call &lt;a href=&quot;QProgressDialog.html#setValue(int)&quot;&gt;&lt;tt&gt;setValue&lt;/tt&gt;&lt;/a&gt; any number of times in-between.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; If the progress dialog is modal (see QProgressDialog::QProgressDialog()), this function calls QApplication::processEvents(), so take care that this does not cause undesirable re-entrancy in your code. For example, don't use a &lt;a href=&quot;QProgressDialog.html#QProgressDialog(java.lang.String, java.lang.String, int, int, com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QProgressDialog&lt;/tt&gt;&lt;/a&gt; inside a &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt;!&lt;/p&gt;

@see &lt;a href=&quot;QProgressDialog.html#setValue(int)&quot;&gt;&lt;tt&gt;setValue&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#minimum()&quot;&gt;minimum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QProgressDialog.html#maximum()&quot;&gt;maximum&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean wasCanceled()" doc="/**
&lt;p&gt;Returns whether the dialog was canceled.&lt;/p&gt;
 */"/>
    <method name="protected void changeEvent(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void closeEvent(com.trolltech.qt.gui.QCloseEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void resizeEvent(com.trolltech.qt.gui.QResizeEvent arg__1)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void showEvent(com.trolltech.qt.gui.QShowEvent e)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize sizeHint()" doc="/**
&lt;p&gt;Returns a size that fits the contents of the progress dialog. The progress dialog resizes itself as required, so you should not need to call this yourself.&lt;/p&gt;
 */"/>
</class>