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