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