25 #ifndef YProgressBar_h
26 #define YProgressBar_h
43 const std::string &
label,
56 virtual const char *
widgetClass()
const {
return "YProgressBar"; }
88 virtual void setValue(
int newValue );
100 virtual bool setProperty(
const std::string & propertyName,
A progress bar, showing completion of value() out of maxValue() parts.
virtual ~YProgressBar()
Destructor.
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
std::string label()
Get the label (the caption above the progress bar).
int value() const
Return the current progress value.
int maxValue() const
Return the maximum progress value.
virtual void setValue(int newValue)
Set the current progress value ( <= maxValue() ).
virtual void setLabel(const std::string &label)
Set the label (the caption above the progress bar).
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
YProgressBar(YWidget *parent, const std::string &label, int maxValue=100)
Constructor.
A set of properties to check names and types against.
Transport class for the value of simple properties.