• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

ksim

KSim::Progress

KSim::Progress Class Reference

#include <progress.h>

Inheritance diagram for KSim::Progress:

Inheritance graph
[legend]

List of all members.


Detailed Description

provides a label with a progress bar meter

Author:
Robbie Ward <linuxphreak@gmx.co.uk>

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

enum KSim::Progress::ProgressType

Enumerator:
Panel 
Meter 

Definition at line 41 of file progress.h.


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]

destructs KSim::Chart

Definition at line 89 of file progress.cpp.


Member Function Documentation

int KSim::Progress::value (  )  const

Returns:
the current value

Definition at line 94 of file progress.cpp.

int KSim::Progress::minValue (  )  const

Returns:
the minimum value

Definition at line 99 of file progress.cpp.

int KSim::Progress::maxValue (  )  const

Returns:
the maximum value

Definition at line 104 of file progress.cpp.

const QRect & KSim::Progress::rectOrigin (  )  const

Returns:
the area that the progress meter will be drawn

Definition at line 109 of file progress.cpp.

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]

sets the current value the progress bar will display

Definition at line 148 of file progress.cpp.

void KSim::Progress::setMinValue ( int  minValue  )  [slot]

sets the minimum value the progress bar will display

Definition at line 163 of file progress.cpp.

void KSim::Progress::setMaxValue ( int  maxValue  )  [slot]

sets the maximum value the progress bar will display

Definition at line 174 of file progress.cpp.

void KSim::Progress::setOrigin ( const QRect &  origin  )  [protected]

sets the area that the progress bar will be drawn

Definition at line 185 of file progress.cpp.

void KSim::Progress::setMeterPixmap ( const QPixmap &  pixmap  )  [protected]

sets the progress bar pixmap

Definition at line 190 of file progress.cpp.

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]

paints the meter image onto the widget

Definition at line 222 of file progress.cpp.


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

ksim

Skip menu "ksim"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
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