25 #ifndef YMultiProgressMeter_h
26 #define YMultiProgressMeter_h
72 const std::vector<float> & maxValues );
84 virtual const char *
widgetClass()
const {
return "YMultiProgressMeter"; }
109 float maxValue(
int segment )
const;
140 virtual bool setProperty(
const std::string & propertyName,
MultiProgressMeter: Progress bar with several segments that can indicate progress individually.
float currentValue(int segment) const
Return the current value for the specified segment (counting from 0).
bool vertical() const
Return 'true' if the orientation is vertical.
int segments() const
Return the number of segments.
void setCurrentValues(const std::vector< float > &values)
Set all current values and call doUpdate().
bool horizontal() const
Return 'true' if the orientation is horizontal.
void setCurrentValue(int segment, float value)
Set the current value for the specified segment.
YUIDimension dimension() const
Return the orientation of the MultiProgressBar.
float maxValue(int segment) const
Return the maximum value for the specified segment (counting from 0).
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual const char * widgetClass() const
Return a descriptive name of this widget class for logging, debugging etc.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
virtual ~YMultiProgressMeter()
Destructor.
virtual void doUpdate()=0
Notification that values have been updated and the widget needs to be redisplayed.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
YMultiProgressMeter(YWidget *parent, YUIDimension dim, const std::vector< float > &maxValues)
Constructor.
A set of properties to check names and types against.
Transport class for the value of simple properties.