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