summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/WaterfallDisplayPlot.h
diff options
context:
space:
mode:
authorTom Rondeau2011-10-17 13:37:04 -0400
committerTom Rondeau2011-10-17 13:37:04 -0400
commitfef3fe57c75ce6011c87bc894472639d385fcb21 (patch)
tree8a11749b2a06a8fa5d42af9911cf556d1c41c608 /gr-qtgui/lib/WaterfallDisplayPlot.h
parent07324710bdf7eba63417e5591ff37c7641a3f7ab (diff)
parenta4dbd973fc6376bacf3c45e63aba61a471c468b3 (diff)
downloadgnuradio-fef3fe57c75ce6011c87bc894472639d385fcb21.tar.gz
gnuradio-fef3fe57c75ce6011c87bc894472639d385fcb21.tar.bz2
gnuradio-fef3fe57c75ce6011c87bc894472639d385fcb21.zip
Merge branch 'next' into dig_ofdm
Diffstat (limited to 'gr-qtgui/lib/WaterfallDisplayPlot.h')
-rw-r--r--gr-qtgui/lib/WaterfallDisplayPlot.h25
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;