From 1851f74ce773a7a71b0e0f61d90a8a43ef54b40a Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sun, 9 Jul 2017 13:40:54 +0000 Subject: [PATCH] Shift+F11/F12 to move Tx Freq down/up to 50Hz rounded increments. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7820 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 31 +++++++++---------------------- shortcuts.txt | 2 ++ 2 files changed, 11 insertions(+), 22 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 16ca5a9d1..3d7f31d58 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1711,11 +1711,20 @@ void MainWindow::keyPressEvent (QKeyEvent * e) n=11; if(e->modifiers() & Qt::ControlModifier) n+=100; bumpFqso(n); + if(e->modifiers() & Qt::ShiftModifier) { + int f=ui->TxFreqSpinBox->value()/50; + if((ui->TxFreqSpinBox->value() % 50) == 0) f=f-1; + ui->TxFreqSpinBox->setValue(50*f); + } return; case Qt::Key_F12: n=12; if(e->modifiers() & Qt::ControlModifier) n+=100; bumpFqso(n); + if(e->modifiers() & Qt::ShiftModifier) { + int f=ui->TxFreqSpinBox->value()/50; + ui->TxFreqSpinBox->setValue(50*(f+1)); + } return; case Qt::Key_E: if(e->modifiers() & Qt::ShiftModifier) { @@ -1771,28 +1780,6 @@ void MainWindow::keyPressEvent (QKeyEvent * e) return; } break; - case Qt::Key_Plus: - if(e->modifiers() & Qt::ControlModifier) { - int f=ui->TxFreqSpinBox->value()/50; - ui->TxFreqSpinBox->setValue(50*(f+1)); - return; - } - break; - case Qt::Key_Equal: - if(e->modifiers() & Qt::ControlModifier) { - int f=ui->TxFreqSpinBox->value()/50; - ui->TxFreqSpinBox->setValue(50*(f+1)); - return; - } - break; - case Qt::Key_Minus: - if(e->modifiers() & Qt::ControlModifier) { - int f=ui->TxFreqSpinBox->value()/50; - if((ui->TxFreqSpinBox->value() % 50) == 0) f=f-1; - ui->TxFreqSpinBox->setValue(50*f); - return; - } - break; } QMainWindow::keyPressEvent (e); diff --git a/shortcuts.txt b/shortcuts.txt index 592166dac..2b67dfd39 100644 --- a/shortcuts.txt +++ b/shortcuts.txt @@ -11,8 +11,10 @@ F7 Display Message Averaging window F11 Move Rx frequency down 1 Hz Ctrl+F11 Move Rx and Tx frequencies down 1 Hz + Shift+F11 Move Tx frequency down 50 Hz (rounded) F12 Move Rx frequency up 1 Hz Ctrl+F12 Move Rx and Tx frequencies up 1 Hz + Shift+F12 Move Tx frequency up 50 Hz (rounded) 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+D Decode again at QSO frequency