ksim
KSim::Progress Class Reference
#include <progress.h>

Detailed Description
provides a label with a progress bar meter
Definition at line 37 of file progress.h.
Public Types | |
| enum | ProgressType { Panel, Meter } |
Public Slots | |
| virtual void | reset () |
| void | setValue (int) |
| void | setMinValue (int) |
| void | setMaxValue (int) |
Public Member Functions | |
| Progress (int maxValue, QWidget *parent, const char *name=0, Qt::WFlags fl=0) | |
| Progress (int maxValue, int type, const QString &label, QWidget *parent, const char *name=0, Qt::WFlags fl=0) | |
| Progress (int maxValue, int type, const QString &label, int value, QWidget *parent, const char *name=0, Qt::WFlags fl=0) | |
| Progress (int maxValue, int type, QWidget *parent, const char *name=0, Qt::WFlags fl=0) | |
| Progress (int maxValue, int type, ProgressType progressType, QWidget *parent, const char *name=0, Qt::WFlags fl=0) | |
| virtual | ~Progress () |
| int | value () const |
| int | minValue () const |
| int | maxValue () const |
| const QRect & | rectOrigin () const |
| virtual void | configureObject (bool repaintWidget=true) |
| virtual QSize | sizeHint () const |
Protected Member Functions | |
| void | setOrigin (const QRect &) |
| void | setMeterPixmap (const QPixmap &) |
| int | xLocation () const |
| virtual void | paintEvent (QPaintEvent *) |
| virtual void | resizeEvent (QResizeEvent *) |
| void | drawMeter () |
Member Enumeration Documentation
Constructor & Destructor Documentation
| KSim::Progress::Progress | ( | int | maxValue, | |
| QWidget * | parent, | |||
| const char * | name = 0, |
|||
| Qt::WFlags | fl = 0 | |||
| ) |
constructs a KSim::Progress
- Parameters:
-
maxValue is the maximum value that the progress bar will show label is the text that will be displayed parent is the parent widget
Definition at line 45 of file progress.cpp.
| KSim::Progress::Progress | ( | int | maxValue, | |
| int | type, | |||
| const QString & | label, | |||
| QWidget * | parent, | |||
| const char * | name = 0, |
|||
| Qt::WFlags | fl = 0 | |||
| ) |
constructs a KSim::Progress
- Parameters:
-
maxValue is the maximum value that the progress bar will show type is the theme type label is the text that will be displayed parent is the parent widget
Definition at line 53 of file progress.cpp.
| KSim::Progress::Progress | ( | int | maxValue, | |
| int | type, | |||
| const QString & | label, | |||
| int | value, | |||
| QWidget * | parent, | |||
| const char * | name = 0, |
|||
| Qt::WFlags | fl = 0 | |||
| ) |
constructs a KSim::Progress
- Parameters:
-
maxValue is the maximum value that the progress bar will show type is the theme type label is the text that will be displayed value is the initial value to be displayed parent is the parent widget
Definition at line 62 of file progress.cpp.
| KSim::Progress::Progress | ( | int | maxValue, | |
| int | type, | |||
| QWidget * | parent, | |||
| const char * | name = 0, |
|||
| Qt::WFlags | fl = 0 | |||
| ) |
constructs a KSim::Progress
- Parameters:
-
maxValue is the maximum value that the progress bar will show type is the theme type parent is the parent widget
Definition at line 71 of file progress.cpp.
| KSim::Progress::Progress | ( | int | maxValue, | |
| int | type, | |||
| ProgressType | progressType, | |||
| QWidget * | parent, | |||
| const char * | name = 0, |
|||
| Qt::WFlags | fl = 0 | |||
| ) |
constructs a KSim::Progress
- Parameters:
-
maxValue is the maximum value that the progress bar will show type is the theme type progressType is onr of Progress::ProgressType parent is the parent widget
Definition at line 80 of file progress.cpp.
| KSim::Progress::~Progress | ( | ) | [virtual] |
Member Function Documentation
| int KSim::Progress::value | ( | ) | const |
| int KSim::Progress::minValue | ( | ) | const |
| int KSim::Progress::maxValue | ( | ) | const |
| const QRect & KSim::Progress::rectOrigin | ( | ) | const |
| void KSim::Progress::configureObject | ( | bool | repaintWidget = true |
) | [virtual] |
reimplemented for internal reasons
Reimplemented from KSim::Label.
Reimplemented in KSim::LedLabel.
Definition at line 114 of file progress.cpp.
| QSize KSim::Progress::sizeHint | ( | ) | const [virtual] |
reimplemented for internal reasons
Reimplemented from KSim::Label.
Reimplemented in KSim::LedLabel.
Definition at line 130 of file progress.cpp.
| void KSim::Progress::reset | ( | ) | [virtual, slot] |
calls KSim::Label::clear() and resets the value(), maxValue() and minValue() to 0
Reimplemented in KSim::LedLabel.
Definition at line 140 of file progress.cpp.
| void KSim::Progress::setValue | ( | int | value | ) | [slot] |
| void KSim::Progress::setMinValue | ( | int | minValue | ) | [slot] |
| void KSim::Progress::setMaxValue | ( | int | maxValue | ) | [slot] |
| void KSim::Progress::setOrigin | ( | const QRect & | origin | ) | [protected] |
| void KSim::Progress::setMeterPixmap | ( | const QPixmap & | pixmap | ) | [protected] |
| int KSim::Progress::xLocation | ( | ) | const [protected] |
- Returns:
- the pixel position where the meter should be drawn
Definition at line 197 of file progress.cpp.
| void KSim::Progress::paintEvent | ( | QPaintEvent * | ev | ) | [protected, virtual] |
reimplemented for internal reasons
Reimplemented from KSim::Label.
Reimplemented in KSim::LedLabel.
Definition at line 210 of file progress.cpp.
| void KSim::Progress::resizeEvent | ( | QResizeEvent * | ev | ) | [protected, virtual] |
reimplemented for internal reasons
Reimplemented from KSim::Label.
Reimplemented in KSim::LedLabel.
Definition at line 216 of file progress.cpp.
| void KSim::Progress::drawMeter | ( | ) | [protected] |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference