diff --git a/shortcuts.txt b/shortcuts.txt index 24460a82b..4356664c0 100644 --- a/shortcuts.txt +++ b/shortcuts.txt @@ -8,7 +8,7 @@ F4 Clear DX Call, DX Grid, Tx messages 1-4 (Alt: transmit Tx4) Alt+F4 Exit program F5 Display special mouse commands (Alt: transmit Tx5) - F6 Open next file in directory (Alt: toggle Call 11t) + F6 Open next file in directory (Alt: toggle "Call 1st") Shift+F6 Decode all remaining files in directrory F7 Display Message Averaging window F11 Move Rx frequency down 1 Hz @@ -21,6 +21,8 @@ Ctrl+Shift+F12 Move dial frequency up 2000 Hz Alt+1-6 Set now transmission to this number on Tab 1 Ctl+1-6 Set next transmission to this number on Tab 1 + Alt+B Toggle "Best S+P" status + Alt+C Toggle "Call 1st" checkbox Alt+D Decode again at QSO frequency Shift+D Full decode (both windows) Ctrl+E Turn on TX even/1st diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index bfa82cca4..3c790f043 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -1895,6 +1895,11 @@ void MainWindow::keyPressEvent (QKeyEvent * e) bool bAltF1F6=m_config.alternate_bindings(); switch(e->key()) { + case Qt::Key_B: + if(m_mode=="FT4" && e->modifiers() & Qt::AltModifier) { + on_pbBestSP_clicked(); + } + return; case Qt::Key_C: if(m_mode=="FT4" && e->modifiers() & Qt::AltModifier) { bool b=ui->cbFirst->isChecked(); @@ -4024,9 +4029,8 @@ void MainWindow::guiUpdate() QString utc = t.date().toString("yyyy MMM dd") + "\n " + t.time().toString() + " "; ui->labUTC->setText(utc); - if(!m_monitoring and !m_diskData) { - ui->signal_meter_widget->setValue(0,0); - } + if(m_bBestSPArmed and (m_dateTimeBestSP.secsTo(t) >= 120)) on_pbBestSP_clicked(); //BestSP timeout + if(!m_monitoring and !m_diskData) ui->signal_meter_widget->setValue(0,0); m_sec0=nsec; displayDialFrequency (); } @@ -8711,7 +8715,7 @@ void MainWindow::chkFT4() void MainWindow::on_pbBestSP_clicked() { m_bBestSPArmed = !m_bBestSPArmed; -// ui->pbBestSP->setChecked(m_bBestSPArmed); if(m_bBestSPArmed and !m_transmitting) ui->pbBestSP->setStyleSheet ("QPushButton{color:red}"); if(!m_bBestSPArmed) ui->pbBestSP->setStyleSheet (""); + if(m_bBestSPArmed) m_dateTimeBestSP=QDateTime::currentDateTimeUtc(); } diff --git a/widgets/mainwindow.h b/widgets/mainwindow.h index 13720e092..eada752bc 100644 --- a/widgets/mainwindow.h +++ b/widgets/mainwindow.h @@ -653,6 +653,7 @@ private: QDateTime m_dateTimeLastTX; QDateTime m_dateTimeSentTx3; QDateTime m_dateTimeRcvdRR73; + QDateTime m_dateTimeBestSP; QSharedMemory *mem_jt9; QString m_QSOText;