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_abstract_slider.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 An abstract base class for slider widgets with a scale
     17   \brief An abstract base class for slider widgets with a scale
    1818
    19   A slider widget displays a value according to a scale.
    20   The class is designed as a common super class for widgets like
    21   QwtKnob, QwtDial and QwtSlider.
     19   A slider widget displays a value according to a scale.
     20   The class is designed as a common super class for widgets like
     21   QwtKnob, QwtDial and QwtSlider.
    2222
    23   When the slider is nor readOnly() its value can be modified
    24   by keyboard, mouse and wheel inputs.
     23   When the slider is nor readOnly() its value can be modified
     24   by keyboard, mouse and wheel inputs.
    2525
    26   The range of the slider is divided into a number of steps from
    27   which the value increments according to user inputs depend.
    28   Only for linear scales the number of steps correspond with
    29   a fixed step size.
    30 */
     26   The range of the slider is divided into a number of steps from
     27   which the value increments according to user inputs depend.
     28   Only for linear scales the number of steps correspond with
     29   a fixed step size.
     30 */
    3131
    32 class QWT_EXPORT QwtAbstractSlider: public QwtAbstractScale
     32class QWT_EXPORT QwtAbstractSlider : public QwtAbstractScale
    3333{
    3434    Q_OBJECT
    3535
    36     Q_PROPERTY( double value READ value WRITE setValue )
     36    Q_PROPERTY( double value READ value WRITE setValue NOTIFY valueChanged USER true )
    3737
    3838    Q_PROPERTY( uint totalSteps READ totalSteps WRITE setTotalSteps )
    … …  
    4747    Q_PROPERTY( bool invertedControls READ invertedControls WRITE setInvertedControls )
    4848
    49 public:
    50     explicit QwtAbstractSlider( QWidget *parent = NULL );
     49  public:
     50    explicit QwtAbstractSlider( QWidget* parent = NULL );
    5151    virtual ~QwtAbstractSlider();
    5252
    … …  
    8080    bool invertedControls() const;
    8181
    82 public Q_SLOTS:
     82  public Q_SLOTS:
    8383    void setValue( double value );
    8484
    85 Q_SIGNALS:
     85  Q_SIGNALS:
    8686
    8787    /*!
    88       \brief Notify a change of value.
     88       \brief Notify a change of value.
    8989
    90       When tracking is enabled (default setting),
    91       this signal will be emitted every time the value changes.
     90       When tracking is enabled (default setting),
     91       this signal will be emitted every time the value changes.
    9292
    93       \param value New value
     93       \param value New value
    9494
    95       \sa setTracking(), sliderMoved()
    96     */
     95       \sa setTracking(), sliderMoved()
     96     */
    9797    void valueChanged( double value );
    9898
    9999    /*!
    100       This signal is emitted when the user presses the
    101       movable part of the slider.
    102     */
     100       This signal is emitted when the user presses the
     101       movable part of the slider.
     102     */
    103103    void sliderPressed();
    104104
    105105    /*!
    106       This signal is emitted when the user releases the
    107       movable part of the slider.
    108     */
     106       This signal is emitted when the user releases the
     107       movable part of the slider.
     108     */
    109109    void sliderReleased();
    110110
    111111    /*!
    112       This signal is emitted when the user moves the
    113       slider with the mouse.
     112       This signal is emitted when the user moves the
     113       slider with the mouse.
    114114
    115       \param value New value
     115       \param value New value
    116116
    117       \sa valueChanged()
    118     */
     117       \sa valueChanged()
     118     */
    119119    void sliderMoved( double value );
    120120
    121 protected:
    122     virtual void mousePressEvent( QMouseEvent * );
    123     virtual void mouseReleaseEvent( QMouseEvent * );
    124     virtual void mouseMoveEvent( QMouseEvent * );
    125     virtual void keyPressEvent( QKeyEvent * );
    126     virtual void wheelEvent( QWheelEvent * );
     121  protected:
     122    virtual void mousePressEvent( QMouseEvent* ) QWT_OVERRIDE;
     123    virtual void mouseReleaseEvent( QMouseEvent* ) QWT_OVERRIDE;
     124    virtual void mouseMoveEvent( QMouseEvent* ) QWT_OVERRIDE;
     125    virtual void keyPressEvent( QKeyEvent* ) QWT_OVERRIDE;
     126    virtual void wheelEvent( QWheelEvent* ) QWT_OVERRIDE;
    127127
    128128    /*!
    129       \brief Determine what to do when the user presses a mouse button.
     129       \brief Determine what to do when the user presses a mouse button.
    130130
    131       \param pos Mouse position
     131       \param pos Mouse position
    132132
    133       \retval True, when pos is a valid scroll position
    134       \sa scrolledTo()
    135     */
    136     virtual bool isScrollPosition( const QPoint &pos ) const = 0;
     133       \retval True, when pos is a valid scroll position
     134       \sa scrolledTo()
     135     */
     136    virtual bool isScrollPosition( const QPoint& pos ) const = 0;
    137137
    138138    /*!
    139       \brief Determine the value for a new position of the
     139       \brief Determine the value for a new position of the
    140140             movable part of the slider
    141141
    142       \param pos Mouse position
     142       \param pos Mouse position
    143143
    144       \return Value for the mouse position
    145       \sa isScrollPosition()
    146     */
    147     virtual double scrolledTo( const QPoint &pos ) const = 0;
     144       \return Value for the mouse position
     145       \sa isScrollPosition()
     146     */
     147    virtual double scrolledTo( const QPoint& pos ) const = 0;
    148148
    149149    void incrementValue( int stepCount );
    150150
    151     virtual void scaleChange();
     151    virtual void scaleChange() QWT_OVERRIDE;
    152152
    153 protected:
     153  protected:
    154154    virtual void sliderChange();
    155155
    … …  
    157157        double value, int stepCount ) const;
    158158
    159 private:
     159  private:
    160160    double alignedValue( double ) const;
    161161    double boundedValue( double ) const;
    162162
    163163    class PrivateData;
    164     PrivateData *d_data;
     164    PrivateData* m_data;
    165165};
    166166
Note: See TracChangeset for help on using the changeset viewer.