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


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

deprecated functions exchanged libs updated

File:
1 edited

Legend:

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

    r8127 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    99
    1010#ifndef QWT_COMPASS_H
    11 #define QWT_COMPASS_H 1
     11#define QWT_COMPASS_H
    1212
    1313#include "qwt_global.h"
    1414#include "qwt_dial.h"
    1515#include "qwt_round_scale_draw.h"
    16 #include <qstring.h>
    17 #include <qmap.h>
    1816
    1917class QwtCompassRose;
     18class QString;
     19template< class Key, class T > class QMap;
     20
    2021
    2122/*!
    22   \brief A special scale draw made for QwtCompass
     23   \brief A special scale draw made for QwtCompass
    2324
    24   QwtCompassScaleDraw maps values to strings using
    25   a special map, that can be modified by the application
     25   QwtCompassScaleDraw maps values to strings using
     26   a special map, that can be modified by the application
    2627
    27   The default map consists of the labels N, NE, E, SE, S, SW, W, NW.
     28   The default map consists of the labels N, NE, E, SE, S, SW, W, NW.
    2829
    29   \sa QwtCompass
    30 */
    31 class QWT_EXPORT QwtCompassScaleDraw: public QwtRoundScaleDraw
     30   \sa QwtCompass
     31 */
     32class QWT_EXPORT QwtCompassScaleDraw : public QwtRoundScaleDraw
    3233{
    33 public:
     34  public:
    3435    explicit QwtCompassScaleDraw();
    35     explicit QwtCompassScaleDraw( const QMap<double, QString> &map );
     36    explicit QwtCompassScaleDraw( const QMap< double, QString >& map );
    3637
    37     void setLabelMap( const QMap<double, QString> &map );
    38     QMap<double, QString> labelMap() const;
     38    virtual ~QwtCompassScaleDraw();
    3939
    40     virtual QwtText label( double value ) const;
     40    void setLabelMap( const QMap< double, QString >& map );
     41    QMap< double, QString > labelMap() const;
    4142
    42 private:
    43     QMap<double, QString> d_labelMap;
     43    virtual QwtText label( double value ) const QWT_OVERRIDE;
     44
     45  private:
     46    class PrivateData;
     47    PrivateData* m_data;
    4448};
    4549
    4650/*!
    47   \brief A Compass Widget
     51   \brief A Compass Widget
    4852
    49   QwtCompass is a widget to display and enter directions. It consists
    50   of a scale, an optional needle and rose.
     53   QwtCompass is a widget to display and enter directions. It consists
     54   of a scale, an optional needle and rose.
    5155
    52   \image html dials1.png
     56   \image html dials1.png
    5357
    54   \note The examples/dials example shows how to use QwtCompass.
    55 */
     58   \note The examples/dials example shows how to use QwtCompass.
     59 */
    5660
    57 class QWT_EXPORT QwtCompass: public QwtDial
     61class QWT_EXPORT QwtCompass : public QwtDial
    5862{
    5963    Q_OBJECT
    6064
    61 public:
     65  public:
    6266    explicit QwtCompass( QWidget* parent = NULL );
    6367    virtual ~QwtCompass();
    6468
    65     void setRose( QwtCompassRose *rose );
    66     const QwtCompassRose *rose() const;
    67     QwtCompassRose *rose();
     69    void setRose( QwtCompassRose* rose );
     70    const QwtCompassRose* rose() const;
     71    QwtCompassRose* rose();
    6872
    69 protected:
    70     virtual void drawRose( QPainter *, const QPointF &center,
     73  protected:
     74    virtual void drawRose( QPainter*, const QPointF& center,
    7175        double radius, double north, QPalette::ColorGroup ) const;
    7276
    73     virtual void drawScaleContents( QPainter *,
    74         const QPointF &center, double radius ) const;
     77    virtual void drawScaleContents( QPainter*,
     78        const QPointF& center, double radius ) const QWT_OVERRIDE;
    7579
    76     virtual void keyPressEvent( QKeyEvent * );
     80    virtual void keyPressEvent( QKeyEvent* ) QWT_OVERRIDE;
    7781
    78 private:
     82  private:
    7983    class PrivateData;
    80     PrivateData *d_data;
     84    PrivateData* m_data;
    8185};
    8286
Note: See TracChangeset for help on using the changeset viewer.