10 #ifndef QWT_MAGNIFIER_H 11 #define QWT_MAGNIFIER_H 1 35 QWidget *parentWidget();
36 const QWidget *parentWidget()
const;
38 void setEnabled(
bool );
39 bool isEnabled()
const;
42 void setMouseFactor(
double );
43 double mouseFactor()
const;
45 void setMouseButton( Qt::MouseButton, Qt::KeyboardModifiers = Qt::NoModifier );
46 void getMouseButton( Qt::MouseButton &, Qt::KeyboardModifiers & )
const;
49 void setWheelFactor(
double );
50 double wheelFactor()
const;
52 void setWheelModifiers( Qt::KeyboardModifiers );
53 Qt::KeyboardModifiers wheelModifiers()
const;
56 void setKeyFactor(
double );
57 double keyFactor()
const;
59 void setZoomInKey(
int key, Qt::KeyboardModifiers = Qt::NoModifier );
60 void getZoomInKey(
int &key, Qt::KeyboardModifiers & )
const;
62 void setZoomOutKey(
int key, Qt::KeyboardModifiers = Qt::NoModifier );
63 void getZoomOutKey(
int &key, Qt::KeyboardModifiers & )
const;
65 virtual bool eventFilter( QObject *, QEvent * );
72 virtual void rescale(
double factor ) = 0;
74 virtual void widgetMousePressEvent( QMouseEvent * );
75 virtual void widgetMouseReleaseEvent( QMouseEvent * );
76 virtual void widgetMouseMoveEvent( QMouseEvent * );
77 virtual void widgetWheelEvent( QWheelEvent * );
78 virtual void widgetKeyPressEvent( QKeyEvent * );
79 virtual void widgetKeyReleaseEvent( QKeyEvent * );
QwtMagnifier provides zooming, by magnifying in steps.