mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 01:18:38 -05:00
Merge pull request #1141 from srcejon/spectrum_marker_gui_tweaks
Spectrum Marker GUI small tweaks
This commit is contained in:
commit
aca440935e
@ -564,7 +564,7 @@
|
|||||||
</iconset>
|
</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="checkable">
|
<property name="checkable">
|
||||||
<bool>true</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -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->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->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->markerFrequency->blockSignals(false);
|
||||||
ui->centerFrequency->blockSignals(false);
|
ui->centerFrequency->blockSignals(false);
|
||||||
@ -380,6 +382,9 @@ void SpectrumMarkersDialog::on_powerMode_currentIndexChanged(int index)
|
|||||||
|
|
||||||
SpectrumHistogramMarker::SpectrumMarkerType newType = (SpectrumHistogramMarker::SpectrumMarkerType) 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)
|
if ((m_histogramMarkers[m_histogramMarkerIndex].m_markerType != newType)
|
||||||
&& (newType == SpectrumHistogramMarker::SpectrumMarkerTypePowerMax))
|
&& (newType == SpectrumHistogramMarker::SpectrumMarkerTypePowerMax))
|
||||||
{
|
{
|
||||||
|
@ -35,6 +35,9 @@
|
|||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Hist</string>
|
<string>Hist</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
|
<attribute name="toolTip">
|
||||||
|
<string>Histogram (spectrum line) markers</string>
|
||||||
|
</attribute>
|
||||||
<widget class="QWidget" name="layoutWidget">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
@ -413,6 +416,11 @@
|
|||||||
<height>16777215</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>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</string>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Man</string>
|
<string>Man</string>
|
||||||
@ -499,6 +507,9 @@
|
|||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Wat</string>
|
<string>Wat</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
|
<attribute name="toolTip">
|
||||||
|
<string>Waterfall markers</string>
|
||||||
|
</attribute>
|
||||||
<widget class="QWidget" name="layoutWidget">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
@ -1015,6 +1026,9 @@
|
|||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Anno</string>
|
<string>Anno</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
|
<attribute name="toolTip">
|
||||||
|
<string>Annotation markers</string>
|
||||||
|
</attribute>
|
||||||
<widget class="QWidget" name="layoutWidget_2">
|
<widget class="QWidget" name="layoutWidget_2">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
@ -1712,7 +1726,11 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="showSelect">
|
<widget class="QComboBox" name="showSelect">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Select which set of markers to show</string>
|
<string>Select which set of markers to show
|
||||||
|
|
||||||
|
None - Hide all markers
|
||||||
|
Spec - Show histogram and waterfall markers
|
||||||
|
Anno - Show annotation markers</string>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
Loading…
Reference in New Issue
Block a user