Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_magnifier.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (4 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_magnifier.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_magnifier.h
r8127 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 9 9 10 10 #ifndef QWT_MAGNIFIER_H 11 #define QWT_MAGNIFIER_H 111 #define QWT_MAGNIFIER_H 12 12 13 13 #include "qwt_global.h" … … 20 20 21 21 /*! 22 \brief QwtMagnifier provides zooming, by magnifying in steps. 22 \brief QwtMagnifier provides zooming, by magnifying in steps. 23 23 24 Using QwtMagnifier a plot can be zoomed in/out in steps using 25 keys, the mouse wheel or moving a mouse button in vertical direction. 26 */ 27 class QWT_EXPORT QwtMagnifier: public QObject 24 Using QwtMagnifier a plot can be zoomed in/out in steps using 25 keys, the mouse wheel or moving a mouse button in vertical direction. 26 */ 27 class QWT_EXPORT QwtMagnifier : public QObject 28 28 { 29 29 Q_OBJECT 30 30 31 public: 32 explicit QwtMagnifier( QWidget * );31 public: 32 explicit QwtMagnifier( QWidget* ); 33 33 virtual ~QwtMagnifier(); 34 34 35 QWidget *parentWidget();36 const QWidget *parentWidget() const;35 QWidget* parentWidget(); 36 const QWidget* parentWidget() const; 37 37 38 38 void setEnabled( bool ); … … 44 44 45 45 void setMouseButton( Qt::MouseButton, Qt::KeyboardModifiers = Qt::NoModifier ); 46 void getMouseButton( Qt::MouseButton &, Qt::KeyboardModifiers& ) const;46 void getMouseButton( Qt::MouseButton&, Qt::KeyboardModifiers& ) const; 47 47 48 48 // mouse wheel … … 58 58 59 59 void setZoomInKey( int key, Qt::KeyboardModifiers = Qt::NoModifier ); 60 void getZoomInKey( int &key, Qt::KeyboardModifiers& ) const;60 void getZoomInKey( int& key, Qt::KeyboardModifiers& ) const; 61 61 62 62 void setZoomOutKey( int key, Qt::KeyboardModifiers = Qt::NoModifier ); 63 void getZoomOutKey( int &key, Qt::KeyboardModifiers& ) const;63 void getZoomOutKey( int& key, Qt::KeyboardModifiers& ) const; 64 64 65 virtual bool eventFilter( QObject *, QEvent* );65 virtual bool eventFilter( QObject*, QEvent* ) QWT_OVERRIDE; 66 66 67 protected: 67 protected: 68 68 /*! 69 69 Rescale the parent widget … … 72 72 virtual void rescale( double factor ) = 0; 73 73 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 * );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* ); 80 80 81 private: 81 private: 82 82 class PrivateData; 83 PrivateData *d_data;83 PrivateData* m_data; 84 84 }; 85 85
Note:
See TracChangeset
for help on using the changeset viewer.
