13 #include "qwt_global.h"
14 #include "qwt_abstract_slider.h"
15 #include "qwt_abstract_scale_draw.h"
55 Q_PROPERTY(
int lineWidth READ lineWidth WRITE setLineWidth )
56 Q_PROPERTY(
Shadow frameShadow READ frameShadow WRITE setFrameShadow )
57 Q_PROPERTY(
Mode mode READ mode WRITE setMode )
58 Q_PROPERTY(
double origin READ origin WRITE setOrigin )
59 Q_PROPERTY(
double minScaleArc READ minScaleArc WRITE setMinScaleArc )
60 Q_PROPERTY(
double maxScaleArc READ maxScaleArc WRITE setMaxScaleArc )
75 Plain = QFrame::Plain,
78 Raised = QFrame::Raised,
81 Sunken = QFrame::Sunken
94 explicit QwtDial( QWidget *parent = NULL );
97 void setFrameShadow( Shadow );
98 Shadow frameShadow()
const;
100 void setLineWidth(
int );
101 int lineWidth()
const;
103 void setMode( Mode );
106 void setScaleArc(
double minArc,
double maxArc );
108 void setMinScaleArc(
double );
109 double minScaleArc()
const;
111 void setMaxScaleArc(
double );
112 double maxScaleArc()
const;
114 virtual void setOrigin(
double );
115 double origin()
const;
121 QRect boundingRect()
const;
122 QRect innerRect()
const;
124 virtual QRect scaleInnerRect()
const;
126 virtual QSize sizeHint()
const;
127 virtual QSize minimumSizeHint()
const;
136 virtual void paintEvent( QPaintEvent * );
137 virtual void changeEvent( QEvent * );
139 virtual void drawFrame( QPainter * );
140 virtual void drawContents( QPainter * )
const;
141 virtual void drawFocusIndicator( QPainter * )
const;
143 void invalidateCache();
145 virtual void drawScale( QPainter *,
146 const QPointF ¢er,
double radius )
const;
148 virtual void drawScaleContents( QPainter *painter,
149 const QPointF ¢er,
double radius )
const;
151 virtual void drawNeedle( QPainter *,
const QPointF &,
152 double radius,
double direction, QPalette::ColorGroup )
const;
154 virtual double scrolledTo(
const QPoint & )
const;
161 void setAngleRange(
double angle,
double span );
162 void drawNeedle( QPainter * )
const;
Shadow
Frame shadow.
Definition: qwt_dial.h:73
virtual bool isScrollPosition(const QPoint &pos) const =0
Determine what to do when the user presses a mouse button.
An abstract base class for slider widgets with a scale.
Definition: qwt_abstract_slider.h:33
virtual void wheelEvent(QWheelEvent *)
Definition: qwt_abstract_slider.cpp:299
Base class for needles that can be used in a QwtDial.
Definition: qwt_dial_needle.h:29
Mode
Mode controlling whether the needle or the scale is rotating.
Definition: qwt_dial.h:86
@ RotateNeedle
The needle is rotating.
Definition: qwt_dial.h:88
QwtDial class provides a rounded range control.
Definition: qwt_dial.h:50
virtual double scrolledTo(const QPoint &pos) const =0
Determine the value for a new position of the movable part of the slider.
A class for drawing round scales.
Definition: qwt_round_scale_draw.h:31
virtual void sliderChange()
Calling update()
Definition: qwt_abstract_slider.cpp:819
virtual void scaleChange()
Definition: qwt_abstract_slider.cpp:801