#include <YQMultiProgressMeter.h>
Inheritance diagram for YQMultiProgressMeter:
Public Member Functions | |
YQMultiProgressMeter (QWidget *parent, const YWidgetOpt &opt, bool horizontal, const YCPList &maxValues) | |
void | setEnabling (bool enabled) |
long | nicesize (YUIDimension dim) |
void | setSize (long newWidth, long newHeight) |
int | margin () const |
void | setMargin (int value) |
int | spacing () const |
void | setSpacing (int value) |
int | segmentMinLength () const |
void | setSegmentMinLength (int val) |
int | triThickness () const |
void | setTriThickness (int value) |
int | triSpacing () const |
void | setTriSpacing (int value) |
bool | triangularShaped () const |
void | setTriangularShaped (bool triangular=true) |
Protected Member Functions | |
void | init () |
virtual void | doUpdate () |
virtual void | paintEvent (QPaintEvent *) |
virtual void | mouseDoubleClickEvent (QMouseEvent *e) |
void | drawSegment (int segment, QPainter &painter, int offset, int length, int thickness, int indent) |
void | drawMarkers (QPainter &painter, int offset, int thickness) |
Private Attributes | |
bool | _triangularShaped |
int | _margin |
int | _spacing |
int | _segmentMinLength |
int | _triThickness |
int | _triSpacing |
|
Constructor. |
|
Perform a visual update on the screen. Reimplemented from YMultiProgressMeter. Implements YMultiProgressMeter. |
|
Draw markers between segments (or beside that spacing). |
|
Draw segment number 'segment' with pixel length 'length' from pixel coordinate 'offset' on and fill it according to that segment's current value. 'painter' is set up previously to take rotating into account (horizontal / vertical). |
|
Common initialization |
|
Returns the margin around the widget contents. |
|
Mouse double click - reimplemented from QWidget. |
|
Minimum size the widget should have to make it look and feel nice. Dimension, either YD_HORIZ or YD_VERT Implements YWidget. |
|
Paint the widget's contents. Reimplemented from QWidget. |
|
Returns the minimal length of a segment in pixels. |
|
Inherited from YWidget: Sets the enabled state of the widget. All new widgets are enabled per definition. Only enabled widgets can take user input. Reimplemented from YWidget. |
|
Sets the margin around the widget contents. Does not trigger an update. |
|
Set the minimal length of a segment in pixels. |
|
Sets the new size of the widget. Reimplemented from YWidget. |
|
Sets the spacing between segments in pixels. Does not trigger an update. |
|
Set triangular shape (true) or normal rectangular shape. This call does not trigger a screen update. |
|
Sets the spacing between the segment indicators and the small triangles next to the spacing between segments. |
|
Set the thickness (base to point) of the small triangles next to the spacing between individual segments. The base length of those small triangles is double this value minus one. Use -1 to switch off those triangles - in which case triSpacing (see below) will be set to 0. This call does not trigger a screen update. |
|
Returns the spacing between segments in pixels. |
|
Returns "true" if the segments of this widget are triangular shaped. |
|
Returns the spacing between the segment indicators and the small triangles next to the spacing between segments. |
|
Returns the thickness (base to point) of the small triangles next to the spacing between individual segments. The base length of those small triangles is double this value minus one. A value <1 indicates no such triangles will be drawn. |
|
|
|
|
|
|
|
|
|
|
|
|