Rechercher une page de manuel
QwtWheel
Langue: en
Version: 375999 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
- NAME
- SYNOPSIS
- Detailed Description
- Constructor & Destructor Documentation
- Member Function Documentation
- void QwtWheel::draw (QPainter * painter, const QRect &) [protected]Redraw panel and wheel
- void QwtWheel::drawWheel (QPainter * painter, const QRect & r) [protected]
- void QwtWheel::drawWheelBackground (QPainter * painter, const QRect & r) [protected]Draw the Wheel's background gradient
- void QwtWheel::getScrollMode (const QPoint & p, int & scrollMode, int & direction) [protected, virtual]
- double QwtWheel::getValue (const QPoint & p) [protected, virtual]
- int QwtWheel::internalBorder () constReturns:
- void QwtWheel::layoutWheel (bool update = true) [protected]
- double QwtWheel::mass () const [virtual]Returns:
- QSize QwtWheel::minimumSizeHint () const [virtual]
- void QwtWheel::paintEvent (QPaintEvent * e) [protected, virtual]
- void QwtWheel::paletteChange (const QPalette &) [protected, virtual]
- void QwtWheel::resizeEvent (QResizeEvent * e) [protected, virtual]
- void QwtWheel::setColorArray () [protected]
- void QwtWheel::setInternalBorder (int w)
- void QwtWheel::setMass (double val) [virtual]
- void QwtWheel::setOrientation (Qt::Orientation o) [virtual]
- void QwtWheel::setTickCnt (int cnt)
- void QwtWheel::setTotalAngle (double angle)
- void QwtWheel::setViewAngle (double angle)
- void QwtWheel::setWheelWidth (int w)
- QSize QwtWheel::sizeHint () const [virtual]Returns:
- int QwtWheel::tickCnt () constReturns:
- double QwtWheel::totalAngle () constReturns:
- void QwtWheel::valueChange () [protected, virtual]
- double QwtWheel::viewAngle () constReturns:
- Author
NAME
QwtWheel -The Wheel Widget.
SYNOPSIS
#include <qwt_wheel.h>
Inherits QwtAbstractSlider.
Public Member Functions
QwtWheel (QWidget *parent=NULL)
virtual ~QwtWheel ()
virtual void setOrientation (Qt::Orientation)
double totalAngle () const
double viewAngle () const
int tickCnt () const
int internalBorder () const
double mass () const
void setTotalAngle (double angle)
void setTickCnt (int cnt)
void setViewAngle (double angle)
void setInternalBorder (int width)
void setMass (double val)
void setWheelWidth (int w)
virtual QSize sizeHint () const
virtual QSize minimumSizeHint () const
Protected Member Functions
virtual void resizeEvent (QResizeEvent *e)
virtual void paintEvent (QPaintEvent *e)
void layoutWheel (bool update=true)
void draw (QPainter *, const QRect &)
void drawWheel (QPainter *, const QRect &)
void drawWheelBackground (QPainter *, const QRect &)
void setColorArray ()
virtual void valueChange ()
virtual void paletteChange (const QPalette &)
virtual double getValue (const QPoint &)
virtual void getScrollMode (const QPoint &, int &scrollMode, int &direction)
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.
Constructor & Destructor Documentation
QwtWheel::QwtWheel (QWidget * parent = NULL) [explicit]
Constructor.
QwtWheel::~QwtWheel () [virtual]
Destructor.
Member Function Documentation
void QwtWheel::draw (QPainter * painter, const QRect &) [protected]Redraw panel and wheel
Parameters:
- painter Painter
void QwtWheel::drawWheel (QPainter * painter, const QRect & r) [protected]
Redraw the wheel. Parameters:
- painter painter
r contents rectangle
void QwtWheel::drawWheelBackground (QPainter * painter, const QRect & r) [protected]Draw the Wheel's background gradient
Parameters:
- painter Painter
r Bounding rectangle
void QwtWheel::getScrollMode (const QPoint & p, int & scrollMode, int & direction) [protected, virtual]
Determine the scrolling mode and direction corresponding to a specified point. Parameters:
- p point
scrollMode scrolling mode
direction direction
Implements QwtAbstractSlider.
double QwtWheel::getValue (const QPoint & p) [protected, virtual]
Determine the value corresponding to a specified point.
Implements QwtAbstractSlider.
int QwtWheel::internalBorder () constReturns:
- Internal border width of the wheel.
See also:
- setInternalBorder()
void QwtWheel::layoutWheel (bool update = true) [protected]
Recalculate the slider's geometry and layout based on.
double QwtWheel::mass () const [virtual]Returns:
- mass
Reimplemented from QwtAbstractSlider.
QSize QwtWheel::minimumSizeHint () const [virtual]
Return a minimum size hint. Warning:
- The return value is based on the wheel width.
void QwtWheel::paintEvent (QPaintEvent * e) [protected, virtual]
Qt Paint Event.
void QwtWheel::paletteChange (const QPalette &) [protected, virtual]
Call update() when the palette changes.
void QwtWheel::resizeEvent (QResizeEvent * e) [protected, virtual]
Qt Resize Event.
void QwtWheel::setColorArray () [protected]
Set up the color array for the background pixmap.
void QwtWheel::setInternalBorder (int w)
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.
Parameters:
- w border width
See also:
- internalBorder()
void QwtWheel::setMass (double val) [virtual]
Set the mass of the wheel. Assigning a mass turns the wheel into a flywheel.
Parameters:
- val the wheel's mass
Reimplemented from QwtAbstractSlider.
void QwtWheel::setOrientation (Qt::Orientation o) [virtual]
Set the wheel's orientation. Parameters:
- o Orientation. Allowed values are Qt::Horizontal and Qt::Vertical. Defaults to Qt::Horizontal.
See also:
- QwtAbstractSlider::orientation()
Reimplemented from QwtAbstractSlider.
void QwtWheel::setTickCnt (int cnt)
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.
Parameters:
- cnt Number of grooves per 360 degrees
See also:
- tickCnt()
void QwtWheel::setTotalAngle (double angle)
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.
Parameters:
- angle total angle in degrees
See also:
- totalAngle()
void QwtWheel::setViewAngle (double angle)
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.
Parameters:
- angle Visible angle in degrees
See also:
- viewAngle(), setTotalAngle()
void QwtWheel::setWheelWidth (int w)
Set the width of the wheel. Corresponds to the wheel height for horizontal orientation, and the wheel width for vertical orientation.
Parameters:
- w the wheel's width
QSize QwtWheel::sizeHint () const [virtual]Returns:
- a size hint
int QwtWheel::tickCnt () constReturns:
- Number of grooves in the wheel's surface.
See also:
- setTickCnt()
double QwtWheel::totalAngle () constReturns:
- Total angle which the wheel can be turned.
See also:
- setTotalAngle()
void QwtWheel::valueChange () [protected, virtual]
Notify value change.
Reimplemented from QwtAbstractSlider.
double QwtWheel::viewAngle () constReturns:
- Visible portion of the wheel
See also:
- setViewAngle(), totalAngle()
Author
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre