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 );
245 void activated(
bool on );
253 void selected(
const QPolygon &polygon );
261 void appended(
const QPoint &pos );
270 void moved(
const QPoint &pos );
279 void removed(
const QPoint &pos );
287 void changed(
const QPolygon &selection );
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;
324 void init( QWidget *, RubberBand rubberBand, DisplayMode trackerMode );
326 void setMouseTracking(
bool );