Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_wheel.h


Ignore:
Timestamp:
Nov 3, 2026, 10:53:35 AM (4 weeks ago)
Author:
stuerze
Message:

deprecated functions exchanged libs updated

File:
1 edited

Legend:

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

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1515
    1616/*!
    17   \brief The Wheel Widget
     17   \brief The Wheel Widget
    1818
    19   The wheel widget can be used to change values over a very large range
    20   in very small steps. Using the setMass() member, it can be configured
    21   as a flying wheel.
     19   The wheel widget can be used to change values over a very large range
     20   in very small steps. Using the setMass() member, it can be configured
     21   as a flying wheel.
    2222
    23   The default range of the wheel is [0.0, 100.0]
     23   The default range of the wheel is [0.0, 100.0]
    2424
    25   \sa The radio example.
    26 */
    27 class QWT_EXPORT QwtWheel: public QWidget
     25   \sa The radio example.
     26 */
     27class QWT_EXPORT QwtWheel : public QWidget
    2828{
    2929    Q_OBJECT
    3030
    3131    Q_PROPERTY( Qt::Orientation orientation
    32                 READ orientation WRITE setOrientation )
     32        READ orientation WRITE setOrientation )
    3333
    34     Q_PROPERTY( double value READ value WRITE setValue )
     34    Q_PROPERTY( double value READ value WRITE setValue NOTIFY valueChanged USER true  )
     35
    3536    Q_PROPERTY( double minimum READ minimum WRITE setMinimum )
    3637    Q_PROPERTY( double maximum READ maximum WRITE setMaximum )
    … …  
    5455    Q_PROPERTY( int wheelBorderWidth READ wheelBorderWidth WRITE setWheelBorderWidth )
    5556
    56 public:
    57     explicit QwtWheel( QWidget *parent = NULL );
     57  public:
     58    explicit QwtWheel( QWidget* parent = NULL );
    5859    virtual ~QwtWheel();
    5960
    … …  
    109110    double mass() const;
    110111
    111 public Q_SLOTS:
     112  public Q_SLOTS:
    112113    void setValue( double );
    113114    void setTotalAngle ( double );
    … …  
    115116    void setMass( double );
    116117
    117 Q_SIGNALS:
     118  Q_SIGNALS:
    118119
    119120    /*!
    120       \brief Notify a change of value.
     121       \brief Notify a change of value.
    121122
    122       When tracking is enabled this signal will be emitted every
    123       time the value changes.
     123       When tracking is enabled this signal will be emitted every
     124       time the value changes.
    124125
    125       \param value new value
    126       \sa setTracking()
    127     */
     126       \param value new value
     127       \sa setTracking()
     128     */
    128129    void valueChanged( double value );
    129130
    130131    /*!
    131       This signal is emitted when the user presses the
    132       the wheel with the mouse
    133     */
     132       This signal is emitted when the user presses the
     133       the wheel with the mouse
     134     */
    134135    void wheelPressed();
    135136
    136137    /*!
    137       This signal is emitted when the user releases the mouse
    138     */
     138       This signal is emitted when the user releases the mouse
     139     */
    139140    void wheelReleased();
    140141
    141142    /*!
    142       This signal is emitted when the user moves the
    143       wheel with the mouse.
     143       This signal is emitted when the user moves the
     144       wheel with the mouse.
    144145
    145       \param value new value
    146     */
     146       \param value new value
     147     */
    147148    void wheelMoved( double value );
    148149
    149 protected:
    150     virtual void paintEvent( QPaintEvent * );
    151     virtual void mousePressEvent( QMouseEvent * );
    152     virtual void mouseReleaseEvent( QMouseEvent * );
    153     virtual void mouseMoveEvent( QMouseEvent * );
    154     virtual void keyPressEvent( QKeyEvent * );
    155     virtual void wheelEvent( QWheelEvent * );
    156     virtual void timerEvent( QTimerEvent * );
     150  protected:
     151    virtual void paintEvent( QPaintEvent* ) QWT_OVERRIDE;
     152    virtual void mousePressEvent( QMouseEvent* ) QWT_OVERRIDE;
     153    virtual void mouseReleaseEvent( QMouseEvent* ) QWT_OVERRIDE;
     154    virtual void mouseMoveEvent( QMouseEvent* ) QWT_OVERRIDE;
     155    virtual void keyPressEvent( QKeyEvent* ) QWT_OVERRIDE;
     156    virtual void wheelEvent( QWheelEvent* ) QWT_OVERRIDE;
     157    virtual void timerEvent( QTimerEvent* ) QWT_OVERRIDE;
    157158
    158159    void stopFlying();
    … …  
    160161    QRect wheelRect() const;
    161162
    162     virtual QSize sizeHint() const;
    163     virtual QSize minimumSizeHint() const;
     163    virtual QSize sizeHint() const QWT_OVERRIDE;
     164    virtual QSize minimumSizeHint() const QWT_OVERRIDE;
    164165
    165     virtual void drawTicks( QPainter *, const QRectF & );
    166     virtual void drawWheelBackground( QPainter *, const QRectF & );
     166    virtual void drawTicks( QPainter*, const QRectF& );
     167    virtual void drawWheelBackground( QPainter*, const QRectF& );
    167168
    168     virtual double valueAt( const QPoint & ) const;
     169    virtual double valueAt( const QPoint& ) const;
    169170
    170 private:
     171  private:
    171172    double alignedValue( double ) const;
    172173    double boundedValue( double ) const;
    173174
    174175    class PrivateData;
    175     PrivateData *d_data;
     176    PrivateData* m_data;
    176177};
    177178
Note: See TracChangeset for help on using the changeset viewer.