This commit is contained in:
Brian Moran
2024-08-18 18:21:29 -07:00
13 changed files with 69 additions and 14 deletions
+18 -3
View File
@@ -1369,6 +1369,9 @@ void MainWindow::readSettings()
ui->sbTR->setValue (m_settings->value ("TRPeriod", 15).toInt());
QTimer::singleShot (50, [=] {blocked = false;});
}
if (m_mode=="FT8") {
ui->sbFtol->setValue (m_settings->value("Ftol_SF", 50).toInt());
}
if (m_mode=="Q65") {
m_nSubMode=m_settings->value("SubMode_Q65",0).toInt();
ui->sbSubmode->setValue(m_nSubMode_Q65);
@@ -2159,6 +2162,7 @@ void MainWindow::on_actionSettings_triggered() //Setup Dialog
set_mode(m_mode);
configActiveStations();
}
if(m_mode=="FT8") on_actionFT8_triggered(); //in case we need to reset some things for Fox/Hound
}
void MainWindow::on_monitorButton_clicked (bool checked)
@@ -7300,6 +7304,7 @@ void MainWindow::on_actionFT8_triggered()
VHF_features_enabled(bVHF);
ui->cbAutoSeq->setChecked(true);
m_TRperiod=15.0;
ui->sbFtol->setValue (m_settings->value ("Ftol_SF", 50).toInt()); // restore last used Ftol parameter
m_fastGraph->hide();
m_wideGraph->show();
ui->rh_decodes_headings_label->setText(" UTC dB DT Freq " + tr ("Message"));
@@ -7332,8 +7337,10 @@ void MainWindow::on_actionFT8_triggered()
ui->cbHoldTxFreq->setChecked(true);
ui->cbAutoSeq->setEnabled(false);
ui->tabWidget->setCurrentIndex(1);
m_wideGraph->setSuperFox(false);
if(m_config.superFox()) {
ui->TxFreqSpinBox->setValue(750); //SuperFox transmits at 750 Hz
m_wideGraph->setSuperFox(true);
} else {
ui->TxFreqSpinBox->setValue(500);
}
@@ -7355,15 +7362,21 @@ void MainWindow::on_actionFT8_triggered()
ui->cbAutoSeq->setEnabled(false);
ui->tabWidget->setCurrentIndex(0);
ui->cbHoldTxFreq->setChecked(true);
// 01234567890123456789012345678901234567
displayWidgets(nWidgets("11101000010011000001000000000011000000"));
ui->cbRxAll->setText(tr("Rx All Freqs"));
m_wideGraph->setSuperHound(false);
if(m_config.superFox()) {
// 01234567890123456789012345678901234567
displayWidgets(nWidgets("11111000010011000001000000000011000000"));
ui->labDXped->setText(tr ("Super Hound"));
ui->cbRxAll->setEnabled(false);
m_wideGraph->setRxFreq(ui->RxFreqSpinBox->value());
m_wideGraph->setTol(ui->sbFtol->value());
m_wideGraph->setSuperHound(true);
} else {
// 01234567890123456789012345678901234567
displayWidgets(nWidgets("11101000010011000001000000000011000000"));
ui->labDXped->setText(tr ("Hound"));
ui->cbRxAll->setEnabled(true);
m_wideGraph->setSuperHound(false);
}
ui->txrb1->setChecked(true);
ui->txrb2->setEnabled(false);
@@ -7380,6 +7393,7 @@ void MainWindow::on_actionFT8_triggered()
}
if(m_specOp != SpecOp::HOUND) {
ui->houndButton->setChecked(false);
m_wideGraph->setSuperHound(false);
}
m_specOp=m_config.special_op_id();
@@ -8852,6 +8866,7 @@ void MainWindow::on_sbFtol_valueChanged(int value)
statusUpdate ();
// save last used parameters
QTimer::singleShot (200, [=] {
if (m_mode=="FT8") m_settings->setValue ("Ftol_SF", ui->sbFtol->value());
if (m_mode=="Q65") m_settings->setValue ("Ftol_Q65", ui->sbFtol->value());
if (m_mode=="MSK144") m_settings->setValue ("Ftol_MSK144", ui->sbFtol->value());
if (m_mode=="JT65") m_settings->setValue ("Ftol_JT65", ui->sbFtol->value ());