◆ YQMultiProgressMeter()
YQMultiProgressMeter::YQMultiProgressMeter |
( |
YWidget * | parent, |
|
|
YUIDimension | dim, |
|
|
const vector< float > & | maxValues ) |
◆ ~YQMultiProgressMeter()
YQMultiProgressMeter::~YQMultiProgressMeter |
( |
| ) |
|
|
virtual |
◆ doUpdate()
void YQMultiProgressMeter::doUpdate |
( |
| ) |
|
|
protectedvirtual |
Perform a visual update on the screen. Reimplemented from YMultiProgressMeter.
◆ drawMarkers()
void YQMultiProgressMeter::drawMarkers |
( |
QPainter & | painter, |
|
|
int | offset, |
|
|
int | thickness ) |
|
protected |
Draw markers between segments (or beside that spacing).
◆ drawSegment()
void YQMultiProgressMeter::drawSegment |
( |
int | segment, |
|
|
QPainter & | painter, |
|
|
int | offset, |
|
|
int | length, |
|
|
int | thickness ) |
|
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).
◆ init()
void YQMultiProgressMeter::init |
( |
| ) |
|
|
protected |
◆ length()
int YQMultiProgressMeter::length |
( |
| ) |
|
Overall length (in pixels) of the MultiProgressMeter.
◆ margin()
int YQMultiProgressMeter::margin |
( |
| ) |
const |
|
inline |
Returns the margin around the widget contents.
◆ paintEvent()
void YQMultiProgressMeter::paintEvent |
( |
QPaintEvent * | event | ) |
|
|
protectedvirtual |
Paint the widget's contents. Reimplemented from QWidget.
◆ preferredHeight()
int YQMultiProgressMeter::preferredHeight |
( |
| ) |
|
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
◆ preferredWidth()
int YQMultiProgressMeter::preferredWidth |
( |
| ) |
|
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
◆ segmentMinLength()
int YQMultiProgressMeter::segmentMinLength |
( |
| ) |
const |
|
inline |
Returns the minimal length of a segment in pixels.
◆ setEnabled()
void YQMultiProgressMeter::setEnabled |
( |
bool | enabled | ) |
|
|
virtual |
Set enabled/disabled state.
Reimplemented from YWidget.
◆ setMargin()
void YQMultiProgressMeter::setMargin |
( |
int | value | ) |
|
|
inline |
Sets the margin around the widget contents. Does not trigger an update.
◆ setSegmentMinLength()
void YQMultiProgressMeter::setSegmentMinLength |
( |
int | val | ) |
|
|
inline |
Set the minimal length of a segment in pixels.
◆ setSize()
void YQMultiProgressMeter::setSize |
( |
int | newWidth, |
|
|
int | newHeight ) |
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
◆ setSpacing()
void YQMultiProgressMeter::setSpacing |
( |
int | value | ) |
|
|
inline |
Sets the spacing between segments in pixels. Does not trigger an update.
◆ setTriSpacing()
void YQMultiProgressMeter::setTriSpacing |
( |
int | value | ) |
|
|
inline |
Sets the spacing between the segment indicators and the small triangles next to the spacing between segments.
◆ setTriThickness()
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.
◆ spacing()
int YQMultiProgressMeter::spacing |
( |
| ) |
const |
|
inline |
Returns the spacing between segments in pixels.
◆ thickness()
int YQMultiProgressMeter::thickness |
( |
| ) |
|
Overall thickness (in pixels) of the MultiProgressMeter.
◆ triSpacing()
int YQMultiProgressMeter::triSpacing |
( |
| ) |
const |
|
inline |
Returns the spacing between the segment indicators and the small triangles next to the spacing between segments.
◆ triThickness()
int YQMultiProgressMeter::triThickness |
( |
| ) |
const |
|
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.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt/src/YQMultiProgressMeter.h
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt/src/YQMultiProgressMeter.cc