1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

BFM demod: re-introducing LSB stereo GUI controls

This commit is contained in:
f4exb 2015-12-25 20:12:50 +01:00
parent 8065c4157c
commit 3564b8ba58
5 changed files with 32 additions and 1 deletions

View File

@ -110,6 +110,7 @@ QByteArray BFMDemodGUI::serialize() const
s.writeU32(7, m_channelMarker.getColor().rgb()); s.writeU32(7, m_channelMarker.getColor().rgb());
s.writeBlob(8, ui->spectrumGUI->serialize()); s.writeBlob(8, ui->spectrumGUI->serialize());
s.writeBool(9, ui->audioStereo->isChecked()); s.writeBool(9, ui->audioStereo->isChecked());
s.writeBool(10, ui->lsbStereo->isChecked());
return s.final(); return s.final();
} }
@ -162,6 +163,9 @@ bool BFMDemodGUI::deserialize(const QByteArray& data)
d.readBool(9, &booltmp, false); d.readBool(9, &booltmp, false);
ui->audioStereo->setChecked(booltmp); ui->audioStereo->setChecked(booltmp);
d.readBool(10, &booltmp, false);
ui->lsbStereo->setChecked(booltmp);
blockApplySettings(false); blockApplySettings(false);
m_channelMarker.blockSignals(false); m_channelMarker.blockSignals(false);
@ -243,6 +247,11 @@ void BFMDemodGUI::on_audioStereo_toggled(bool stereo)
applySettings(); applySettings();
} }
void BFMDemodGUI::on_lsbStereo_toggled(bool lsb)
{
applySettings();
}
void BFMDemodGUI::on_showPilot_clicked() void BFMDemodGUI::on_showPilot_clicked()
{ {
applySettings(); applySettings();

View File

@ -63,6 +63,7 @@ private slots:
void on_volume_valueChanged(int value); void on_volume_valueChanged(int value);
void on_squelch_valueChanged(int value); void on_squelch_valueChanged(int value);
void on_audioStereo_toggled(bool stereo); void on_audioStereo_toggled(bool stereo);
void on_lsbStereo_toggled(bool lsb);
void on_showPilot_clicked(); void on_showPilot_clicked();
void on_rds_clicked(); void on_rds_clicked();
void on_g14ProgServiceNames_currentIndexChanged(int index); void on_g14ProgServiceNames_currentIndexChanged(int index);

View File

@ -21,7 +21,7 @@
<rect> <rect>
<x>10</x> <x>10</x>
<y>20</y> <y>20</y>
<width>311</width> <width>411</width>
<height>121</height> <height>121</height>
</rect> </rect>
</property> </property>
@ -160,6 +160,26 @@
</property> </property>
</widget> </widget>
</item> </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> <item>
<widget class="ButtonSwitch" name="showPilot"> <widget class="ButtonSwitch" name="showPilot">
<property name="toolTip"> <property name="toolTip">

BIN
sdrbase/resources/lsb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 B

View File

@ -48,5 +48,6 @@
<file>carrier.png</file> <file>carrier.png</file>
<file>rds.png</file> <file>rds.png</file>
<file>recycle.png</file> <file>recycle.png</file>
<file>lsb.png</file>
</qresource> </qresource>
</RCC> </RCC>