#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.
|
Constructor. |
|
Implements the ui command changeWidget. integer Value the current progress string Label the label above the progress bar Reimplemented from YWidget. |
|
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. |
|
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. |
|
Implements the ui command queryWidget Reimplemented from YWidget. |
|
Change the ProgressBar label. Overload this, but call YProgressBar::setLabel at the end of your own function. |
|
Change the progress. Overload this, but call YProgressBar::setProgress at the end of your own function. |
|
Returns a descriptive name of this widget class for logging, debugging etc. Reimplemented from YWidget. |
|
Current label of the ProgressBar |
|
Maximum progress value of the progress bar. The progress can go from 0 to maxprogress. |
|
current progress value of the ProgressBar. |