Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_picker.h


Ignore:
Timestamp:
May 10, 2017, 3:20:54 PM (7 years ago)
Author:
stoecker
Message:

update qwt and qwtpolar, many QT5 fixes (unfinished)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_picker.h

    r4271 r8127  
    1818#include <qfont.h>
    1919#include <qrect.h>
     20#include <qpainterpath.h>
    2021
    2122class QWidget;
     
    2425class QKeyEvent;
    2526class QwtPickerMachine;
     27class QwtWidgetOverlay;
    2628
    2729/*!
     
    4850
    4951  QwtPicker translates the picked points into a selection using the
    50   adjustedPoints method. adjustedPoints is intended to be reimplemented
    51   to fixup 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.
    5254  (F.e. when an application accepts rectangles of a fixed aspect ratio only.)
    5355
    5456  Optionally QwtPicker support the process of collecting points by a
    55   rubberband and tracker displaying a text for the current mouse
     57  rubber band and tracker displaying a text for the current mouse
    5658  position.
    5759
     
    7981
    8082  The picker is active (isActive()), between begin() and end().
    81   In active state the rubberband is displayed, and the tracker is visible
     83  In active state the rubber band is displayed, and the tracker is visible
    8284  in case of trackerMode is ActiveOnly or AlwaysOn.
    8385
     
    9597    Q_OBJECT
    9698
    97     Q_ENUMS( RubberBand )
    98     Q_ENUMS( DisplayMode )
    99     Q_ENUMS( ResizeMode )
     99    Q_ENUMS( RubberBand DisplayMode ResizeMode )
    100100
    101101    Q_PROPERTY( bool isEnabled READ isEnabled WRITE setEnabled )
     
    111111public:
    112112    /*!
    113       Rubberband style
     113      Rubber band style
    114114
    115115      The default value is QwtPicker::NoRubberBand.
     
    122122        NoRubberBand = 0,
    123123
    124         //! A horizontal line ( only for QwtPicker::PointSelection )
     124        //! A horizontal line ( only for QwtPickerMachine::PointSelection )
    125125        HLineRubberBand,
    126126
    127         //! A vertical line ( only for QwtPicker::PointSelection )
     127        //! A vertical line ( only for QwtPickerMachine::PointSelection )
    128128        VLineRubberBand,
    129129
    130         //! A crosshair ( only for QwtPicker::PointSelection )
     130        //! A crosshair ( only for QwtPickerMachine::PointSelection )
    131131        CrossRubberBand,
    132132
    133         //! A rectangle ( only for QwtPicker::RectSelection )
     133        //! A rectangle ( only for QwtPickerMachine::RectSelection )
    134134        RectRubberBand,
    135135
    136         //! An ellipse ( only for QwtPicker::RectSelection )
     136        //! An ellipse ( only for QwtPickerMachine::RectSelection )
    137137        EllipseRubberBand,
    138138
    139         //! A polygon ( only for QwtPicker::&PolygonSelection )
     139        //! A polygon ( only for QwtPickerMachine::PolygonSelection )
    140140        PolygonRubberBand,
    141141
     
    216216    const QWidget *parentWidget() const;
    217217
    218     virtual QRect pickRect() const;
     218    virtual QPainterPath pickArea() const;
    219219
    220220    virtual void drawRubberBand( QPainter * ) const;
    221221    virtual void drawTracker( QPainter * ) const;
     222
     223    virtual QRegion rubberBandMask() const;
    222224
    223225    virtual QwtText trackerText( const QPoint &pos ) const;
     
    269271      selection has been removed.
    270272
     273      \param pos Position of the point, that has been removed
    271274      \sa remove(), appended()
    272275    */
     
    310313    virtual void updateDisplay();
    311314
    312     const QWidget *rubberBandWidget() const;
    313     const QWidget *trackerWidget() const;
     315    const QwtWidgetOverlay *rubberBandOverlay() const;
     316    const QwtWidgetOverlay *trackerOverlay() const;
    314317
    315318    const QPolygon &pickedPoints() const;
     
    320323    void setMouseTracking( bool );
    321324
    322     class PickerWidget;
    323325    class PrivateData;
    324326    PrivateData *d_data;
Note: See TracChangeset for help on using the changeset viewer.