From f5afb500419c671f3b60167cdfd7acc251bee75d Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Mon, 27 May 2019 09:18:06 -0400 Subject: [PATCH] Fixed #182: added shortcuts to focus different areas of the app --- mainwindow.cpp | 12 ++++++++++++ mainwindow.h | 3 +++ mainwindow.ui | 41 +++++++++++++++++++++++++++++++++++++---- 3 files changed, 52 insertions(+), 4 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 57b5abd..ae23e32 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -2749,6 +2749,18 @@ void MainWindow::on_menuWindow_aboutToShow(){ ui->actionShow_Band_Heartbeats_and_ACKs->setEnabled(ui->actionShow_Band_Activity->isChecked()); } +void MainWindow::on_actionFocus_Message_Reply_Area_triggered(){ + ui->extFreeTextMsgEdit->setFocus(); +} + +void MainWindow::on_actionFocus_Band_Activity_Table_triggered(){ + ui->tableWidgetRXAll->setFocus(); +} + +void MainWindow::on_actionFocus_Call_Activity_Table_triggered(){ + ui->tableWidgetCalls->setFocus(); +} + void MainWindow::on_actionSetOffset_triggered(){ bool ok = false; auto currentFreq = currentFreqOffset(); diff --git a/mainwindow.h b/mainwindow.h index 4d686d9..37781f1 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -181,6 +181,9 @@ private slots: void on_actionEnable_Spotting_toggled(bool checked); void on_actionEnable_Auto_Reply_toggled(bool checked); void on_menuWindow_aboutToShow(); + void on_actionFocus_Message_Reply_Area_triggered(); + void on_actionFocus_Band_Activity_Table_triggered(); + void on_actionFocus_Call_Activity_Table_triggered(); void on_actionSetOffset_triggered(); void on_actionShow_Fullscreen_triggered(bool checked); void on_actionShow_Statusbar_triggered(bool checked); diff --git a/mainwindow.ui b/mainwindow.ui index cdf6a02..af8b2e7 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -1982,15 +1982,15 @@ background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #2ecc71, stop:1 #00FF - - false - 0 0 + + false + Avg Time Delta: 0 ms @@ -4616,7 +4616,7 @@ list. The list can be maintained in Settings (F2). 0 0 994 - 25 + 22 @@ -4778,8 +4778,17 @@ list. The list can be maintained in Settings (F2). C&ontrol + + + Set Focus... + + + + + + @@ -5686,6 +5695,30 @@ list. The list can be maintained in Settings (F2). Check for Updates + + + Message Reply Area + + + Ctrl+Alt+M + + + + + Band Activity Table + + + Ctrl+Alt+B + + + + + Call Activity Table + + + Ctrl+Alt+A + +