libyui-qt  2.43.5
YQMultiProgressMeter Class Reference

List of all members.

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)

Detailed Description

Definition at line 42 of file YQMultiProgressMeter.h.


Constructor & Destructor Documentation

YQMultiProgressMeter::YQMultiProgressMeter ( YWidget *  parent,
YUIDimension  dim,
const vector< float > &  maxValues 
)

Constructor.

Definition at line 39 of file YQMultiProgressMeter.cc.

Here is the call graph for this function:

Destructor.

Definition at line 50 of file YQMultiProgressMeter.cc.


Member Function Documentation

void YQMultiProgressMeter::doUpdate ( ) [protected, virtual]

Perform a visual update on the screen. Reimplemented from YMultiProgressMeter.

Definition at line 66 of file YQMultiProgressMeter.cc.

void YQMultiProgressMeter::drawMarkers ( QPainter &  painter,
int  offset,
int  thickness 
) [protected]

Draw markers between segments (or beside that spacing).

Definition at line 246 of file YQMultiProgressMeter.cc.

Here is the call graph for this function:

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).

Definition at line 186 of file YQMultiProgressMeter.cc.

Here is the call graph for this function:

void YQMultiProgressMeter::init ( ) [protected]

Common initialization

Definition at line 56 of file YQMultiProgressMeter.cc.

Here is the call graph for this function:

Overall length (in pixels) of the MultiProgressMeter.

Definition at line 298 of file YQMultiProgressMeter.cc.

Here is the call graph for this function:

int YQMultiProgressMeter::margin ( ) const [inline]

Returns the margin around the widget contents.

Definition at line 72 of file YQMultiProgressMeter.h.

void YQMultiProgressMeter::paintEvent ( QPaintEvent *  event) [protected, virtual]

Paint the widget's contents. Reimplemented from QWidget.

Definition at line 72 of file YQMultiProgressMeter.cc.

Here is the call graph for this function:

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 329 of file YQMultiProgressMeter.cc.

Here is the call graph for this function:

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 323 of file YQMultiProgressMeter.cc.

Here is the call graph for this function:

Returns the minimal length of a segment in pixels.

Definition at line 94 of file YQMultiProgressMeter.h.

void YQMultiProgressMeter::setEnabled ( bool  enabled) [virtual]

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 315 of file YQMultiProgressMeter.cc.

void YQMultiProgressMeter::setMargin ( int  value) [inline]

Sets the margin around the widget contents. Does not trigger an update.

Definition at line 78 of file YQMultiProgressMeter.h.

void YQMultiProgressMeter::setSegmentMinLength ( int  val) [inline]

Set the minimal length of a segment in pixels.

Definition at line 99 of file YQMultiProgressMeter.h.

void YQMultiProgressMeter::setSize ( int  newWidth,
int  newHeight 
) [virtual]

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 335 of file YQMultiProgressMeter.cc.

Here is the call graph for this function:

void YQMultiProgressMeter::setSpacing ( int  value) [inline]

Sets the spacing between segments in pixels. Does not trigger an update.

Definition at line 89 of file YQMultiProgressMeter.h.

void YQMultiProgressMeter::setTriSpacing ( int  value) [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.

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.

Here is the call graph for this function:

int YQMultiProgressMeter::spacing ( ) const [inline]

Returns the spacing between segments in pixels.

Definition at line 83 of file YQMultiProgressMeter.h.

Overall thickness (in pixels) of the MultiProgressMeter.

Definition at line 286 of file YQMultiProgressMeter.cc.

Here is the call graph for this function:

int YQMultiProgressMeter::triSpacing ( ) const [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.

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.

Definition at line 107 of file YQMultiProgressMeter.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables