1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-23 02:24:16 -04:00

SSB: replaced AGC checkboxes by button switches

This commit is contained in:
f4exb
2017-08-06 00:28:59 +02:00
parent 8a5668a186
commit f90ddf20eb
6 changed files with 21 additions and 7 deletions
+1 -1
View File
@@ -285,7 +285,7 @@ void SSBDemodGUI::on_volume_valueChanged(int value)
applySettings();
}
void SSBDemodGUI::on_agc_stateChanged(int state __attribute((__unused__)))
void SSBDemodGUI::on_agc_toggled(bool checked __attribute((__unused__)))
{
applySettings();
}
+1 -1
View File
@@ -48,7 +48,7 @@ private slots:
void on_BW_valueChanged(int value);
void on_lowCut_valueChanged(int value);
void on_volume_valueChanged(int value);
void on_agc_stateChanged(int state);
void on_agc_toggled(bool checked);
void on_agcTimeLog2_valueChanged(int value);
void on_agcPowerThreshold_valueChanged(int value);
void on_agcThresholdGate_valueChanged(int value);
+12 -1
View File
@@ -462,10 +462,16 @@
</widget>
</item>
<item>
<widget class="QCheckBox" name="agc">
<widget class="ButtonSwitch" name="agc">
<property name="toolTip">
<string>Togle AGC</string>
</property>
<property name="text">
<string>AGC</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
@@ -713,6 +719,11 @@
<header>gui/valuedialz.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
</customwidgets>
<resources>
<include location="../../../sdrbase/resources/res.qrc"/>
+1 -1
View File
@@ -431,7 +431,7 @@ void SSBModGUI::on_mic_toggled(bool checked)
m_ssbMod->getInputMessageQueue()->push(message);
}
void SSBModGUI::on_agc_stateChanged(int state __attribute((__unused__)))
void SSBModGUI::on_agc_toggled(bool checked __attribute((__unused__)))
{
applySettings();
}
+1 -1
View File
@@ -71,7 +71,7 @@ private slots:
void on_tone_toggled(bool checked);
void on_toneFrequency_valueChanged(int value);
void on_mic_toggled(bool checked);
void on_agc_stateChanged(int state);
void on_agc_toggled(bool checked);
void on_agcOrder_valueChanged(int value);
void on_agcTime_valueChanged(int value);
void on_agcThreshold_valueChanged(int value);
+5 -2
View File
@@ -466,12 +466,15 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout_agc">
<item>
<widget class="QCheckBox" name="agc">
<widget class="ButtonSwitch" name="agc">
<property name="toolTip">
<string>Toggle audio compressor</string>
</property>
<property name="text">
<string>Cmp</string>
<string>CMP</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>