13 #include "qwt_global.h"
14 #include "qwt_abstract_slider.h"
48 Q_PROPERTY(
KnobStyle knobStyle READ knobStyle WRITE setKnobStyle )
49 Q_PROPERTY(
int knobWidth READ knobWidth WRITE setKnobWidth )
50 Q_PROPERTY( Qt::Alignment alignment READ alignment WRITE setAlignment )
51 Q_PROPERTY(
double totalAngle READ totalAngle WRITE setTotalAngle )
52 Q_PROPERTY(
int numTurns READ numTurns WRITE setNumTurns )
53 Q_PROPERTY(
MarkerStyle markerStyle READ markerStyle WRITE setMarkerStyle )
54 Q_PROPERTY(
int markerSize READ markerSize WRITE setMarkerSize )
55 Q_PROPERTY(
int borderWidth READ borderWidth WRITE setBorderWidth )
122 explicit QwtKnob( QWidget* parent = NULL );
125 void setAlignment( Qt::Alignment );
126 Qt::Alignment alignment()
const;
128 void setKnobWidth(
int );
129 int knobWidth()
const;
131 void setNumTurns(
int );
132 int numTurns()
const;
134 void setTotalAngle (
double angle );
135 double totalAngle()
const;
137 void setKnobStyle( KnobStyle );
138 KnobStyle knobStyle()
const;
140 void setBorderWidth(
int );
141 int borderWidth()
const;
143 void setMarkerStyle( MarkerStyle );
144 MarkerStyle markerStyle()
const;
146 void setMarkerSize(
int );
147 int markerSize()
const;
149 virtual QSize sizeHint()
const;
150 virtual QSize minimumSizeHint()
const;
157 QRect knobRect()
const;
160 virtual void paintEvent( QPaintEvent * );
161 virtual void changeEvent( QEvent * );
163 virtual void drawKnob( QPainter *,
const QRectF & )
const;
165 virtual void drawFocusIndicator( QPainter * )
const;
167 virtual void drawMarker( QPainter *,
168 const QRectF &,
double angle )
const;
170 virtual double scrolledTo(
const QPoint & )
const;
@ Dot
Paint a circle in QPalette::ButtonText color.
Definition: qwt_knob.h:107
@ Raised
Build a gradient from QPalette::Midlight and QPalette::Button.
Definition: qwt_knob.h:72
MarkerStyle
Marker type.
Definition: qwt_knob.h:96
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
@ Sunken
Definition: qwt_knob.h:78
@ Nub
Definition: qwt_knob.h:113
@ Triangle
Paint a triangle in QPalette::ButtonText color.
Definition: qwt_knob.h:104
KnobStyle
Style of the knob surface.
Definition: qwt_knob.h:67
virtual double scrolledTo(const QPoint &pos) const =0
Determine the value for a new position of the movable part of the slider.
@ Flat
Fill the knob with a brush from QPalette::Button.
Definition: qwt_knob.h:69
The Knob Widget.
Definition: qwt_knob.h:43
A class for drawing round scales.
Definition: qwt_round_scale_draw.h:31
@ Tick
Paint a single tick in QPalette::ButtonText color.
Definition: qwt_knob.h:101