Changeset 8127 in ntrip for trunk/BNC/qwtpolar/qwt_polar_plot.h
- Timestamp:
- May 10, 2017, 3:20:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwtpolar/qwt_polar_plot.h
r4272 r8127 24 24 class QwtPolarCanvas; 25 25 class QwtPolarLayout; 26 class QwtAbstractLegend; 26 27 27 28 /*! … … 141 142 // Legend 142 143 143 void insertLegend( Qwt Legend *,144 void insertLegend( QwtAbstractLegend *, 144 145 LegendPosition = RightLegend, double ratio = -1.0 ); 145 146 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 * ); 148 152 149 153 // Layout … … 157 161 int plotMarginHint() const; 158 162 163 virtual QVariant itemToInfo( QwtPolarItem * ) const; 164 virtual QwtPolarItem *infoToItem( const QVariant & ) const; 165 159 166 Q_SIGNALS: 160 167 /*! 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 ); 184 185 185 186 /*! … … 194 195 void setAzimuthOrigin( double ); 195 196 196 protected Q_SLOTS:197 virtual void legendItemClicked();198 virtual void legendItemChecked( bool );199 200 197 protected: 201 198 virtual bool event( QEvent * ); … … 210 207 211 208 private: 209 friend class QwtPolarItem; 210 void attachItem( QwtPolarItem *, bool ); 211 212 212 void initPlot( const QwtText & ); 213 213
Note:
See TracChangeset
for help on using the changeset viewer.