BFM demod: re-introducing LSB stereo GUI controls

pull/6/head
f4exb 2015-12-25 20:12:50 +01:00
rodzic 8065c4157c
commit 3564b8ba58
5 zmienionych plików z 32 dodań i 1 usunięć

Wyświetl plik

@ -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();

Wyświetl plik

@ -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);

Wyświetl plik

@ -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">

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 350 B

Wyświetl plik

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