diff options
author | Josh Blum | 2011-10-17 07:35:56 -0700 |
---|---|---|
committer | Josh Blum | 2011-10-17 07:35:56 -0700 |
commit | 41ce01bd6f602009b83422550b0b91bddd830c84 (patch) | |
tree | 133899a93985441c97f8ed2f566e71ada32a0681 /gr-qtgui/lib/WaterfallDisplayPlot.h | |
parent | 5179a1ead31e678d575890fb2e413c62bf00c255 (diff) | |
parent | a4dbd973fc6376bacf3c45e63aba61a471c468b3 (diff) | |
download | gnuradio-41ce01bd6f602009b83422550b0b91bddd830c84.tar.gz gnuradio-41ce01bd6f602009b83422550b0b91bddd830c84.tar.bz2 gnuradio-41ce01bd6f602009b83422550b0b91bddd830c84.zip |
Merge branch 'next' of http://gnuradio.org/git/gnuradio into next
Diffstat (limited to 'gr-qtgui/lib/WaterfallDisplayPlot.h')
-rw-r--r-- | gr-qtgui/lib/WaterfallDisplayPlot.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/gr-qtgui/lib/WaterfallDisplayPlot.h b/gr-qtgui/lib/WaterfallDisplayPlot.h index 0c6a521b1..0458597b0 100644 --- a/gr-qtgui/lib/WaterfallDisplayPlot.h +++ b/gr-qtgui/lib/WaterfallDisplayPlot.h @@ -26,14 +26,20 @@ #include <stdint.h> #include <cstdio> #include <qwt_plot.h> +#include <qwt_plot_spectrogram.h> #include <qwt_plot_zoomer.h> #include <qwt_plot_panner.h> - #include <qtgui_util.h> -#include <plot_waterfall.h> +#include <waterfallGlobalData.h> #include <gruel/high_res_timer.h> +#if QWT_VERSION < 0x060000 +#include <plot_waterfall.h> +#else +#include <qwt_compat.h> +#endif + class WaterfallDisplayPlot:public QwtPlot{ Q_OBJECT @@ -73,7 +79,12 @@ public: public slots: void resizeSlot( QSize *s ); + +#if QWT_VERSION < 0x060000 void OnPickerPointSelected(const QwtDoublePoint & p); +#else + void OnPickerPointSelected(const QPointF & p); +#endif signals: void UpdatedLowerIntensityLevel(const double); @@ -89,14 +100,18 @@ private: double _stopFrequency; int _xAxisMultiplier; - PlotWaterfall *d_spectrogram; - QwtPlotPanner* _panner; QwtPlotZoomer* _zoomer; QwtDblClickPlotPicker *_picker; - WaterfallData* _waterfallData; + WaterfallData *d_data; + +#if QWT_VERSION < 0x060000 + PlotWaterfall *d_spectrogram; +#else + QwtPlotSpectrogram *d_spectrogram; +#endif gruel::high_res_timer_type _lastReplot; |