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

libplasma

Plasma::ProgressBar

Plasma::ProgressBar Class Reference

#include <progressbar.h>

Inheritance diagram for Plasma::ProgressBar:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 29 of file progressbar.h.


Public Slots

void reset ()
void setRange (int minimum, int maximum)
void setMinimum (int minimum)
void setMaximum (int maximum)
void setValue (int value)

Signals

void valueChanged (int value)

Public Member Functions

 ProgressBar (Widget *parent)
virtual ~ProgressBar ()
Qt::Alignment alignment () const
QString format () const
bool invertedAppearance ()
bool isTextVisible () const
int maximum () const
int minimum () const
void setAlignment (Qt::Alignment alignment)
void setFormat (const QString &format)
void setInvertedAppearance (bool invert)
void setTextVisible (bool visible)
QString text () const
int value () const
void paintWidget (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
QSizeF sizeHint () const

Properties

QString format
Qt::Alignment alignment
bool invertedAppearance
bool textVisible
int maximum
int minimum
int value

Constructor & Destructor Documentation

Plasma::ProgressBar::ProgressBar ( Widget *  parent  ) 

Constructor.

Definition at line 52 of file progressbar.cpp.

Plasma::ProgressBar::~ProgressBar (  )  [virtual]

Virtual Destructor.

Definition at line 59 of file progressbar.cpp.


Member Function Documentation

Qt::Alignment Plasma::ProgressBar::alignment (  )  const

Returns:
alignment of the progressbar

QString Plasma::ProgressBar::format (  )  const

Returns:
the format for the shown text

bool Plasma::ProgressBar::invertedAppearance (  ) 

Returns:
wether the Plasma::ProgressBar is inverted or not.

bool Plasma::ProgressBar::isTextVisible (  )  const

Returns:
wether the text is visible or not.

Definition at line 130 of file progressbar.cpp.

int Plasma::ProgressBar::maximum (  )  const

Returns:
the maximum value in the range of Plasma::ProgressBar

int Plasma::ProgressBar::minimum (  )  const

Returns:
the minimum value in the range of Plasma:ProgressBar

void Plasma::ProgressBar::setAlignment ( Qt::Alignment  alignment  ) 

Changes the alignment of Plasma::ProgressBar.

p - is replaced by the percentage completed v - is replaced by the current value m - is replaced by the total number of steps

Parameters:
alignment the alignment for the progressbar.

Definition at line 77 of file progressbar.cpp.

void Plasma::ProgressBar::setFormat ( const QString &  format  ) 

Sets the format for the shown text in Plasma::ProgressBar; the format for the shown text in Plasma:ProgressBar.

Definition at line 90 of file progressbar.cpp.

void Plasma::ProgressBar::setInvertedAppearance ( bool  invert  ) 

Inverts the appearance of Plasma::ProgressBar.

Parameters:
invert true inverts the appearance

Definition at line 104 of file progressbar.cpp.

void Plasma::ProgressBar::setTextVisible ( bool  visible  ) 

Change the text to be visible or not.

Parameters:
visible if true then visible

Definition at line 121 of file progressbar.cpp.

QString Plasma::ProgressBar::text (  )  const

Returns:
the text to be shown in Plasma::ProgressBar

Definition at line 238 of file progressbar.cpp.

int Plasma::ProgressBar::value (  )  const

Returns:
the actual value of the progress

void Plasma::ProgressBar::paintWidget ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
) [virtual]

Paints the widget.

Parameters:
painter the QPainter to use to paint.
option the style option used to give specific info on the item being dawn.
widget the parent QWidget (most likely the Corona)

Reimplemented from Plasma::Widget.

Definition at line 192 of file progressbar.cpp.

QSizeF Plasma::ProgressBar::sizeHint (  )  const [virtual]

Returns the recommended size for this widget.

Note that this size is not necessarily only the size for the widget, but might also include margins etc.

Returns:
recommended size for this Plasma::Widget.

Reimplemented from Plasma::Widget.

Definition at line 212 of file progressbar.cpp.

void Plasma::ProgressBar::reset (  )  [slot]

Definition at line 136 of file progressbar.cpp.

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

Definition at line 142 of file progressbar.cpp.

void Plasma::ProgressBar::setMinimum ( int  minimum  )  [slot]

Definition at line 152 of file progressbar.cpp.

void Plasma::ProgressBar::setMaximum ( int  maximum  )  [slot]

Definition at line 157 of file progressbar.cpp.

void Plasma::ProgressBar::setValue ( int  value  )  [slot]

Definition at line 172 of file progressbar.cpp.

void Plasma::ProgressBar::valueChanged ( int  value  )  [signal]


Property Documentation

QString Plasma::ProgressBar::format [read, write]

Definition at line 32 of file progressbar.h.

Qt::Alignment Plasma::ProgressBar::alignment [read, write]

Definition at line 33 of file progressbar.h.

bool Plasma::ProgressBar::invertedAppearance [read, write]

Definition at line 34 of file progressbar.h.

bool Plasma::ProgressBar::textVisible [read, write]

Definition at line 35 of file progressbar.h.

int Plasma::ProgressBar::maximum [read, write]

Definition at line 36 of file progressbar.h.

int Plasma::ProgressBar::minimum [read, write]

Definition at line 37 of file progressbar.h.

int Plasma::ProgressBar::value [read, write]

Definition at line 38 of file progressbar.h.


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

libplasma

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

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference 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