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

Kross

  • Kross
  • FormProgressDialog
Public Slots | Signals | Public Member Functions | List of all members
Kross::FormProgressDialog Class Reference

#include <form.h>

Inheritance diagram for Kross::FormProgressDialog:
KPageDialog KDialog QDialog

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

 FormProgressDialog (const QString &caption, const QString &labelText)
 
virtual ~FormProgressDialog ()
 
virtual void done (int r)
 

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 219 of file form.cpp.

FormProgressDialog::~FormProgressDialog ( )
virtual

Definition at line 256 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 288 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 299 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 312 of file form.cpp.

int Kross::FormProgressDialog::exec_loop ( )
inlineslot

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 321 of file form.cpp.

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

Set the minimum and maximum range of the progressbar.

Definition at line 277 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 282 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 261 of file form.cpp.


The documentation for this class was generated from the following files:
  • form.h
  • form.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Fri Nov 20 2015 12:03:44 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kross

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

kdelibs-4.14.8 API Reference

Skip menu "kdelibs-4.14.8 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
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