26 #ifndef YQMultiProgressMeter_h
27 #define YQMultiProgressMeter_h
30 #include <yui/YMultiProgressMeter.h>
53 const vector<float> & maxValues );
72 int margin()
const {
return _margin; }
159 virtual void setSize(
int newWidth,
int newHeight );
203 int _segmentMinLength;
void drawMarkers(QPainter &painter, int offset, int thickness)
Draw markers between segments (or beside that spacing).
virtual ~YQMultiProgressMeter()
Destructor.
void drawSegment(int segment, QPainter &painter, int offset, int length, int thickness)
Draw segment number 'segment' with pixel length 'length' from pixel coordinate 'offset' on and fill i...
int triSpacing() const
Returns the spacing between the segment indicators and the small triangles next to the spacing betwee...
int triThickness() const
Returns the thickness (base to point) of the small triangles next to the spacing between individual s...
void setSpacing(int value)
Sets the spacing between segments in pixels.
int segmentMinLength() const
Returns the minimal length of a segment in pixels.
void init()
Common initialization.
int thickness()
Overall thickness (in pixels) of the MultiProgressMeter.
YQMultiProgressMeter(YWidget *parent, YUIDimension dim, const vector< float > &maxValues)
Constructor.
int margin() const
Returns the margin around the widget contents.
void setTriSpacing(int value)
Sets the spacing between the segment indicators and the small triangles next to the spacing between s...
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.
virtual void setEnabled(bool enabled)
Set enabled/disabled state.
virtual void doUpdate()
Perform a visual update on the screen.
void setMargin(int value)
Sets the margin around the widget contents.
void setTriThickness(int value)
Set the thickness (base to point) of the small triangles next to the spacing between individual segme...
int spacing() const
Returns the spacing between segments in pixels.
virtual void paintEvent(QPaintEvent *)
Paint the widget's contents.
virtual int preferredWidth()
Preferred width of the widget.
virtual int preferredHeight()
Preferred height of the widget.
int length()
Overall length (in pixels) of the MultiProgressMeter.
void setSegmentMinLength(int val)
Set the minimal length of a segment in pixels.