13 #include "qwt_global.h"
15 #include "qwt_event_pattern.h"
101 Q_PROPERTY(
bool isEnabled READ isEnabled WRITE setEnabled )
102 Q_PROPERTY(
ResizeMode resizeMode READ resizeMode WRITE setResizeMode )
104 Q_PROPERTY(
DisplayMode trackerMode READ trackerMode WRITE setTrackerMode )
105 Q_PROPERTY( QPen trackerPen READ trackerPen WRITE setTrackerPen )
106 Q_PROPERTY( QFont trackerFont READ trackerFont WRITE setTrackerFont )
108 Q_PROPERTY(
RubberBand rubberBand READ rubberBand WRITE setRubberBand )
109 Q_PROPERTY( QPen rubberBandPen READ rubberBandPen WRITE setRubberBandPen )
183 explicit QwtPicker( RubberBand rubberBand,
184 DisplayMode trackerMode, QWidget * );
192 void setRubberBand( RubberBand );
193 RubberBand rubberBand()
const;
195 void setTrackerMode( DisplayMode );
196 DisplayMode trackerMode()
const;
198 void setResizeMode( ResizeMode );
199 ResizeMode resizeMode()
const;
201 void setRubberBandPen(
const QPen & );
202 QPen rubberBandPen()
const;
204 void setTrackerPen(
const QPen & );
205 QPen trackerPen()
const;
207 void setTrackerFont(
const QFont & );
208 QFont trackerFont()
const;
210 bool isEnabled()
const;
211 bool isActive()
const;
213 virtual bool eventFilter( QObject *, QEvent * );
215 QWidget *parentWidget();
216 const QWidget *parentWidget()
const;
218 virtual QRect pickRect()
const;
220 virtual void drawRubberBand( QPainter * )
const;
221 virtual void drawTracker( QPainter * )
const;
223 virtual QwtText trackerText(
const QPoint &pos )
const;
224 QPoint trackerPosition()
const;
225 virtual QRect trackerRect(
const QFont & )
const;
227 QPolygon selection()
const;
230 void setEnabled(
bool );
240 void activated(
bool on );
248 void selected(
const QPolygon &polygon );
256 void appended(
const QPoint &pos );
265 void moved(
const QPoint &pos );
273 void removed(
const QPoint &pos );
281 void changed(
const QPolygon &selection );
284 virtual QPolygon adjustedPoints(
const QPolygon & )
const;
286 virtual void transition(
const QEvent * );
288 virtual void begin();
289 virtual void append(
const QPoint & );
290 virtual void move(
const QPoint & );
291 virtual void remove();
292 virtual bool end(
bool ok =
true );
294 virtual bool accept( QPolygon & )
const;
295 virtual void reset();
297 virtual void widgetMousePressEvent( QMouseEvent * );
298 virtual void widgetMouseReleaseEvent( QMouseEvent * );
299 virtual void widgetMouseDoubleClickEvent( QMouseEvent * );
300 virtual void widgetMouseMoveEvent( QMouseEvent * );
301 virtual void widgetWheelEvent( QWheelEvent * );
302 virtual void widgetKeyPressEvent( QKeyEvent * );
303 virtual void widgetKeyReleaseEvent( QKeyEvent * );
304 virtual void widgetEnterEvent( QEvent * );
305 virtual void widgetLeaveEvent( QEvent * );
307 virtual void stretchSelection(
const QSize &oldSize,
308 const QSize &newSize );
310 virtual void updateDisplay();
312 const QWidget *rubberBandWidget()
const;
313 const QWidget *trackerWidget()
const;
315 const QPolygon &pickedPoints()
const;
318 void init( QWidget *, RubberBand rubberBand, DisplayMode trackerMode );
320 void setMouseTracking(
bool );