From 54f2dcd5b86a18941d442d64ae7f0ed75b474607 Mon Sep 17 00:00:00 2001 From: Elliott Liggett Date: Tue, 13 Jul 2021 22:42:55 -0700 Subject: [PATCH] Added waterfall display options: anti-alias and interpolate. Not in preferences yet. Debug button enables wf pan and zoom. --- wfmain.cpp | 17 +++++++++++++++-- wfmain.h | 4 ++++ wfmain.ui | 16 +++++++++++++++- 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/wfmain.cpp b/wfmain.cpp index fa4afd5..1dd6a6b 100644 --- a/wfmain.cpp +++ b/wfmain.cpp @@ -5053,11 +5053,24 @@ void wfmain::on_pollingBtn_clicked() } } +void wfmain::on_wfAntiAliasChk_clicked(bool checked) +{ + colorMap->setAntialiased(checked); + +} + +void wfmain::on_wfInterpolateChk_clicked(bool checked) +{ + colorMap->setInterpolate(checked); +} + // --- DEBUG FUNCTION --- void wfmain::on_debugBtn_clicked() { qInfo(logSystem()) << "Debug button pressed."; //trxadj->show(); - setRadioTimeDatePrep(); -} + //setRadioTimeDatePrep(); + wf->setInteraction(QCP::iRangeZoom, true); + wf->setInteraction(QCP::iRangeDrag, true); +} diff --git a/wfmain.h b/wfmain.h index 2cec6dc..d2a52ce 100644 --- a/wfmain.h +++ b/wfmain.h @@ -464,6 +464,10 @@ private slots: void on_pollingBtn_clicked(); + void on_wfAntiAliasChk_clicked(bool checked); + + void on_wfInterpolateChk_clicked(bool checked); + private: Ui::wfmain *ui; void closeEvent(QCloseEvent *event); diff --git a/wfmain.ui b/wfmain.ui index d6e6566..fff8ba8 100644 --- a/wfmain.ui +++ b/wfmain.ui @@ -18,7 +18,7 @@ - 0 + 3 @@ -2051,6 +2051,20 @@ + + + + Anti-Alias Waterfall + + + + + + + Interpolate Waterfall + + +