Changeset 8127 in ntrip for trunk/BNC/qwtpolar/qwt_polar_plot.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/qwtpolar/qwt_polar_plot.h

    r4272 r8127  
    2424class QwtPolarCanvas;
    2525class QwtPolarLayout;
     26class QwtAbstractLegend;
    2627
    2728/*!
     
    141142    // Legend
    142143
    143     void insertLegend( QwtLegend *,
     144    void insertLegend( QwtAbstractLegend *,
    144145        LegendPosition = RightLegend, double ratio = -1.0 );
    145146
    146     QwtLegend *legend();
    147     const QwtLegend *legend() const;
     147    QwtAbstractLegend *legend();
     148    const QwtAbstractLegend *legend() const;
     149
     150    void updateLegend();
     151    void updateLegend( const QwtPolarItem * );
    148152
    149153    // Layout
     
    157161    int plotMarginHint() const;
    158162
     163    virtual QVariant itemToInfo( QwtPolarItem * ) const;
     164    virtual QwtPolarItem *infoToItem( const QVariant & ) const;
     165
    159166Q_SIGNALS:
    160167    /*!
    161       A signal which is emitted when the user has clicked on
    162       a legend item, which is in QwtLegend::ClickableItem mode.
    163 
    164       \param plotItem Corresponding plot item of the
    165                  selected legend item
    166 
    167       \note clicks are disabled as default
    168       \sa QwtLegend::setItemMode, QwtLegend::itemMode
    169      */
    170     void legendClicked( QwtPolarItem *plotItem );
    171 
    172     /*!
    173       A signal which is emitted when the user has clicked on
    174       a legend item, which is in QwtLegend::CheckableItem mode
    175 
    176       \param plotItem Corresponding plot item of the
    177                  selected legend item
    178       \param on True when the legen item is checked
    179 
    180       \note clicks are disabled as default
    181       \sa QwtLegend::setItemMode, QwtLegend::itemMode
    182      */
    183     void legendChecked( QwtPolarItem *plotItem, bool on );
     168      A signal indicating, that an item has been attached/detached
     169
     170      \param plotItem Plot item
     171      \param on Attached/Detached
     172     */
     173    void itemAttached( QwtPolarItem *plotItem, bool on );
     174
     175    /*!
     176      A signal with the attributes how to update
     177      the legend entries for a plot item.
     178               
     179      \param itemInfo Info about a plot, build from itemToInfo()
     180   
     181      \sa itemToInfo(), infoToItem(), QwtAbstractLegend::updateLegend()
     182     */
     183    void legendDataChanged( const QVariant &itemInfo,
     184        const QList<QwtLegendData> &data );
    184185
    185186    /*!
     
    194195    void setAzimuthOrigin( double );
    195196
    196 protected Q_SLOTS:
    197     virtual void legendItemClicked();
    198     virtual void legendItemChecked( bool );
    199 
    200197protected:
    201198    virtual bool event( QEvent * );
     
    210207
    211208private:
     209    friend class QwtPolarItem;
     210    void attachItem( QwtPolarItem *, bool );
     211
    212212    void initPlot( const QwtText & );
    213213
Note: See TracChangeset for help on using the changeset viewer.