From cfcf1f63de2939452b4186d924551155a6f7e240 Mon Sep 17 00:00:00 2001 From: old-dab <60466067+old-dab@users.noreply.github.com> Date: Fri, 27 Dec 2024 15:36:24 +0100 Subject: [PATCH 1/2] Update for Windows --- dabstar.pro | 2 ++ src/scopes/cust_qwt_zoom_pan.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dabstar.pro b/dabstar.pro index 146635a..235e78e 100644 --- a/dabstar.pro +++ b/dabstar.pro @@ -174,6 +174,7 @@ HEADERS += \ src/scopes/carrier-display.h \ src/scopes/spectrogramdata.h \ src/scopes/audio-display.h \ + src/scopes/cust_qwt_zoom_pan.h \ src/spectrum-viewer/spectrum-viewer.h \ src/spectrum-viewer/spectrum-scope.h \ src/spectrum-viewer/waterfall-scope.h \ @@ -281,6 +282,7 @@ SOURCES += \ src/scopes/carrier-display.cpp \ src/scopes/audio-display.cpp \ src/scopes/spectrogramdata.cpp \ + src/scopes/cust_qwt_zoom_pan.cpp \ src/spectrum-viewer/spectrum-viewer.cpp \ src/spectrum-viewer/spectrum-scope.cpp \ src/spectrum-viewer/waterfall-scope.cpp \ diff --git a/src/scopes/cust_qwt_zoom_pan.cpp b/src/scopes/cust_qwt_zoom_pan.cpp index 545d163..17bec29 100644 --- a/src/scopes/cust_qwt_zoom_pan.cpp +++ b/src/scopes/cust_qwt_zoom_pan.cpp @@ -14,7 +14,7 @@ #include "cust_qwt_zoom_pan.h" #include #include -#include +#include #include CustQwtZoomPan::CustQwtZoomPan(QwtPlot * ipPlot, const int32_t ixMin, const int32_t ixMax, const int32_t iyMin, const int32_t iyMax) From c78c631dcb7b74bf39546db81ea045596f0aed3d Mon Sep 17 00:00:00 2001 From: old-dab <60466067+old-dab@users.noreply.github.com> Date: Fri, 27 Dec 2024 15:59:44 +0100 Subject: [PATCH 2/2] Remove the redundant picker lines --- src/scopes/carrier-display.cpp | 6 ------ src/spectrum-viewer/correlation-viewer.cpp | 7 ------- 2 files changed, 13 deletions(-) diff --git a/src/scopes/carrier-display.cpp b/src/scopes/carrier-display.cpp index 80039cd..9782590 100644 --- a/src/scopes/carrier-display.cpp +++ b/src/scopes/carrier-display.cpp @@ -17,8 +17,6 @@ #include "glob_defs.h" #include "carrier-display.h" #include -#include -#include #include CarrierDisp::CarrierDisp(QwtPlot * ipPlot) @@ -29,10 +27,6 @@ CarrierDisp::CarrierDisp(QwtPlot * ipPlot) mQwtPlotCurve.setOrientation(Qt::Vertical); mQwtPlotCurve.attach(mQwtPlot); - QwtPlotPicker * pLmPicker = new QwtPlotPicker(ipPlot->canvas()); - QwtPickerMachine * pLPickerMachine = new QwtPickerClickPointMachine(); - pLmPicker->setStateMachine(pLPickerMachine); - pLmPicker->setMousePattern(QwtPlotPicker::MouseSelect1, Qt::RightButton); select_plot_type(ECarrierPlotType::DEFAULT); } diff --git a/src/spectrum-viewer/correlation-viewer.cpp b/src/spectrum-viewer/correlation-viewer.cpp index e88fc6d..f7f83d7 100644 --- a/src/spectrum-viewer/correlation-viewer.cpp +++ b/src/spectrum-viewer/correlation-viewer.cpp @@ -33,10 +33,8 @@ #include #include #include -#include #include "glob_defs.h" #include "dab-constants.h" -#include "qwt_plot_picker.h" CorrelationViewer::CorrelationViewer(QwtPlot * pPlot, QLabel * pLabel, QSettings * s, RingBuffer * b) : mpSettings(s) @@ -60,11 +58,6 @@ CorrelationViewer::CorrelationViewer(QwtPlot * pPlot, QLabel * pLabel, QSettings mQwtGrid.setMinorPen(QPen(mGridColor, 0, Qt::DotLine)); mQwtGrid.attach(mpPlotGrid); - QwtPlotPicker * lm_picker = new QwtPlotPicker(mpPlotGrid->canvas()); - QwtPickerMachine * lpickerMachine = new QwtPickerClickPointMachine(); - lm_picker->setStateMachine(lpickerMachine); - lm_picker->setMousePattern(QwtPlotPicker::MouseSelect1, Qt::RightButton); - mQwtPlotCurve.setPen(QPen(mCurveColor, 2.0)); mQwtPlotCurve.setOrientation(Qt::Horizontal); mQwtPlotCurve.setBaseline(0);