kopia lustrzana https://gitlab.com/eliggett/wfview
Added data mode checkbox.
rodzic
9f2d64d943
commit
951c2718ac
29
wfmain.cpp
29
wfmain.cpp
|
@ -1681,27 +1681,9 @@ void wfmain::receiveMode(unsigned char mode)
|
||||||
|
|
||||||
void wfmain::receiveDataModeStatus(bool dataEnabled)
|
void wfmain::receiveDataModeStatus(bool dataEnabled)
|
||||||
{
|
{
|
||||||
/*
|
ui->dataModeBtn->blockSignals(true);
|
||||||
// qDebug() << "Received data mode " << dataEnabled << "\n";
|
ui->dataModeBtn->setChecked(dataEnabled);
|
||||||
if(dataEnabled)
|
ui->dataModeBtn->blockSignals(false);
|
||||||
{
|
|
||||||
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?
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wfmain::on_clearPeakBtn_clicked()
|
void wfmain::on_clearPeakBtn_clicked()
|
||||||
|
@ -2464,3 +2446,8 @@ void wfmain::on_debugBtn_clicked()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void wfmain::on_dataModeBtn_toggled(bool checked)
|
||||||
|
{
|
||||||
|
setDataMode(checked);
|
||||||
|
}
|
||||||
|
|
2
wfmain.h
2
wfmain.h
|
@ -284,6 +284,8 @@ private slots:
|
||||||
|
|
||||||
void on_modeFilterCombo_activated(int index);
|
void on_modeFilterCombo_activated(int index);
|
||||||
|
|
||||||
|
void on_dataModeBtn_toggled(bool checked);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::wfmain *ui;
|
Ui::wfmain *ui;
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
|
|
16
wfmain.ui
16
wfmain.ui
|
@ -183,7 +183,21 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<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>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QDial" name="freqDial">
|
<widget class="QDial" name="freqDial">
|
||||||
|
|
Ładowanie…
Reference in New Issue