libyui-qt
2.44.0
|
Public Member Functions | |
YQMultiProgressMeter (YWidget *parent, YUIDimension dim, const vector< float > &maxValues) | |
virtual | ~YQMultiProgressMeter () |
int | thickness () |
int | length () |
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) |
virtual void | setEnabled (bool enabled) |
virtual int | preferredWidth () |
virtual int | preferredHeight () |
virtual void | setSize (int newWidth, int newHeight) |
Protected Member Functions | |
void | init () |
virtual void | doUpdate () |
virtual void | paintEvent (QPaintEvent *) |
void | drawSegment (int segment, QPainter &painter, int offset, int length, int thickness) |
void | drawMarkers (QPainter &painter, int offset, int thickness) |
Definition at line 42 of file YQMultiProgressMeter.h.
YQMultiProgressMeter::YQMultiProgressMeter | ( | YWidget * | parent, |
YUIDimension | dim, | ||
const vector< float > & | maxValues | ||
) |
Constructor.
Definition at line 39 of file YQMultiProgressMeter.cc.
|
virtual |
Destructor.
Definition at line 50 of file YQMultiProgressMeter.cc.
|
protectedvirtual |
Perform a visual update on the screen. Reimplemented from YMultiProgressMeter.
Definition at line 66 of file YQMultiProgressMeter.cc.
|
protected |
Draw markers between segments (or beside that spacing).
Definition at line 246 of file YQMultiProgressMeter.cc.
|
protected |
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).
Definition at line 186 of file YQMultiProgressMeter.cc.
|
protected |
Common initialization
Definition at line 56 of file YQMultiProgressMeter.cc.
int YQMultiProgressMeter::length | ( | ) |
Overall length (in pixels) of the MultiProgressMeter.
Definition at line 298 of file YQMultiProgressMeter.cc.
|
inline |
Returns the margin around the widget contents.
Definition at line 72 of file YQMultiProgressMeter.h.
|
protectedvirtual |
Paint the widget's contents. Reimplemented from QWidget.
Definition at line 72 of file YQMultiProgressMeter.cc.
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
Definition at line 329 of file YQMultiProgressMeter.cc.
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
Definition at line 323 of file YQMultiProgressMeter.cc.
|
inline |
Returns the minimal length of a segment in pixels.
Definition at line 94 of file YQMultiProgressMeter.h.
|
virtual |
Set enabled/disabled state.
Reimplemented from YWidget.
Definition at line 315 of file YQMultiProgressMeter.cc.
|
inline |
Sets the margin around the widget contents. Does not trigger an update.
Definition at line 78 of file YQMultiProgressMeter.h.
|
inline |
Set the minimal length of a segment in pixels.
Definition at line 99 of file YQMultiProgressMeter.h.
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 335 of file YQMultiProgressMeter.cc.
|
inline |
Sets the spacing between segments in pixels. Does not trigger an update.
Definition at line 89 of file YQMultiProgressMeter.h.
|
inline |
Sets the spacing between the segment indicators and the small triangles next to the spacing between segments.
Definition at line 131 of file YQMultiProgressMeter.h.
void YQMultiProgressMeter::setTriThickness | ( | int | value | ) |
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.
Definition at line 306 of file YQMultiProgressMeter.cc.
|
inline |
Returns the spacing between segments in pixels.
Definition at line 83 of file YQMultiProgressMeter.h.
int YQMultiProgressMeter::thickness | ( | ) |
Overall thickness (in pixels) of the MultiProgressMeter.
Definition at line 286 of file YQMultiProgressMeter.cc.
|
inline |
Returns the spacing between the segment indicators and the small triangles next to the spacing between segments.
Definition at line 125 of file YQMultiProgressMeter.h.
|
inline |
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.
Definition at line 107 of file YQMultiProgressMeter.h.