Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_picker.h
- Timestamp:
- May 10, 2017, 3:20:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_picker.h
r4271 r8127 18 18 #include <qfont.h> 19 19 #include <qrect.h> 20 #include <qpainterpath.h> 20 21 21 22 class QWidget; … … 24 25 class QKeyEvent; 25 26 class QwtPickerMachine; 27 class QwtWidgetOverlay; 26 28 27 29 /*! … … 48 50 49 51 QwtPicker translates the picked points into a selection using the 50 adjustedPoints method. adjustedPointsis intended to be reimplemented51 to fix up the selection according to application specific requirements.52 adjustedPoints() method. adjustedPoints() is intended to be reimplemented 53 to fix up the selection according to application specific requirements. 52 54 (F.e. when an application accepts rectangles of a fixed aspect ratio only.) 53 55 54 56 Optionally QwtPicker support the process of collecting points by a 55 rubber band and tracker displaying a text for the current mouse57 rubber band and tracker displaying a text for the current mouse 56 58 position. 57 59 … … 79 81 80 82 The picker is active (isActive()), between begin() and end(). 81 In active state the rubber band is displayed, and the tracker is visible83 In active state the rubber band is displayed, and the tracker is visible 82 84 in case of trackerMode is ActiveOnly or AlwaysOn. 83 85 … … 95 97 Q_OBJECT 96 98 97 Q_ENUMS( RubberBand ) 98 Q_ENUMS( DisplayMode ) 99 Q_ENUMS( ResizeMode ) 99 Q_ENUMS( RubberBand DisplayMode ResizeMode ) 100 100 101 101 Q_PROPERTY( bool isEnabled READ isEnabled WRITE setEnabled ) … … 111 111 public: 112 112 /*! 113 Rubber band style113 Rubber band style 114 114 115 115 The default value is QwtPicker::NoRubberBand. … … 122 122 NoRubberBand = 0, 123 123 124 //! A horizontal line ( only for QwtPicker ::PointSelection )124 //! A horizontal line ( only for QwtPickerMachine::PointSelection ) 125 125 HLineRubberBand, 126 126 127 //! A vertical line ( only for QwtPicker ::PointSelection )127 //! A vertical line ( only for QwtPickerMachine::PointSelection ) 128 128 VLineRubberBand, 129 129 130 //! A crosshair ( only for QwtPicker ::PointSelection )130 //! A crosshair ( only for QwtPickerMachine::PointSelection ) 131 131 CrossRubberBand, 132 132 133 //! A rectangle ( only for QwtPicker ::RectSelection )133 //! A rectangle ( only for QwtPickerMachine::RectSelection ) 134 134 RectRubberBand, 135 135 136 //! An ellipse ( only for QwtPicker ::RectSelection )136 //! An ellipse ( only for QwtPickerMachine::RectSelection ) 137 137 EllipseRubberBand, 138 138 139 //! A polygon ( only for QwtPicker ::&PolygonSelection )139 //! A polygon ( only for QwtPickerMachine::PolygonSelection ) 140 140 PolygonRubberBand, 141 141 … … 216 216 const QWidget *parentWidget() const; 217 217 218 virtual Q Rect pickRect() const;218 virtual QPainterPath pickArea() const; 219 219 220 220 virtual void drawRubberBand( QPainter * ) const; 221 221 virtual void drawTracker( QPainter * ) const; 222 223 virtual QRegion rubberBandMask() const; 222 224 223 225 virtual QwtText trackerText( const QPoint &pos ) const; … … 269 271 selection has been removed. 270 272 273 \param pos Position of the point, that has been removed 271 274 \sa remove(), appended() 272 275 */ … … 310 313 virtual void updateDisplay(); 311 314 312 const Q Widget *rubberBandWidget() const;313 const Q Widget *trackerWidget() const;315 const QwtWidgetOverlay *rubberBandOverlay() const; 316 const QwtWidgetOverlay *trackerOverlay() const; 314 317 315 318 const QPolygon &pickedPoints() const; … … 320 323 void setMouseTracking( bool ); 321 324 322 class PickerWidget;323 325 class PrivateData; 324 326 PrivateData *d_data;
Note:
See TracChangeset
for help on using the changeset viewer.