From 71c801ae2279ce0cd37e21d9f38d498699a4a2fe Mon Sep 17 00:00:00 2001 From: "LevitatingBusinessMan (Rein Fernhout)" Date: Tue, 23 May 2023 15:47:27 +0200 Subject: [PATCH 1/2] Zoom the plotter faster with Ctrl --- src/qtgui/plotter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/qtgui/plotter.cpp b/src/qtgui/plotter.cpp index 3b2900e35..b3065006d 100644 --- a/src/qtgui/plotter.cpp +++ b/src/qtgui/plotter.cpp @@ -930,12 +930,14 @@ void CPlotter::wheelEvent(QWheelEvent * event) // delta is in eigths of a degree, 15 degrees is one step int delta = m_InvertScrolling? -event->angleDelta().y() : event->angleDelta().y(); double numSteps = delta / (8.0 * 15.0); + // zoom faster when Ctrl is held + double zoomBase = (event->modifiers() & Qt::ControlModifier) ? 0.7 : 0.9; if (m_CursorCaptured == YAXIS) { // Vertical zoom. Wheel down: zoom out, wheel up: zoom in // During zoom we try to keep the point (dB or kHz) under the cursor fixed - float zoom_fac = pow(0.9, numSteps); + float zoom_fac = pow(zoomBase, numSteps); float ratio = (float) py / (float) h; float db_range = m_PandMaxdB - m_PandMindB; float y_range = (float) h; @@ -957,7 +959,7 @@ void CPlotter::wheelEvent(QWheelEvent * event) } else if (m_CursorCaptured == XAXIS) { - zoomStepX(pow(0.9, numSteps), px); + zoomStepX(pow(zoomBase, numSteps), px); } else if (event->modifiers() & Qt::ControlModifier) { From 896d3dfeba9edc98f9aaa8d27f7b543d7681d458 Mon Sep 17 00:00:00 2001 From: Clayton Smith Date: Fri, 6 Oct 2023 17:32:17 -0400 Subject: [PATCH 2/2] Update news --- resources/news.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/news.txt b/resources/news.txt index b175c8455..f164ccfbe 100644 --- a/resources/news.txt +++ b/resources/news.txt @@ -3,6 +3,7 @@ NEW: Delete key clears the waterfall. NEW: I/Q tool can save recordings in SigMF format. + NEW: Holding Ctrl speeds up mouse wheel zoom. IMPROVED: Reduced CPU utilization of waterfall display. CHANGED: DMG release requires macOS 12.7 or later.