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)
|
||||
{
|
||||
/*
|
||||
// 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);
|
||||
}
|
||||
|
|
2
wfmain.h
2
wfmain.h
|
@ -284,6 +284,8 @@ private slots:
|
|||
|
||||
void on_modeFilterCombo_activated(int index);
|
||||
|
||||
void on_dataModeBtn_toggled(bool checked);
|
||||
|
||||
private:
|
||||
Ui::wfmain *ui;
|
||||
QSettings settings;
|
||||
|
|
16
wfmain.ui
16
wfmain.ui
|
@ -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">
|
||||
|
|
Ładowanie…
Reference in New Issue