summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/FrequencyDisplayPlot.h
diff options
context:
space:
mode:
authorMike Cornelius2011-04-11 00:48:29 -0400
committerTom Rondeau2011-04-12 22:28:58 -0400
commit41ad09b4f22228dd555ea73f2078cb9ff056b979 (patch)
tree2e2fd86e367ce5cf0203a0e426f786e88f5c7555 /gr-qtgui/lib/FrequencyDisplayPlot.h
parent9ad807544990bf4a4a8f5fb746f33b796258f9ee (diff)
downloadgnuradio-41ad09b4f22228dd555ea73f2078cb9ff056b979.tar.gz
gnuradio-41ad09b4f22228dd555ea73f2078cb9ff056b979.tar.bz2
gnuradio-41ad09b4f22228dd555ea73f2078cb9ff056b979.zip
gr-qtgui: adding double-click point selector to main gui widgets.
Diffstat (limited to 'gr-qtgui/lib/FrequencyDisplayPlot.h')
-rw-r--r--gr-qtgui/lib/FrequencyDisplayPlot.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gr-qtgui/lib/FrequencyDisplayPlot.h b/gr-qtgui/lib/FrequencyDisplayPlot.h
index 3c22c1397..7a207ab8d 100644
--- a/gr-qtgui/lib/FrequencyDisplayPlot.h
+++ b/gr-qtgui/lib/FrequencyDisplayPlot.h
@@ -12,8 +12,10 @@
#include <qwt_plot_zoomer.h>
#include <qwt_plot_panner.h>
#include <qwt_plot_marker.h>
+#include <qwt_plot_magnifier.h>
#include <highResTimeFunctions.h>
#include <qwt_symbol.h>
+#include <qtgui_util.h>
class FrequencyDisplayPlot:public QwtPlot{
Q_OBJECT
@@ -43,11 +45,20 @@ public:
void set_yaxis(double min, double max);
+ void SetTraceColour (QColor);
+ void SetBGColour (QColor c);
+ void ShowCFMarker (const bool);
+
public slots:
void resizeSlot( QSize *e );
void SetLowerIntensityLevel(const double);
void SetUpperIntensityLevel(const double);
+ void OnPickerPointSelected(const QwtDoublePoint & p);
+
+signals:
+ void plotPointSelected(const QPointF p);
+
protected:
private:
@@ -71,9 +82,14 @@ private:
QwtPlotMarker *_markerPeakAmplitude;
QwtPlotMarker *_markerNoiseFloorAmplitude;
+ QwtPlotMarker *_markerCF;
+
+ QwtDblClickPlotPicker *_picker;
+ QwtPlotMagnifier *_magnifier;
double* _dataPoints;
double* _xAxisPoints;
+ int _xAxisMultiplier;
double* _minFFTPoints;
double* _maxFFTPoints;