Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

YProgressBar Class Reference

Implementation of the ProgressBar widget. More...

#include <YProgressBar.h>

Inheritance diagram for YProgressBar:

YWidget List of all members.

Public Member Functions

 YProgressBar (const YWidgetOpt &opt, const YCPString &label, const YCPInteger &maxProgress, const YCPInteger &initialProgress)
virtual char * widgetClass ()
YCPValue changeWidget (const YCPSymbol &property, const YCPValue &newvalue)
YCPValue queryWidget (const YCPSymbol &property)
virtual void setLabel (const YCPString &label)
YCPString getLabel ()
virtual void setProgress (const YCPInteger &progress)
YCPInteger getProgress ()

Protected Attributes

YCPString label
YCPInteger maxProgress
YCPInteger progress

Detailed Description

Implementation of the ProgressBar widget.

ProgressBar

A progress bar is a horizontal bar with a label that shows a progress value. If you omit the optional parameter maxvalue, the maximum value will be 100. If you omit the optional parameter progress, the progress bar will set to 0 initially.


Constructor & Destructor Documentation

YProgressBar::YProgressBar const YWidgetOpt opt,
const YCPString label,
const YCPInteger &  maxProgress,
const YCPInteger &  initialProgress
 

Constructor.


Member Function Documentation

YCPValue YProgressBar::changeWidget const YCPSymbol property,
const YCPValue newvalue
[virtual]
 

Implements the ui command changeWidget.

integer Value the current progress

string Label the label above the progress bar

Reimplemented from YWidget.

YCPString YProgressBar::getLabel  ) 
 

Get the current label. This method cannot be overidden. The label of the ProgressBar cannot be changed other than by calling setProgress, i.e. not by the ui. Therefore setProgress stores the current ProgressBar in #ProgressBar.

YCPInteger YProgressBar::getProgress  ) 
 

Get the current progress. This method cannot be overidden. The progress of the cannot be changed other than by calling setProgress, i.e. not by the ui. Therefore setProgress stores the current ProgressBar in #ProgressBar.

YCPValue YProgressBar::queryWidget const YCPSymbol property  )  [virtual]
 

Implements the ui command queryWidget

Reimplemented from YWidget.

void YProgressBar::setLabel const YCPString label  )  [virtual]
 

Change the ProgressBar label. Overload this, but call YProgressBar::setLabel at the end of your own function.

void YProgressBar::setProgress const YCPInteger &  progress  )  [virtual]
 

Change the progress. Overload this, but call YProgressBar::setProgress at the end of your own function.

virtual char* YProgressBar::widgetClass  )  [inline, virtual]
 

Returns a descriptive name of this widget class for logging, debugging etc.

Reimplemented from YWidget.


Member Data Documentation

YCPString YProgressBar::label [protected]
 

Current label of the ProgressBar

YCPInteger YProgressBar::maxProgress [protected]
 

Maximum progress value of the progress bar. The progress can go from 0 to maxprogress.

YCPInteger YProgressBar::progress [protected]
 

current progress value of the ProgressBar.


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:25 2007 for yast2-core by doxygen 1.3.6