Eneboo - Documentación para desarrolladores
Clases | Métodos públicos | Métodos protegidos | Propiedades
Referencia de la Clase QwtWheel

The Wheel Widget. Más...

#include <qwt_wheel.h>

Diagrama de herencias de QwtWheel
QwtAbstractSlider QWidget QwtDoubleRange QObject QPaintDevice QObject QPaintDevice Qt Qt Qt Qt

Lista de todos los miembros.

Clases

class  PrivateData

Métodos públicos

 QwtWheel (QWidget *parent=NULL)
 Constructor.
 QwtWheel (QWidget *parent, const char *name)
virtual ~QwtWheel ()
 Destructor.
virtual void setOrientation (Qt::Orientation)
 Set the wheel's orientation.
double totalAngle () const
double viewAngle () const
int tickCnt () const
int internalBorder () const
double mass () const
void setTotalAngle (double angle)
 Set the total angle which the wheel can be turned.
void setTickCnt (int cnt)
 Adjust the number of grooves in the wheel's surface.
void setViewAngle (double angle)
 Specify the visible portion of the wheel.
void setInternalBorder (int width)
 Set the internal border width of the wheel.
void setMass (double val)
 Set the mass of the wheel.
void setWheelWidth (int w)
 Set the width of the wheel.
virtual QSize sizeHint () const
virtual QSize minimumSizeHint () const
 Return a minimum size hint.

Métodos protegidos

virtual void resizeEvent (QResizeEvent *e)
 Qt Resize Event.
virtual void paintEvent (QPaintEvent *e)
 Qt Paint Event.
void layoutWheel (bool update=true)
 Recalculate the slider's geometry and layout based on.
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.
void setColorArray ()
 Set up the color array for the background pixmap.
virtual void valueChange ()
 Notify value change.
virtual void paletteChange (const QPalette &)
 Call update() when the palette changes.
virtual double getValue (const QPoint &p)
 Determine the value corresponding to a specified point.
virtual void getScrollMode (const QPoint &p, int &scrollMode, int &direction)
 Determine the scrolling mode and direction corresponding to a specified point.

Propiedades

double totalAngle
double viewAngle
int tickCnt
int internalBorder
double mass

Descripción detallada

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.

Ver también:
The radio example.

Documentación del constructor y destructor

QwtWheel::QwtWheel ( QWidget parent = NULL) [explicit]

Constructor.

QwtWheel::QwtWheel ( QWidget parent,
const char *  name 
) [explicit]
QwtWheel::~QwtWheel ( ) [virtual]

Destructor.


Documentación de las funciones miembro

void QwtWheel::draw ( QPainter p,
const QRect update_rect 
) [protected]

Redraw panel and wheel.

void QwtWheel::drawWheel ( QPainter p,
const QRect r 
) [protected]

Redraw the wheel.

Parámetros:
ppainter
rcontents rectangle
void QwtWheel::drawWheelBackground ( QPainter p,
const QRect r 
) [protected]

Draw the Wheel's background gradient.

void QwtWheel::getScrollMode ( const QPoint p,
int scrollMode,
int direction 
) [protected, virtual]

Determine the scrolling mode and direction corresponding to a specified point.

Parámetros:
ppoint
scrollModescrolling mode
directiondirection

Implementa QwtAbstractSlider.

double QwtWheel::getValue ( const QPoint p) [protected, virtual]

Determine the value corresponding to a specified point.

Implementa QwtAbstractSlider.

int QwtWheel::internalBorder ( ) const
void QwtWheel::layoutWheel ( bool  update = true) [protected]

Recalculate the slider's geometry and layout based on.

double QwtWheel::mass ( ) const [virtual]

Reimplementado de QwtAbstractSlider.

QSize QwtWheel::minimumSizeHint ( ) const [virtual]

Return a minimum size hint.

Atención:
The return value is based on the wheel width.

Reimplementado de QWidget.

void QwtWheel::paintEvent ( QPaintEvent e) [protected, virtual]

Qt Paint Event.

Reimplementado de QWidget.

void QwtWheel::paletteChange ( const QPalette ) [protected, virtual]

Call update() when the palette changes.

Reimplementado de QWidget.

void QwtWheel::resizeEvent ( QResizeEvent e) [protected, virtual]

Qt Resize Event.

Reimplementado de QWidget.

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.

Parámetros:
wborder width
void QwtWheel::setMass ( double  val) [virtual]

Set the mass of the wheel.

Assigning a mass turns the wheel into a flywheel.

Parámetros:
valthe wheel's mass

Reimplementado de QwtAbstractSlider.

void QwtWheel::setOrientation ( Qt::Orientation  o) [virtual]

Set the wheel's orientation.

Parámetros:
oOrientation. Allowed values are Qt::Horizontal and Qt::Vertical. Defaults to Qt::Horizontal.
Ver también:
QwtAbstractSlider::orientation()

Reimplementado de 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.

Parámetros:
cntNumber of grooves per 360 degrees
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.

Parámetros:
angletotal angle in degrees
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.

Parámetros:
angleVisible angle in degrees
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.

Parámetros:
wthe wheel's width
QSize QwtWheel::sizeHint ( ) const [virtual]
Devuelve:
a size hint

Reimplementado de QWidget.

int QwtWheel::tickCnt ( ) const
double QwtWheel::totalAngle ( ) const
void QwtWheel::valueChange ( ) [protected, virtual]

Notify value change.

Reimplementado de QwtAbstractSlider.

double QwtWheel::viewAngle ( ) const

Documentación de propiedades

int QwtWheel::internalBorder [read, write]
double QwtWheel::mass [read, write]
Devuelve:
mass

Reimplementado de QwtAbstractSlider.

int QwtWheel::tickCnt [read, write]
double QwtWheel::totalAngle [read, write]
double QwtWheel::viewAngle [read, write]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'