From 059831534c7e884f0a607ed86b582fd00d821731 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Sat, 26 Sep 2026 23:24:03 +0200 Subject: New upstream version 3.2.0~rc1+dfsg --- widgets/widegraph.cpp | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) (limited to 'widgets/widegraph.cpp') diff --git a/widgets/widegraph.cpp b/widgets/widegraph.cpp index 4aa2ea10..f33b570c 100644 --- a/widgets/widegraph.cpp +++ b/widgets/widegraph.cpp @@ -11,6 +11,7 @@ #include "Configuration.hpp" #include "MessageBox.hpp" #include "SettingsGroup.hpp" +#include "PerformanceTrace.hpp" #include "moc_widegraph.cpp" WideGraph::WideGraph(QSettings * settings, QWidget *parent) : @@ -23,6 +24,7 @@ WideGraph::WideGraph(QSettings * settings, QWidget *parent) : m_bHaveTransmitted {false}, m_user_defined {tr ("User Defined")} { + PerformanceTrace::Phase construction {"widegraph.construct"}; ui->setupUi(this); setWindowTitle (QApplication::applicationName () + " - " + tr ("Wide Graph")); @@ -42,6 +44,9 @@ WideGraph::WideGraph(QSettings * settings, QWidget *parent) : connect(ui->widePlot, SIGNAL(setFreq1(int,int)),this, SLOT(setFreq2(int,int))); + connect(ui->widePlot, SIGNAL(jttyDecodeAgainAt(float)),this, + SLOT(wideJttyDecodeAgainAt(float))); + { //Restore user's settings SettingsGroup g {m_settings, "WideGraph"}; @@ -98,7 +103,6 @@ WideGraph::WideGraph(QSettings * settings, QWidget *parent) : m_waterfallPalette=m_settings->value("WaterfallPalette","Default").toString(); m_userPalette = WFPalette {m_settings->value("UserPalette").value ()}; m_fMinPerBand = m_settings->value ("FminPerBand").toHash (); - setRxRange (); ui->controls_widget->setVisible(!m_settings->value("HideControls",false).toBool()); ui->cbControls->setChecked(!m_settings->value("HideControls",false).toBool()); } @@ -193,7 +197,7 @@ void WideGraph::dataSink2(float s[], float df3, int ihsym, int ndiskdata, float for (int j=0; jwidePlot->setRxRange (Fmin ()); - ui->widePlot->DrawOverlay(); - ui->widePlot->update(); + emit jttyDecodeAgainAt2(secondsAgo); } int WideGraph::Fmin() //Fmin @@ -295,6 +297,17 @@ int WideGraph::fSpan() return ui->widePlot->fSpan (); } +#if defined (WSJT_ENABLE_LIVE_AUDIO_TEST) +void WideGraph::setFrequencyScale(int startFrequency, int binsPerPixel, int plotWidth) +{ + ui->widePlot->setFixedWidth(plotWidth); + ui->widePlot->setStartFreq(startFrequency); + ui->widePlot->setBinsPerPixel(binsPerPixel); + ui->fStartSpinBox->setValue(startFrequency); + ui->bppSpinBox->setValue(binsPerPixel); +} +#endif + void WideGraph::setPeriod(double trperiod, int nsps) //SetPeriod { m_TRperiod=trperiod; @@ -365,7 +378,6 @@ void WideGraph::on_spec2dComboBox_currentIndexChanged(int index) void WideGraph::on_fSplitSpinBox_valueChanged(int n) //fSplit { if (m_rxBand != "60m") m_fMinPerBand[m_rxBand] = n; - setRxRange (); } void WideGraph::setFreq2(int rxFreq, int txFreq) //setFreq2 @@ -392,7 +404,6 @@ void WideGraph::setRxBand (QString const& band) ui->fSplitSpinBox->setEnabled (m_mode.startsWith("FST4")); } ui->widePlot->setRxBand(band); - setRxRange (); } @@ -518,7 +529,10 @@ void WideGraph::clearReferenceSpectrum(bool reference_spectrum_available) void WideGraph::replot() { - if(ui->widePlot->scaleOK()) ui->widePlot->replot(); + if(ui->widePlot->scaleOK()) { + ui->widePlot->replot(); + ui->widePlot->draw(m_swide,false,false); + } } void WideGraph::on_gainSlider_valueChanged(int value) //Gain -- cgit v1.2.3