#include <YProgressBar.h>
Inheritance diagram for YProgressBar:

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 |
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.
| YProgressBar::YProgressBar | ( | const YWidgetOpt & | opt, | |
| const YCPString & | label, | |||
| const YCPInteger & | maxProgress, | |||
| const YCPInteger & | initialProgress | |||
| ) |
Constructor.
| virtual char* YProgressBar::widgetClass | ( | ) | [inline, virtual] |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.
| YCPValue YProgressBar::changeWidget | ( | const YCPSymbol & | property, | |
| const YCPValue & | newvalue | |||
| ) | [virtual] |
Implements the ui command changeWidget.
Reimplemented from YWidget.
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.
| 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.
| void YProgressBar::setProgress | ( | const YCPInteger & | progress | ) | [virtual] |
Change the progress. Overload this, but call YProgressBar::setProgress at the end of your own function.
| 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.
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.
1.5.0