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;
209 #endif // YQMultiProgressMeter_h
int length()
Overall length (in pixels) of the MultiProgressMeter.
void setSpacing(int value)
Sets the spacing between segments in pixels.
void drawMarkers(QPainter &painter, int offset, int thickness)
Draw markers between segments (or beside that spacing).
void setTriSpacing(int value)
Sets the spacing between the segment indicators and the small triangles next to the spacing between s...
void setMargin(int value)
Sets the margin around the widget contents.
int segmentMinLength() const
Returns the minimal length of a segment in pixels.
void setTriThickness(int value)
Set the thickness (base to point) of the small triangles next to the spacing between individual segme...
int triThickness() const
Returns the thickness (base to point) of the small triangles next to the spacing between individual s...
void init()
Common initialization.
virtual void setEnabled(bool enabled)
Set enabled/disabled state.
int triSpacing() const
Returns the spacing between the segment indicators and the small triangles next to the spacing betwee...
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...
YQMultiProgressMeter(YWidget *parent, YUIDimension dim, const vector< float > &maxValues)
Constructor.
void setSegmentMinLength(int val)
Set the minimal length of a segment in pixels.
virtual int preferredHeight()
Preferred height of the widget.
virtual void setSize(int newWidth, int newHeight)
Set the new size of the widget.
int thickness()
Overall thickness (in pixels) of the MultiProgressMeter.
int spacing() const
Returns the spacing between segments in pixels.
virtual int preferredWidth()
Preferred width of the widget.
virtual void doUpdate()
Perform a visual update on the screen.
virtual ~YQMultiProgressMeter()
Destructor.
int margin() const
Returns the margin around the widget contents.
virtual void paintEvent(QPaintEvent *)
Paint the widget's contents.
- src
- YQMultiProgressMeter.h