From 7c6a201bc790e03c3308747c61f0cb20a89d058e Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Mon, 10 Jul 2017 14:24:33 +0000 Subject: [PATCH] Merging r7834, r7835 and r7836 from trunk git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.8@7837 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 32 ++++++++++++++++++-------------- mainwindow.h | 1 + mainwindow.ui | 7 +++++-- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index ae7482e06..2c9308346 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -2724,7 +2724,6 @@ void MainWindow::readFromStdout() //readFromStdout if(m_mode=="FT8") { int i1=decodedtext.string().indexOf(" "+m_baseCall+" "); -// m_bCallingCQ=true; if(m_bCallingCQ and i1>0 and ui->cbFirst->isChecked()) { // int snr=decodedtext.string().mid(6,4).toInt(); m_bDoubleClicked=true; @@ -2733,12 +2732,12 @@ void MainWindow::readFromStdout() //readFromStdout } else { int audioFreq=decodedtext.frequencyOffset(); audioFreq=decodedtext.string().mid(16,4).toInt(); - if(!m_config.enable_VHF_features() and - (abs(audioFreq - m_wideGraph->rxFreq()) <= 10)) bDisplayRight=true; + if(i1>0 or (abs(audioFreq - m_wideGraph->rxFreq()) <= 10)) bDisplayRight=true; } } if (bDisplayRight) { - // This msg is within 10 hertz of our tuned frequency, or a JT4 or JT65 avg + // This msg is within 10 hertz of our tuned frequency, or a JT4 or JT65 avg, + // or contains MyCall ui->decodedTextBrowser2->displayDecodedText(decodedtext,m_baseCall,false, m_logBook,m_config.color_CQ(),m_config.color_MyCall(), m_config.color_DXCC(),m_config.color_NewCall()); @@ -3108,7 +3107,6 @@ void MainWindow::guiUpdate() && !message_is_73 (m_lastMessageType, m_lastMessageSent.split (' ', QString::SkipEmptyParts)); if (m_sentFirst73) { m_qsoStop=t2; -// if(m_config.id_after_73 () and (!m_bFastMode)) { if(m_config.id_after_73 ()) { icw[0] = m_ncw; } @@ -3116,8 +3114,13 @@ void MainWindow::guiUpdate() logQSOTimer.start (0); } } - if (is_73 && m_config.disable_TX_on_73 ()) { + bool b=(m_mode=="FT8") and ui->cbAutoSeq->isChecked() and ui->cbFirst->isChecked(); + if(is_73 and (m_config.disable_TX_on_73() or b)) { auto_tx_mode (false); + if(b) { + m_ntx=6; + ui->txrb6->setChecked(true); + } } if(m_config.id_interval () >0) { @@ -4323,14 +4326,9 @@ void MainWindow::displayWidgets(int n) } j=j>>1; } - if(m_config.my_callsign()=="K1JT" or m_config.my_callsign()=="K9AN" or - m_config.my_callsign()=="G4WJS" || m_config.my_callsign () == "KI7MT") { - ui->actionWSPR_LF->setEnabled(true); - b=m_mode=="FT8"; - ui->cbFirst->setVisible(b); - ui->cbWeak->setVisible(b); - ui->cbWeak->setEnabled(false); - } + b=m_mode=="FT8"; + ui->cbFirst->setVisible(b); + ui->cbWeak->setVisible(false); } void MainWindow::on_actionFT8_triggered() @@ -6488,6 +6486,12 @@ void MainWindow::on_cbWeak_toggled(bool b) if(b) ui->cbFirst->setChecked(!b); } +void MainWindow::on_cbAutoSeq_toggled(bool b) +{ + if(!b) ui->cbFirst->setChecked(false); + ui->cbFirst->setVisible((m_mode=="FT8") and b); +} + void MainWindow::write_transmit_entry (QString const& file_name) { QFile f {m_config.writeable_data_dir ().absoluteFilePath (file_name)}; diff --git a/mainwindow.h b/mainwindow.h index ad65f543a..2a585afeb 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -240,6 +240,7 @@ private slots: void on_cbMenus_toggled(bool b); void on_cbFirst_toggled(bool b); void on_cbWeak_toggled(bool b); + void on_cbAutoSeq_toggled(bool b); void networkError (QString const&); void on_ClrAvgButton_clicked(); void on_actionWSPR_triggered(); diff --git a/mainwindow.ui b/mainwindow.ui index 3a6c7a41e..689fcd158 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -6,7 +6,7 @@ 0 0 - 872 + 876 583 @@ -2367,7 +2367,7 @@ QPushButton[state="ok"] { 0 0 - 872 + 876 21 @@ -2996,6 +2996,9 @@ QPushButton[state="ok"] { Experimental LF/MF mode + + false +