From c576bcfe77cce69c73a8bac7bf4dde8312cf6498 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Thu, 10 Feb 2022 10:49:56 +0000 Subject: [PATCH 1/3] Remove checkable flag from Open Spectrum Markers dialog button --- sdrgui/gui/glspectrumgui.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdrgui/gui/glspectrumgui.ui b/sdrgui/gui/glspectrumgui.ui index 85c249475..ed85ee9af 100644 --- a/sdrgui/gui/glspectrumgui.ui +++ b/sdrgui/gui/glspectrumgui.ui @@ -564,7 +564,7 @@ - true + false From ba4bc76a0509390125677263d776a32fba452d3c Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Thu, 10 Feb 2022 10:50:54 +0000 Subject: [PATCH 2/3] Add additional tooltips to Spectrum Markers dialog --- sdrgui/gui/spectrummarkersdialog.ui | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/sdrgui/gui/spectrummarkersdialog.ui b/sdrgui/gui/spectrummarkersdialog.ui index 366cf5cd9..507e165ec 100644 --- a/sdrgui/gui/spectrummarkersdialog.ui +++ b/sdrgui/gui/spectrummarkersdialog.ui @@ -35,6 +35,9 @@ Hist + + Histogram (spectrum line) markers + @@ -413,6 +416,11 @@ 16777215 + + Man - Set marker power to fixed level +Cur - Marker will move according to current power at the marker frequency +Max - Marker will move according to the maximum power at the marker frequency + Man @@ -499,6 +507,9 @@ Wat + + Waterfall markers + @@ -1015,6 +1026,9 @@ Anno + + Annotation markers + @@ -1712,7 +1726,11 @@ - Select which set of markers to show + Select which set of markers to show + +None - Hide all markers +Spec - Show histogram and waterfall markers +Anno - Show annotation markers From c28fd88645a6753886848204bb22ba671047fdd6 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Thu, 10 Feb 2022 10:51:53 +0000 Subject: [PATCH 3/3] In Spectrum Markers dialog, only display fixed power level when combo box is set to manual --- sdrgui/gui/spectrummarkersdialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdrgui/gui/spectrummarkersdialog.cpp b/sdrgui/gui/spectrummarkersdialog.cpp index 8309d8cb6..7461cdcec 100644 --- a/sdrgui/gui/spectrummarkersdialog.cpp +++ b/sdrgui/gui/spectrummarkersdialog.cpp @@ -110,6 +110,8 @@ void SpectrumMarkersDialog::displayHistogramMarker() ui->markerColor->setStyleSheet(tr("QLabel { background-color : rgb(%1,%2,%3); }").arg(r).arg(g).arg(b)); ui->showMarker->setChecked(m_histogramMarkers[m_histogramMarkerIndex].m_show); } + ui->fixedPower->setVisible(m_histogramMarkers[m_histogramMarkerIndex].m_markerType == SpectrumHistogramMarker::SpectrumMarkerTypeManual); + ui->fixedPowerUnits->setVisible(m_histogramMarkers[m_histogramMarkerIndex].m_markerType == SpectrumHistogramMarker::SpectrumMarkerTypeManual); ui->markerFrequency->blockSignals(false); ui->centerFrequency->blockSignals(false); @@ -380,6 +382,9 @@ void SpectrumMarkersDialog::on_powerMode_currentIndexChanged(int index) SpectrumHistogramMarker::SpectrumMarkerType newType = (SpectrumHistogramMarker::SpectrumMarkerType) index; + ui->fixedPower->setVisible(newType == SpectrumHistogramMarker::SpectrumMarkerTypeManual); + ui->fixedPowerUnits->setVisible(newType == SpectrumHistogramMarker::SpectrumMarkerTypeManual); + if ((m_histogramMarkers[m_histogramMarkerIndex].m_markerType != newType) && (newType == SpectrumHistogramMarker::SpectrumMarkerTypePowerMax)) {