From dfe1a424a61c09b15fd94a1baacdb7b6ca522846 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 9 Apr 2022 22:05:02 +0200 Subject: [PATCH] Update spectrum GUI layout --- sdrgui/gui/glspectrumgui.cpp | 4 +- sdrgui/gui/glspectrumgui.ui | 217 ++++++++++++++++++++++------------- 2 files changed, 138 insertions(+), 83 deletions(-) diff --git a/sdrgui/gui/glspectrumgui.cpp b/sdrgui/gui/glspectrumgui.cpp index fd0d9390d..8ac0916c8 100644 --- a/sdrgui/gui/glspectrumgui.cpp +++ b/sdrgui/gui/glspectrumgui.cpp @@ -48,13 +48,15 @@ GLSpectrumGUI::GLSpectrumGUI(QWidget* parent) : ui->setupUi(this); // Use the custom flow layout for the 3 main horizontal layouts (lines) + ui->verticalLayout->removeItem(ui->Line4Layout); ui->verticalLayout->removeItem(ui->Line3Layout); ui->verticalLayout->removeItem(ui->Line2Layout); ui->verticalLayout->removeItem(ui->Line1Layout); FlowLayout *flowLayout = new FlowLayout(nullptr, 1, 1, 1); + flowLayout->addItem(ui->Line3Layout); flowLayout->addItem(ui->Line1Layout); flowLayout->addItem(ui->Line2Layout); - flowLayout->addItem(ui->Line3Layout); + flowLayout->addItem(ui->Line4Layout); ui->verticalLayout->addItem(flowLayout); on_linscale_toggled(false); diff --git a/sdrgui/gui/glspectrumgui.ui b/sdrgui/gui/glspectrumgui.ui index 28b87aa85..68fa381d2 100644 --- a/sdrgui/gui/glspectrumgui.ui +++ b/sdrgui/gui/glspectrumgui.ui @@ -6,8 +6,8 @@ 0 0 - 359 - 106 + 364 + 137 @@ -357,32 +357,23 @@ - - - Play/Pause spectrum display + + + + 0 + 0 + - - - :/pause.png - :/play.png:/pause.png - - - true - - - - - - - Qt::Horizontal - - + - 40 - 20 + 5 + 22 - + + + + @@ -539,61 +530,23 @@ - - - Left: toggle websocket spectrum - Right: websocket spectrum parameters + + + + 0 + 0 + - - - :/stream.png - - - - true - - - - - - - Open spectrum markers dialog - - - - :/gridpolar.png - - - - false - - - - - - - Left: toggle relative / calibrated power - Right: open calibration dialog - - - - :/ruler.png:/ruler.png - - - true - - - - - - - Qt::Horizontal - - + - 40 - 20 + 5 + 22 - + + + + @@ -604,6 +557,12 @@ + + + 0 + 0 + + Clear spectrum histogram @@ -874,17 +833,111 @@ - - - Qt::Horizontal + + + + 0 + 0 + - + - 40 - 20 + 5 + 22 - + + + + + + + + + + + + + Play/Pause spectrum display + + + + :/pause.png + :/play.png:/pause.png + + + true + + + + + + + Left: toggle websocket spectrum - Right: websocket spectrum parameters + + + + :/stream.png + + + + true + + + + + + + + 0 + 0 + + + + Open spectrum markers dialog + + + + :/gridpolar.png + + + + false + + + + + + + Left: toggle relative / calibrated power - Right: open calibration dialog + + + + :/ruler.png:/ruler.png + + + true + + + + + + + + 0 + 0 + + + + + 5 + 22 + + + + + +