diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 8a189812a..26c7229f8 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -1795,6 +1795,7 @@ void MainWindow::on_actionSettings_triggered() //Setup Dialog ui->actionEnable_AP_JT65->setVisible(false); } if(m_config.special_op_id()!=nContest0) ui->tx1->setEnabled(true); + chkFT4(); } } @@ -5636,14 +5637,7 @@ void MainWindow::on_actionFT4_triggered() ui->txb5->setEnabled(true); ui->txb6->setEnabled(true); ui->txFirstCheckBox->setEnabled(true); - ui->cbAutoSeq->setEnabled(true); - ui->labDXped->setText(""); - ui->labDXped->setVisible(false); - if (SpecOp::RTTY == m_config.special_op_id ()) { - ui->labDXped->setVisible(true); - ui->labDXped->setText("RTTY"); - on_contest_log_action_triggered(); - } + chkFT4(); statusChanged(); } @@ -8884,3 +8878,34 @@ void MainWindow::save_FT4() m_kin0=dec_data.params.kin; } + +void MainWindow::chkFT4() +{ + if(m_mode!="FT4") return; + if(m_config.special_op_id()==SpecOp::RTTY) { + ui->cbAutoSeq->setEnabled(true); + ui->cbFirst->setEnabled(true); + } else { + ui->cbAutoSeq->setChecked(false); + ui->cbAutoSeq->setEnabled(false); + ui->cbFirst->setChecked(false); + ui->cbFirst->setEnabled(false); + ui->cbFirst->setVisible(false); + } + ui->cbFirst->setVisible(ui->cbAutoSeq->isChecked()); + + if (SpecOp::NONE < m_config.special_op_id () && SpecOp::FOX > m_config.special_op_id ()) { + QString t0=""; + if(SpecOp::NA_VHF==m_config.special_op_id()) t0+="NA VHF"; + if(SpecOp::EU_VHF==m_config.special_op_id()) t0+="EU VHF"; + if(SpecOp::FIELD_DAY==m_config.special_op_id()) t0+="Field Day"; + if(SpecOp::RTTY==m_config.special_op_id()) t0+="RTTY"; + if(t0=="") { + ui->labDXped->setVisible(false); + } else { + ui->labDXped->setVisible(true); + ui->labDXped->setText(t0); + } + on_contest_log_action_triggered(); + } +} diff --git a/widgets/mainwindow.h b/widgets/mainwindow.h index 216405ae8..8be317596 100644 --- a/widgets/mainwindow.h +++ b/widgets/mainwindow.h @@ -348,6 +348,7 @@ private: void hideMenus(bool b); void foxTest(); void setColorHighlighting(); + void chkFT4(); NetworkAccessManager m_network_manager; bool m_valid;