Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_zoomer.h
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_zoomer.h
r8127 r9383 23 23 the coordinates of the current mouse position. 24 24 25 Zooming can be repeated as often as possible, limited only by 25 Zooming can be repeated as often as possible, limited only by 26 26 maxStackDepth() or minZoomSize(). Each rectangle is pushed on a stack. 27 27 28 The default setting how to select rectangles is 28 The default setting how to select rectangles is 29 29 a QwtPickerDragRectMachine with the following bindings: 30 30 31 31 - QwtEventPattern::MouseSelect1\n 32 The first point of the zoom rectangle is selected by a mouse press, 32 The first point of the zoom rectangle is selected by a mouse press, 33 33 the second point from the position, where the mouse is released. 34 34 … … 45 45 - QwtEventPattern::MouseSelect3, QwtEventPattern::KeyUndo\n 46 46 Zoom out one position on the zoom stack 47 47 48 48 - QwtEventPattern::MouseSelect6, QwtEventPattern::KeyRedo\n 49 49 Zoom in one position on the zoom stack … … 53 53 54 54 The setKeyPattern() and setMousePattern() functions can be used 55 to configure the zoomer actions. The following example 56 shows, how to configure the 'I' and 'O' keys for zooming in and out 57 one position on the zoom stack. The "Home" key is used to 55 to configure the zoomer actions. The following example 56 shows, how to configure the 'I' and 'O' keys for zooming in and out 57 one position on the zoom stack. The "Home" key is used to 58 58 "unzoom" the plot. 59 59 … … 103 103 104 104 public Q_SLOTS: 105 void moveBy( double x, doubley );105 void moveBy( double dx, double dy ); 106 106 virtual void moveTo( const QPointF & ); 107 107 108 108 virtual void zoom( const QRectF & ); 109 virtual void zoom( int up);109 virtual void zoom( int offset ); 110 110 111 111 Q_SIGNALS:
Note:
See TracChangeset
for help on using the changeset viewer.