mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-12-23 19:25:37 -05:00
Clean up the FT4 logic for setting status of labDXped, cbAutoSeq, cbFirst.
This commit is contained in:
parent
6a2effcfc6
commit
3a6e26d645
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -348,6 +348,7 @@ private:
|
||||
void hideMenus(bool b);
|
||||
void foxTest();
|
||||
void setColorHighlighting();
|
||||
void chkFT4();
|
||||
|
||||
NetworkAccessManager m_network_manager;
|
||||
bool m_valid;
|
||||
|
Loading…
Reference in New Issue
Block a user