mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
IQ swap: fixed transverter dialog
This commit is contained in:
parent
5e10105dac
commit
f13783b4e5
@ -70,7 +70,6 @@ BladeRF2OutputGui::BladeRF2OutputGui(DeviceUISet *deviceUISet, QWidget* parent)
|
||||
ui->gain->setMaximum(0);
|
||||
ui->gain->setPageStep(1);
|
||||
ui->gain->setSingleStep(1);
|
||||
ui->transverter->setIQOrderEnabled(false);
|
||||
|
||||
connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware()));
|
||||
connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus()));
|
||||
|
@ -54,8 +54,6 @@ HackRFOutputGui::HackRFOutputGui(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
||||
ui->sampleRate->setValueRange(8, 1000000U, 20000000U);
|
||||
|
||||
ui->transverter->setIQOrderEnabled(false);
|
||||
|
||||
connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware()));
|
||||
connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus()));
|
||||
m_statusTimer.start(500);
|
||||
|
@ -65,7 +65,6 @@ LimeSDROutputGUI::LimeSDROutputGUI(DeviceUISet *deviceUISet, QWidget* parent) :
|
||||
|
||||
ui->ncoFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
ui->channelNumberText->setText(tr("#%1").arg(m_limeSDROutput->getChannelIndex()));
|
||||
ui->transverter->setIQOrderEnabled(false);
|
||||
|
||||
if (m_limeSDROutput->getLimeType() == DeviceLimeSDRParams::LimeMini)
|
||||
{
|
||||
|
@ -65,7 +65,6 @@ PlutoSDROutputGUI::PlutoSDROutputGUI(DeviceUISet *deviceUISet, QWidget* parent)
|
||||
|
||||
ui->swInterpLabel->setText(QString::fromUtf8("S\u2191"));
|
||||
ui->lpFIRInterpolationLabel->setText(QString::fromUtf8("\u2191"));
|
||||
ui->transverter->setIQOrderEnabled(false);
|
||||
|
||||
CRightClickEnabler *startStopRightClickEnabler = new CRightClickEnabler(ui->startStop);
|
||||
connect(startStopRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(openDeviceSettingsDialog(const QPoint &)));
|
||||
|
@ -64,7 +64,6 @@ SoapySDROutputGui::SoapySDROutputGui(DeviceUISet *deviceUISet, QWidget* parent)
|
||||
uint64_t f_min, f_max;
|
||||
m_sampleSink->getFrequencyRange(f_min, f_max);
|
||||
ui->centerFrequency->setValueRange(7, f_min/1000, f_max/1000);
|
||||
ui->transverter->setIQOrderEnabled(false);
|
||||
|
||||
createCorrectionsControl();
|
||||
createAntennasControl(m_sampleSink->getAntennas());
|
||||
|
@ -35,7 +35,6 @@ TransverterButton::TransverterButton(QWidget* parent) :
|
||||
void TransverterButton::onClicked()
|
||||
{
|
||||
TransverterDialog transverterDialog(m_deltaFrequency, m_deltaFrequencyActive, m_iqOrder, this);
|
||||
transverterDialog.setIQSwapEnabled(m_iqOrderEnabled);
|
||||
transverterDialog.exec();
|
||||
updateState();
|
||||
}
|
||||
|
@ -53,12 +53,6 @@ public:
|
||||
updateState();
|
||||
}
|
||||
|
||||
void setIQOrderEnabled(bool enabled)
|
||||
{
|
||||
m_iqOrderEnabled = enabled;
|
||||
updateState();
|
||||
}
|
||||
|
||||
private slots:
|
||||
void onClicked();
|
||||
|
||||
@ -66,7 +60,6 @@ private:
|
||||
qint64 m_deltaFrequency;
|
||||
bool m_deltaFrequencyActive;
|
||||
bool m_iqOrder;
|
||||
bool m_iqOrderEnabled;
|
||||
|
||||
void updateState();
|
||||
};
|
||||
|
@ -42,6 +42,7 @@ TransverterDialog::TransverterDialog(qint64& deltaFrequency, bool& deltaFrequenc
|
||||
ui->deltaFrequencyActive->setChecked(m_deltaFrequencyActive);
|
||||
ui->iqOrder->setEnabled(true);
|
||||
ui->iqOrder->setChecked(m_iqOrder);
|
||||
ui->iqOrder->setText(m_iqOrder ? "IQ" : "QI");
|
||||
}
|
||||
|
||||
TransverterDialog::~TransverterDialog()
|
||||
@ -49,17 +50,6 @@ TransverterDialog::~TransverterDialog()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void TransverterDialog::setIQSwapEnabled(bool enabled)
|
||||
{
|
||||
ui->iqOrder->setEnabled(enabled);
|
||||
|
||||
if (enabled) {
|
||||
ui->iqOrder->setChecked(m_iqOrder);
|
||||
} else {
|
||||
ui->iqOrder->setChecked(true);
|
||||
}
|
||||
}
|
||||
|
||||
void TransverterDialog::accept()
|
||||
{
|
||||
m_deltaFrequency = ui->deltaFrequency->getValueNew();
|
||||
|
@ -36,7 +36,6 @@ class SDRGUI_API TransverterDialog : public QDialog {
|
||||
public:
|
||||
explicit TransverterDialog(qint64& deltaFrequency, bool& deltaFrequencyActive, bool& iqOrder, QWidget* parent = 0);
|
||||
~TransverterDialog();
|
||||
void setIQSwapEnabled(bool enabled);
|
||||
|
||||
private:
|
||||
Ui::TransverterDialog* ui;
|
||||
|
Loading…
Reference in New Issue
Block a user