Added data mode checkbox.

merge-requests/2/head
Elliott Liggett 2021-02-12 22:49:42 -08:00
rodzic 9f2d64d943
commit 951c2718ac
3 zmienionych plików z 25 dodań i 22 usunięć

Wyświetl plik

@ -1681,27 +1681,9 @@ void wfmain::receiveMode(unsigned char mode)
void wfmain::receiveDataModeStatus(bool dataEnabled)
{
/*
// qDebug() << "Received data mode " << dataEnabled << "\n";
if(dataEnabled)
{
if(currentModeIndex == 0)
{
// LSB
ui->modeSelectCombo->setCurrentIndex(8);
//ui->modeLabel->setText( "LSB-D" );
} else if (currentModeIndex == 1)
{
// USB
ui->modeSelectCombo->setCurrentIndex(9);
//ui->modeLabel->setText( "USB-D" );
}
} else {
// update to _not_ have the -D
ui->modeSelectCombo->setCurrentIndex(currentModeIndex);
// No need to update status label?
}
*/
ui->dataModeBtn->blockSignals(true);
ui->dataModeBtn->setChecked(dataEnabled);
ui->dataModeBtn->blockSignals(false);
}
void wfmain::on_clearPeakBtn_clicked()
@ -2464,3 +2446,8 @@ void wfmain::on_debugBtn_clicked()
}
void wfmain::on_dataModeBtn_toggled(bool checked)
{
setDataMode(checked);
}

Wyświetl plik

@ -284,6 +284,8 @@ private slots:
void on_modeFilterCombo_activated(int index);
void on_dataModeBtn_toggled(bool checked);
private:
Ui::wfmain *ui;
QSettings settings;

Wyświetl plik

@ -183,7 +183,21 @@
</widget>
</item>
<item>
<widget class="QComboBox" name="modeSelectCombo"/>
<layout class="QVBoxLayout" name="verticalLayout_12">
<property name="rightMargin">
<number>0</number>
</property>
<item>
<widget class="QComboBox" name="modeSelectCombo"/>
</item>
<item>
<widget class="QCheckBox" name="dataModeBtn">
<property name="text">
<string>Data</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QDial" name="freqDial">