13 #include "qwt_global.h"
15 #include "qwt_event_pattern.h"
20 #include <qpainterpath.h>
104 Q_PROPERTY(
bool isEnabled READ isEnabled WRITE setEnabled )
105 Q_PROPERTY(
ResizeMode resizeMode READ resizeMode WRITE setResizeMode )
107 Q_PROPERTY(
DisplayMode trackerMode READ trackerMode WRITE setTrackerMode )
108 Q_PROPERTY( QPen trackerPen READ trackerPen WRITE setTrackerPen )
109 Q_PROPERTY( QFont trackerFont READ trackerFont WRITE setTrackerFont )
111 Q_PROPERTY(
RubberBand rubberBand READ rubberBand WRITE setRubberBand )
112 Q_PROPERTY( QPen rubberBandPen READ rubberBandPen WRITE setRubberBandPen )
186 explicit QwtPicker( RubberBand rubberBand,
187 DisplayMode trackerMode, QWidget * );
195 void setRubberBand( RubberBand );
196 RubberBand rubberBand()
const;
198 void setTrackerMode( DisplayMode );
199 DisplayMode trackerMode()
const;
201 void setResizeMode( ResizeMode );
202 ResizeMode resizeMode()
const;
204 void setRubberBandPen(
const QPen & );
205 QPen rubberBandPen()
const;
207 void setTrackerPen(
const QPen & );
208 QPen trackerPen()
const;
210 void setTrackerFont(
const QFont & );
211 QFont trackerFont()
const;
213 bool isEnabled()
const;
214 bool isActive()
const;
216 virtual bool eventFilter( QObject *, QEvent * );
218 QWidget *parentWidget();
219 const QWidget *parentWidget()
const;
221 virtual QPainterPath pickArea()
const;
223 virtual void drawRubberBand( QPainter * )
const;
224 virtual void drawTracker( QPainter * )
const;
226 virtual QRegion rubberBandMask()
const;
228 virtual QwtText trackerText(
const QPoint &pos )
const;
229 QPoint trackerPosition()
const;
230 virtual QRect trackerRect(
const QFont & )
const;
232 QPolygon selection()
const;
235 void setEnabled(
bool );
290 virtual QPolygon adjustedPoints(
const QPolygon & )
const;
292 virtual void transition(
const QEvent * );
294 virtual void begin();
295 virtual void append(
const QPoint & );
296 virtual void move(
const QPoint & );
297 virtual void remove();
298 virtual bool end(
bool ok =
true );
300 virtual bool accept( QPolygon & )
const;
301 virtual void reset();
303 virtual void widgetMousePressEvent( QMouseEvent * );
304 virtual void widgetMouseReleaseEvent( QMouseEvent * );
305 virtual void widgetMouseDoubleClickEvent( QMouseEvent * );
306 virtual void widgetMouseMoveEvent( QMouseEvent * );
307 virtual void widgetWheelEvent( QWheelEvent * );
308 virtual void widgetKeyPressEvent( QKeyEvent * );
309 virtual void widgetKeyReleaseEvent( QKeyEvent * );
310 virtual void widgetEnterEvent( QEvent * );
311 virtual void widgetLeaveEvent( QEvent * );
313 virtual void stretchSelection(
314 const QSize &oldSize,
const QSize &newSize );
316 virtual void updateDisplay();
321 const QPolygon &pickedPoints()
const;
326 void setMouseTracking(
bool );
@ Stretch
All points are scaled according to the new size,.
Definition: qwt_picker.h:179
void changed(const QPolygon &selection)
void moved(const QPoint &pos)
void selected(const QPolygon &polygon)
@ HLineRubberBand
A horizontal line ( only for QwtPickerMachine::PointSelection )
Definition: qwt_picker.h:128
ResizeMode
Definition: qwt_picker.h:177
@ PolygonRubberBand
A polygon ( only for QwtPickerMachine::PolygonSelection )
Definition: qwt_picker.h:143
DisplayMode
Display mode.
Definition: qwt_picker.h:157
QwtPicker provides selections on a widget.
Definition: qwt_picker.h:99
A class representing a text.
Definition: qwt_text.h:52
void removed(const QPoint &pos)
@ AlwaysOff
Display never.
Definition: qwt_picker.h:159
@ EllipseRubberBand
An ellipse ( only for QwtPickerMachine::RectSelection )
Definition: qwt_picker.h:140
RubberBand
Definition: qwt_picker.h:123
void appended(const QPoint &pos)
A collection of event patterns.
Definition: qwt_event_pattern.h:30
A state machine for QwtPicker selections.
Definition: qwt_picker_machine.h:29
@ CrossRubberBand
A crosshair ( only for QwtPickerMachine::PointSelection )
Definition: qwt_picker.h:134
@ VLineRubberBand
A vertical line ( only for QwtPickerMachine::PointSelection )
Definition: qwt_picker.h:131
@ AlwaysOn
Display always.
Definition: qwt_picker.h:162
@ RectRubberBand
A rectangle ( only for QwtPickerMachine::RectSelection )
Definition: qwt_picker.h:137