Kross
Kross::FormProgressDialog Class Reference
The FormProgressDialog class provides access to progressbar. More...
#include <form.h>
Inheritance diagram for Kross::FormProgressDialog:

Public Slots | |
void | addText (const QString &text) |
int | exec () |
int | exec_loop () |
bool | isCanceled () |
void | setRange (int minimum, int maximum) |
void | setText (const QString &text) |
void | setValue (int progress) |
Signals | |
void | canceled () |
Public Member Functions | |
virtual void | done (int r) |
FormProgressDialog (const QString &caption, const QString &labelText) | |
virtual | ~FormProgressDialog () |
Detailed Description
The FormProgressDialog class provides access to progressbar.Example (in Python) :
import time, Kross forms = Kross.module("forms") progress = forms.showProgressDialog("My Title") progress.setText("Some <i>detailed</i> text.") for i in range(0,101): progress.setValue(i) progress.addText("%s" % i) time.sleep(1) progress.reset()
Definition at line 155 of file form.h.
Constructor & Destructor Documentation
Member Function Documentation
void FormProgressDialog::addText | ( | const QString & | text | ) | [slot] |
void Kross::FormProgressDialog::canceled | ( | ) | [signal] |
This signal got emitted if the user requests to cancel the operation.
int FormProgressDialog::exec | ( | ) | [slot] |
Shows the dialog as a modal dialog, blocking until the user closes it and returns the execution result.
- Returns:
- >=1 if the dialog was accepted (e.g. "Ok" pressed) else the user rejected the dialog (e.g. by pressing "Cancel" or just closing the dialog by pressing the escape-key).
int Kross::FormProgressDialog::exec_loop | ( | ) | [inline, slot] |
bool FormProgressDialog::isCanceled | ( | ) | [slot] |
void FormProgressDialog::setRange | ( | int | minimum, | |
int | maximum | |||
) | [slot] |
void FormProgressDialog::setText | ( | const QString & | text | ) | [slot] |
void FormProgressDialog::setValue | ( | int | progress | ) | [slot] |
The documentation for this class was generated from the following files: