#include <qwt_wheel.h>
Inheritance diagram for QwtWheel::
Public Methods | |
QwtWheel (QWidget *parent=0, const char *name=0) | |
virtual | ~QwtWheel () |
void | setTotalAngle (double angle) |
void | setTickCnt (int cnt) |
void | setOrientation (Qt::Orientation o) |
void | setViewAngle (double angle) |
void | setInternalBorder (int width) |
void | setMass (double val) |
void | setWheelWidth (int w) |
virtual QSize | sizeHint () const |
virtual QSize | minimumSizeHint () const |
virtual QSizePolicy | sizePolicy () const |
Protected Methods | |
virtual void | resizeEvent (QResizeEvent *e) |
virtual void | paintEvent (QPaintEvent *e) |
void | layoutWheel (bool update=TRUE) |
void | draw (QPainter *p, const QRect &update_rect) |
void | drawWheel (QPainter *p, const QRect &r) |
void | drawWheelBackground (QPainter *p, const QRect &r) |
void | setColorArray () |
virtual void | valueChange () |
virtual void | paletteChange (const QPalette &) |
virtual double | getValue (const QPoint &p) |
virtual void | getScrollMode (const QPoint &p, int &scrollMode, int &direction) |
The wheel widget can be used to change values over a very large range in very small steps. Using the setMass member, it can be configured as a flywheel.
|
Constructor.
|
|
Destructor.
|
|
Redraw panel and wheel.
|
|
Redraw the wheel.
|
|
Draw the Wheel's background gradient.
|
|
Determine the scrolling mode and direction corresponding to a specified point.
Reimplemented from QwtSliderBase. |
|
Determine the value corresponding to a specified point.
Reimplemented from QwtSliderBase. |
|
Recalculate the slider's geometry and layout based on.
|
|
Return a minimum size hint.
|
|
Qt Paint Event.
|
|
Call update() when the palette changes.
|
|
Qt Resize Event.
|
|
Set up the color array for the background pixmap.
|
|
Set the internal border width of the wheel.
The internal border must not be smaller than 1 and is limited in dependence on the wheel's size. Values outside the allowed range will be clipped. The internal border defaults to 2.
|
|
Set the mass of the wheel.
Assigning a mass turns the wheel into a flywheel.
Reimplemented from QwtSliderBase. |
|
Set the wheel's orientation.
|
|
Adjust the number of grooves in the wheel's surface.
The number of grooves is limited to 6 <= cnt <= 50. Values outside this range will be clipped. The default value is 10.
|
|
Set the total angle which the wheel can be turned.
One full turn of the wheel corresponds to an angle of 360 degrees. A total angle of n*360 degrees means that the wheel has to be turned n times around its axis to get from the minimum value to the maximum value. The default setting of the total angle is 360 degrees.
|
|
Specify the visible portion of the wheel.
You may use this function for fine-tuning the appearance of the wheel. The default value is 175 degrees. The value is limited from 10 to 175 degrees.
|
|
Set the width of the wheel.
Corresponds to the wheel height for horizontal orientation, and the wheel width for vertical orientation.
|
|
|
|
|
|
Notify value change.
Reimplemented from QwtSliderBase. |