From 9435c7446f02ccdddbb5ede7525da4c045e0b7d7 Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 5 Jan 2018 18:53:01 +0100 Subject: [PATCH] Commands and presets: tabify dock widgets. Changed placement of the delete button --- sdrgui/mainwindow.cpp | 2 + sdrgui/mainwindow.ui | 247 +++++++++++++++++++++--------------------- 2 files changed, 125 insertions(+), 124 deletions(-) diff --git a/sdrgui/mainwindow.cpp b/sdrgui/mainwindow.cpp index 5cb085356..5c445b03d 100644 --- a/sdrgui/mainwindow.cpp +++ b/sdrgui/mainwindow.cpp @@ -534,6 +534,8 @@ void MainWindow::loadSettings() treeItem = addCommandToTree(m_settings.getCommand(i)); } + tabifyDockWidget(ui->presetDock, ui->commandsDock); + setLoggingOptions(); } diff --git a/sdrgui/mainwindow.ui b/sdrgui/mainwindow.ui index e3c57a155..5e80b5605 100644 --- a/sdrgui/mainwindow.ui +++ b/sdrgui/mainwindow.ui @@ -318,7 +318,101 @@ 3 - + + + + Update selected preset with current settings + + + ... + + + + :/recycle.png:/recycle.png + + + + 16 + 16 + + + + + + + + Edit preset details + + + + + + + :/edit.png:/edit.png + + + + + + + Export current preset to file + + + + + + + :/export.png:/export.png + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Save the current settings (inc. presets) + + + ... + + + + :/save.png:/save.png + + + + 16 + 16 + + + + + 10 @@ -352,18 +446,19 @@ - - - - Qt::Horizontal + + + + Import preset from file into current group - - - 40 - 20 - + + - + + + :/import.png:/import.png + + @@ -386,94 +481,6 @@ - - - Delete selected preset - - - ... - - - - :/bin.png:/bin.png - - - - 16 - 16 - - - - - - - - Update selected preset with current settings - - - ... - - - - :/recycle.png:/recycle.png - - - - 16 - 16 - - - - - - - - Import preset from file into current group - - - - - - - :/import.png:/import.png - - - - - - - Export current preset to file - - - - - - - :/export.png:/export.png - - - - - - - Save the current settings (inc. presets) - - - ... - - - - :/save.png:/save.png - - - - 16 - 16 - - - - - Load selected preset @@ -493,30 +500,23 @@ - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - + + - Edit preset details + Delete selected preset - + ... - :/edit.png:/edit.png + :/bin.png:/bin.png + + + + 16 + 16 + @@ -727,16 +727,16 @@ - + - Toggle keyboard to command connection + Delete selected command - :/keyboard.png:/keyboard.png + :/bin.png:/bin.png @@ -754,16 +754,16 @@ - + - Delete selected command + Toggle keyboard to command connection - :/bin.png:/bin.png + :/keyboard.png:/keyboard.png @@ -925,7 +925,6 @@ presetTree presetSave - presetDelete