Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_thermo.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_thermo.h

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1919
    2020/*!
    21   \brief The Thermometer Widget
     21   \brief The Thermometer Widget
    2222
    23   QwtThermo is a widget which displays a value in an interval. It supports:
    24   - a horizontal or vertical layout;
    25   - a range;
    26   - a scale;
    27   - an alarm level.
     23   QwtThermo is a widget which displays a value in an interval. It supports:
     24   - a horizontal or vertical layout;
     25   - a range;
     26   - a scale;
     27   - an alarm level.
    2828
    29   \image html sysinfo.png
     29   \image html sysinfo.png
    3030
    31   The fill colors might be calculated from an optional color map
    32   If no color map has been assigned QwtThermo uses the
    33   following colors/brushes from the widget palette:
     31   The fill colors might be calculated from an optional color map
     32   If no color map has been assigned QwtThermo uses the
     33   following colors/brushes from the widget palette:
    3434
    35   - QPalette::Base
     35   - QPalette::Base
    3636    Background of the pipe
    37   - QPalette::ButtonText
     37   - QPalette::ButtonText
    3838    Fill brush below the alarm level
    39   - QPalette::Highlight
     39   - QPalette::Highlight
    4040    Fill brush for the values above the alarm level
    41   - QPalette::WindowText
     41   - QPalette::WindowText
    4242    For the axis of the scale
    43   - QPalette::Text
     43   - QPalette::Text
    4444    For the labels of the scale
    45 */
    46 class QWT_EXPORT QwtThermo: public QwtAbstractScale
     45 */
     46class QWT_EXPORT QwtThermo : public QwtAbstractScale
    4747{
    4848    Q_OBJECT
    … …  
    6363    Q_PROPERTY( int borderWidth READ borderWidth WRITE setBorderWidth )
    6464    Q_PROPERTY( int pipeWidth READ pipeWidth WRITE setPipeWidth )
    65     Q_PROPERTY( double value READ value WRITE setValue )
     65    Q_PROPERTY( double value READ value WRITE setValue USER true )
    6666
    67 public:
     67  public:
    6868
    6969    /*!
    70       Position of the scale
    71       \sa setScalePosition(), setOrientation()
     70       Position of the scale
     71       \sa setScalePosition(), setOrientation()
    7272     */
    7373    enum ScalePosition
    … …  
    8484
    8585    /*!
    86       Origin mode. This property specifies where the beginning of the liquid
    87       is placed.
     86       Origin mode. This property specifies where the beginning of the liquid
     87       is placed.
    8888
    89       \sa setOriginMode(), setOrigin()
    90     */
     89       \sa setOriginMode(), setOrigin()
     90     */
    9191    enum OriginMode
    9292    {
    … …  
    101101    };
    102102
    103     explicit QwtThermo( QWidget *parent = NULL );
     103    explicit QwtThermo( QWidget* parent = NULL );
    104104    virtual ~QwtThermo();
    105105
    … …  
    122122    double origin() const;
    123123
    124     void setFillBrush( const QBrush & );
     124    void setFillBrush( const QBrush& );
    125125    QBrush fillBrush() const;
    126126
    127     void setAlarmBrush( const QBrush & );
     127    void setAlarmBrush( const QBrush& );
    128128    QBrush alarmBrush() const;
    129129
    … …  
    134134    bool alarmEnabled() const;
    135135
    136     void setColorMap( QwtColorMap * );
    137     QwtColorMap *colorMap();
    138     const QwtColorMap *colorMap() const;
     136    void setColorMap( QwtColorMap* );
     137    QwtColorMap* colorMap();
     138    const QwtColorMap* colorMap() const;
    139139
    140140    void setPipeWidth( int );
    … …  
    146146    double value() const;
    147147
    148     virtual QSize sizeHint() const;
    149     virtual QSize minimumSizeHint() const;
     148    virtual QSize sizeHint() const QWT_OVERRIDE;
     149    virtual QSize minimumSizeHint() const QWT_OVERRIDE;
    150150
    151     void setScaleDraw( QwtScaleDraw * );
    152     const QwtScaleDraw *scaleDraw() const;
     151    void setScaleDraw( QwtScaleDraw* );
     152    const QwtScaleDraw* scaleDraw() const;
    153153
    154 public Q_SLOTS:
     154  public Q_SLOTS:
    155155    virtual void setValue( double );
    156156
    157 protected:
    158     virtual void drawLiquid( QPainter *, const QRect & ) const;
    159     virtual void scaleChange();
     157  protected:
     158    virtual void drawLiquid( QPainter*, const QRect& ) const;
     159    virtual void scaleChange() QWT_OVERRIDE;
    160160
    161     virtual void paintEvent( QPaintEvent * );
    162     virtual void resizeEvent( QResizeEvent * );
    163     virtual void changeEvent( QEvent * );
     161    virtual void paintEvent( QPaintEvent* ) QWT_OVERRIDE;
     162    virtual void resizeEvent( QResizeEvent* ) QWT_OVERRIDE;
     163    virtual void changeEvent( QEvent* ) QWT_OVERRIDE;
    164164
    165     QwtScaleDraw *scaleDraw();
     165    QwtScaleDraw* scaleDraw();
    166166
    167167    QRect pipeRect() const;
    168     QRect fillRect( const QRect & ) const;
    169     QRect alarmRect( const QRect & ) const;
     168    QRect fillRect( const QRect& ) const;
     169    QRect alarmRect( const QRect& ) const;
    170170
    171 private:
     171  private:
    172172    void layoutThermo( bool );
    173173
    174174    class PrivateData;
    175     PrivateData *d_data;
     175    PrivateData* m_data;
    176176};
    177177
Note: See TracChangeset for help on using the changeset viewer.