1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 08:04:49 -05:00

SoapySDR support: cosmetic changes

This commit is contained in:
f4exb 2018-11-09 00:48:42 +01:00
parent e1ac6c2caa
commit 4d3113eabc
4 changed files with 19 additions and 7 deletions

View File

@ -271,7 +271,8 @@ void SoapySDROutputGui::createCorrectionsControl()
else if (m_sampleSink->hasDCAutoCorrection()) // simple checkbox
{
m_autoDCCorrection = new QCheckBox(this);
m_autoDCCorrection->setText(QString("DC corr"));
m_autoDCCorrection->setText(QString("Auto DC corr"));
m_autoDCCorrection->setToolTip(QString("Automatic hardware DC offset correction"));
layout->addWidget(m_autoDCCorrection);
connect(m_autoDCCorrection, SIGNAL(toggled(bool)), this, SLOT(autoDCCorrectionChanged(bool)));
@ -294,7 +295,8 @@ void SoapySDROutputGui::createCorrectionsControl()
else if (m_sampleSink->hasIQAutoCorrection()) // simple checkbox
{
m_autoIQCorrection = new QCheckBox(this);
m_autoIQCorrection->setText(QString("IQ corr"));
m_autoIQCorrection->setText(QString("Auto IQ corr"));
m_autoIQCorrection->setToolTip(QString("Automatic hardware IQ imbalance correction"));
layout->addWidget(m_autoIQCorrection);
connect(m_autoIQCorrection, SIGNAL(toggled(bool)), this, SLOT(autoIQCorrectionChanged(bool)));

View File

@ -258,7 +258,8 @@ void SoapySDRInputGui::createCorrectionsControl()
if (m_sampleSource->hasDCCorrectionValue()) // complex GUI
{
m_dcCorrectionGUI = new ComplexFactorGUI(this);
m_dcCorrectionGUI->setLabel(QString("DC"));
m_dcCorrectionGUI->setLabel(QString("DC corr"));
m_dcCorrectionGUI->setToolTip(QString("Hardware DC offset correction"));
m_dcCorrectionGUI->setAutomaticEnable(m_sampleSource->hasDCAutoCorrection());
layout->addWidget(m_dcCorrectionGUI);
@ -272,7 +273,8 @@ void SoapySDRInputGui::createCorrectionsControl()
else if (m_sampleSource->hasDCAutoCorrection()) // simple checkbox
{
m_autoDCCorrection = new QCheckBox(this);
m_autoDCCorrection->setText(QString("DC corr"));
m_autoDCCorrection->setText(QString("Auto DC corr"));
m_autoDCCorrection->setToolTip(QString("Automatic hardware DC offset correction"));
layout->addWidget(m_autoDCCorrection);
connect(m_autoDCCorrection, SIGNAL(toggled(bool)), this, SLOT(autoDCCorrectionChanged(bool)));
@ -281,7 +283,8 @@ void SoapySDRInputGui::createCorrectionsControl()
if (m_sampleSource->hasIQCorrectionValue()) // complex GUI
{
m_iqCorrectionGUI = new ComplexFactorGUI(this);
m_iqCorrectionGUI->setLabel(QString("IQ"));
m_iqCorrectionGUI->setLabel(QString("IQ corr"));
m_iqCorrectionGUI->setToolTip(QString("Hardware IQ imbalance correction"));
m_iqCorrectionGUI->setAutomaticEnable(m_sampleSource->hasIQAutoCorrection());
layout->addWidget(m_iqCorrectionGUI);
@ -295,7 +298,8 @@ void SoapySDRInputGui::createCorrectionsControl()
else if (m_sampleSource->hasIQAutoCorrection()) // simple checkbox
{
m_autoIQCorrection = new QCheckBox(this);
m_autoIQCorrection->setText(QString("IQ corr"));
m_autoIQCorrection->setText(QString("Auto IQ corr"));
m_autoIQCorrection->setToolTip(QString("Automatic hardware IQ imbalance correction"));
layout->addWidget(m_autoIQCorrection);
connect(m_autoIQCorrection, SIGNAL(toggled(bool)), this, SLOT(autoIQCorrectionChanged(bool)));

View File

@ -70,6 +70,11 @@ void ComplexFactorGUI::setLabel(const QString& text)
ui->label->setText(text);
}
void ComplexFactorGUI::setToolTip(const QString& text)
{
ui->label->setToolTip(text);
}
void ComplexFactorGUI::on_automatic_toggled(bool set)
{
ui->module->setEnabled(!set);
@ -85,4 +90,4 @@ void ComplexFactorGUI::on_module_valueChanged(int value)
void ComplexFactorGUI::on_arg_valueChanged(int value)
{
emit argumentChanged(value);
}
}

View File

@ -47,6 +47,7 @@ public:
void setAutomaticEnable(bool enable);
void setLabel(const QString& text);
void setToolTip(const QString& text);
signals:
void moduleChanged(double value);