Logo Search packages:      
Sourcecode: pcp-gui version File versions

QwtWheel Class Reference

#include <qwt_wheel.h>

Inheritance diagram for QwtWheel:

QwtAbstractSlider QwtDoubleRange

List of all members.


Detailed Description

The Wheel Widget.

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.

See also:
The radio example.

Definition at line 25 of file qwt_wheel.h.


Public Types

enum  ScrollMode {
  ScrNone, ScrMouse, ScrTimer, ScrDirect,
  ScrPage
}

Public Slots

virtual void fitValue (double val)
 Set the slider's value to the nearest integer multiple of the step size.
virtual void incValue (int steps)
 Increment the value by a specified number of steps.
virtual void setReadOnly (bool)
virtual void setValue (double val)
 Move the slider to a specified value.

Signals

void sliderMoved (double value)
void sliderPressed ()
void sliderReleased ()
void valueChanged (double value)
 Notify a change of value.

Public Member Functions

virtual void incPages (int)
 Increment the value by a specified number of pages.
int internalBorder () const
bool isReadOnly () const
bool isValid () const
double mass () const
double maxValue () const
 Returns the value of the second border of the range.
virtual QSize minimumSizeHint () const
 Return a minimum size hint.
double minValue () const
 Returns the value at the first border of the range.
Orientation orientation () const
int pageSize () const
 Returns the page size in steps.
bool periodic () const
 Returns true if the range is periodic.
 QwtWheel (QWidget *parent, const char *name)
 QwtWheel (QWidget *parent=NULL)
 Constructor.
void setInternalBorder (int width)
 Set the internal border width of the wheel.
void setMass (double val)
 Set the mass of the wheel.
virtual void setOrientation (Orientation o)
virtual void setOrientation (Qt::Orientation)
 Set the wheel's orientation.
void setPeriodic (bool tf)
 Make the range periodic.
void setRange (double vmin, double vmax, double vstep=0.0, int pagesize=1)
 Specify range and step size.
void setStep (double)
 Change the step raster.
void setTickCnt (int cnt)
 Adjust the number of grooves in the wheel's surface.
void setTotalAngle (double angle)
 Set the total angle which the wheel can be turned.
void setTracking (bool enable)
 Enables or disables tracking.
void setUpdateTime (int t)
 Specify the update interval for automatic scrolling.
void setValid (bool valid)
void setViewAngle (double angle)
 Specify the visible portion of the wheel.
void setWheelWidth (int w)
 Set the width of the wheel.
virtual QSize sizeHint () const
double step () const
void stopMoving ()
 Stop updating if automatic scrolling is active.
int tickCnt () const
double totalAngle () const
double value () const
 Returns the current value.
double viewAngle () const
virtual ~QwtWheel ()
 Destructor.

Protected Member Functions

void draw (QPainter *p, const QRect &update_rect)
 Redraw panel and wheel.
void drawWheel (QPainter *p, const QRect &r)
 Redraw the wheel.
void drawWheelBackground (QPainter *p, const QRect &r)
 Draw the Wheel's background gradient.
double exactPrevValue () const
 Returns the exact previous value.
double exactValue () const
 Returns the exact value.
virtual void getScrollMode (const QPoint &p, int &scrollMode, int &direction)
 Determine the scrolling mode and direction corresponding to a specified point.
virtual double getValue (const QPoint &p)
 Determine the value corresponding to a specified point.
virtual void keyPressEvent (QKeyEvent *e)
void layoutWheel (bool update=true)
 Recalculate the slider's geometry and layout based on.
virtual void mouseMoveEvent (QMouseEvent *e)
double mouseOffset () const
virtual void mousePressEvent (QMouseEvent *e)
 Mouse press event handler.
virtual void mouseReleaseEvent (QMouseEvent *e)
 Mouse Release Event handler.
virtual void paintEvent (QPaintEvent *e)
 Qt Paint Event.
virtual void paletteChange (const QPalette &)
 Call update() when the palette changes.
double prevValue () const
 Returns the previous value.
virtual void rangeChange ()
 Notify a change of the range.
virtual void resizeEvent (QResizeEvent *e)
 Qt Resize Event.
int scrollMode () const
void setColorArray ()
 Set up the color array for the background pixmap.
void setMouseOffset (double)
virtual void setPosition (const QPoint &)
virtual void stepChange ()
 Notify a change of the step size.
virtual void timerEvent (QTimerEvent *e)
virtual void valueChange ()
 Notify value change.
virtual void wheelEvent (QWheelEvent *e)

Properties

int internalBorder
double mass
Orientation orientation
bool readOnly
int tickCnt
double totalAngle
bool valid
double viewAngle

Private Member Functions

void initWheel ()

Private Attributes

PrivateData * d_data

Classes

class  PrivateData

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index