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 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)) { 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