1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-17 13:51:47 -05:00

RTLSDR tranverter mode implemented

This commit is contained in:
f4exb 2017-09-24 03:12:27 +02:00
parent 82509e5785
commit 67e93f6d40
3 changed files with 13 additions and 1 deletions

View File

@ -234,6 +234,7 @@ void RTLSDRGui::displaySettings()
ui->decim->setCurrentIndex(m_settings.m_log2Decim); ui->decim->setCurrentIndex(m_settings.m_log2Decim);
ui->fcPos->setCurrentIndex((int) m_settings.m_fcPos); ui->fcPos->setCurrentIndex((int) m_settings.m_fcPos);
ui->checkBox->setChecked(m_settings.m_noModMode); ui->checkBox->setChecked(m_settings.m_noModMode);
ui->agc->setChecked(m_settings.m_agc);
} }
void RTLSDRGui::sendSettings() void RTLSDRGui::sendSettings()

View File

@ -307,7 +307,7 @@
</size> </size>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Transverter frequency translation toggle</string> <string>Transverter frequency translation dialog</string>
</property> </property>
<property name="text"> <property name="text">
<string>X</string> <string>X</string>

View File

@ -26,6 +26,7 @@ TransverterButton::TransverterButton(QWidget* parent) :
m_deltaFrequency(0), m_deltaFrequency(0),
m_deltaFrequencyActive(false) m_deltaFrequencyActive(false)
{ {
setObjectName("TransverterButton");
connect(this, SIGNAL(clicked()), this, SLOT(onClicked())); connect(this, SIGNAL(clicked()), this, SLOT(onClicked()));
} }
@ -41,4 +42,14 @@ void TransverterButton::updateState()
setToolTip(tr("Transverter frequency translation dialog. Delta frequency %1 MHz %2") setToolTip(tr("Transverter frequency translation dialog. Delta frequency %1 MHz %2")
.arg(m_deltaFrequency/1000000.0) .arg(m_deltaFrequency/1000000.0)
.arg(m_deltaFrequencyActive ? "enabled" : "disabled")); .arg(m_deltaFrequencyActive ? "enabled" : "disabled"));
if(m_deltaFrequencyActive)
{
setStyleSheet("TransverterButton { background:rgb(128, 70, 0); }");
}
else
{
setStyleSheet("TransverterButton { background:rgb(48, 48, 48); }");
}
} }