mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
BFM demod: re-introducing LSB stereo GUI controls
This commit is contained in:
parent
8065c4157c
commit
3564b8ba58
@ -110,6 +110,7 @@ QByteArray BFMDemodGUI::serialize() const
|
||||
s.writeU32(7, m_channelMarker.getColor().rgb());
|
||||
s.writeBlob(8, ui->spectrumGUI->serialize());
|
||||
s.writeBool(9, ui->audioStereo->isChecked());
|
||||
s.writeBool(10, ui->lsbStereo->isChecked());
|
||||
return s.final();
|
||||
}
|
||||
|
||||
@ -162,6 +163,9 @@ bool BFMDemodGUI::deserialize(const QByteArray& data)
|
||||
d.readBool(9, &booltmp, false);
|
||||
ui->audioStereo->setChecked(booltmp);
|
||||
|
||||
d.readBool(10, &booltmp, false);
|
||||
ui->lsbStereo->setChecked(booltmp);
|
||||
|
||||
blockApplySettings(false);
|
||||
m_channelMarker.blockSignals(false);
|
||||
|
||||
@ -243,6 +247,11 @@ void BFMDemodGUI::on_audioStereo_toggled(bool stereo)
|
||||
applySettings();
|
||||
}
|
||||
|
||||
void BFMDemodGUI::on_lsbStereo_toggled(bool lsb)
|
||||
{
|
||||
applySettings();
|
||||
}
|
||||
|
||||
void BFMDemodGUI::on_showPilot_clicked()
|
||||
{
|
||||
applySettings();
|
||||
|
@ -63,6 +63,7 @@ private slots:
|
||||
void on_volume_valueChanged(int value);
|
||||
void on_squelch_valueChanged(int value);
|
||||
void on_audioStereo_toggled(bool stereo);
|
||||
void on_lsbStereo_toggled(bool lsb);
|
||||
void on_showPilot_clicked();
|
||||
void on_rds_clicked();
|
||||
void on_g14ProgServiceNames_currentIndexChanged(int index);
|
||||
|
@ -21,7 +21,7 @@
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>20</y>
|
||||
<width>311</width>
|
||||
<width>411</width>
|
||||
<height>121</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -160,6 +160,26 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="ButtonSwitch" name="lsbStereo">
|
||||
<property name="toolTip">
|
||||
<string>Use only LSB from stereo subcarrier </string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../../sdrbase/resources/res.qrc">
|
||||
<normaloff>:/lsb.png</normaloff>:/lsb.png</iconset>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="autoRaise">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="ButtonSwitch" name="showPilot">
|
||||
<property name="toolTip">
|
||||
|
BIN
sdrbase/resources/lsb.png
Normal file
BIN
sdrbase/resources/lsb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 350 B |
@ -48,5 +48,6 @@
|
||||
<file>carrier.png</file>
|
||||
<file>rds.png</file>
|
||||
<file>recycle.png</file>
|
||||
<file>lsb.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
Loading…
Reference in New Issue
Block a user