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

Kross

Kross::FormProgressDialog

Kross::FormProgressDialog Class Reference

The FormProgressDialog class provides access to progressbar. More...

#include <form.h>

Inheritance diagram for Kross::FormProgressDialog:
KPageDialog KDialog QDialog

List of all members.

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

FormProgressDialog::FormProgressDialog ( const QString &  caption,
const QString &  labelText 
)

Definition at line 220 of file form.cpp.

FormProgressDialog::~FormProgressDialog (  )  [virtual]

Definition at line 257 of file form.cpp.


Member Function Documentation

void FormProgressDialog::addText ( const QString &  text  )  [slot]

Add to the HTML-text that is displayed as information the text text .

Definition at line 289 of file form.cpp.

void Kross::FormProgressDialog::canceled (  )  [signal]

This signal got emitted if the user requests to cancel the operation.

void FormProgressDialog::done ( int  r  )  [virtual]

Definition at line 300 of file form.cpp.

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).

Definition at line 313 of file form.cpp.

int Kross::FormProgressDialog::exec_loop (  )  [inline, slot]

Same as the exec() method above provided for Python-lovers (python does not like functions named "exec" and PyQt named it "exec_loop", so just let's do the same).

Definition at line 193 of file form.h.

bool FormProgressDialog::isCanceled (  )  [slot]

Returns true if the user requested to cancel the operation.

Definition at line 322 of file form.cpp.

void FormProgressDialog::setRange ( int  minimum,
int  maximum 
) [slot]

Set the minimum and maximum range of the progressbar.

Definition at line 278 of file form.cpp.

void FormProgressDialog::setText ( const QString &  text  )  [slot]

Set the HTML-text that is displayed as information to the text text .

Definition at line 283 of file form.cpp.

void FormProgressDialog::setValue ( int  progress  )  [slot]

Set the value of the progressbar.

If -1 the progressbar will be hidden.

Definition at line 262 of file form.cpp.


The documentation for this class was generated from the following files:
  • form.h
  • form.cpp

Kross

Skip menu "Kross"
  • Main Page
  • 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
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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