From 157931867ab459c64986f9692161c04acb0e1dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Mon, 27 Nov 2017 18:28:44 +0100 Subject: [PATCH] Clean up MainWindow menu --- src/MainWindow.cpp | 10 +++++++ src/MainWindow.h | 3 ++ src/MainWindow.ui | 72 ++++++++++++++++------------------------------ 3 files changed, 38 insertions(+), 47 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 37fcc6df..5e254d6e 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -808,6 +808,16 @@ void MainWindow::on_actionSaveAs_triggered() saveProjectAs(); } +void MainWindow::on_actionUndoSeek_triggered() +{ + Core()->seekPrev(); +} + +void MainWindow::on_actionRedoSeek_triggered() +{ + Core()->seekNext(); +} + void MainWindow::on_actionRun_Script_triggered() { QFileDialog dialog(this); diff --git a/src/MainWindow.h b/src/MainWindow.h index 6ce5c2a6..2f9401e5 100644 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -142,6 +142,9 @@ private slots: void on_actionSave_triggered(); void on_actionSaveAs_triggered(); + void on_actionUndoSeek_triggered(); + void on_actionRedoSeek_triggered(); + void on_actionWhite_Theme_triggered(); void on_actionSDBBrowser_triggered(); diff --git a/src/MainWindow.ui b/src/MainWindow.ui index 8c90a2ed..a3a8c79c 100644 --- a/src/MainWindow.ui +++ b/src/MainWindow.ui @@ -178,8 +178,8 @@ border-top: 0px; - 419 - 265 + 367 + 185 140 239 @@ -226,27 +226,14 @@ border-top: 0px; Help - - Edit - - - - - - - - - - - - - + + @@ -328,7 +315,7 @@ QToolButton .svg-icon path { - Reset layout + Reset Layout Reset layout @@ -343,6 +330,9 @@ QToolButton .svg-icon path { New + + Ctrl+N + @@ -366,6 +356,9 @@ QToolButton .svg-icon path { Open + + Ctrl+O + @@ -375,14 +368,14 @@ QToolButton .svg-icon path { Ctrl+S - + - Undo + Undo Seek - + - Redo + Redo Seek @@ -463,7 +456,7 @@ QToolButton .svg-icon path { true - Toggle panel locks + Unlock Panels Toggle panel locks @@ -630,7 +623,7 @@ QToolButton .svg-icon path { true - Toggle tab position + Show Tabs at the Top Toggle tab position @@ -638,10 +631,7 @@ QToolButton .svg-icon path { - Dark theme - - - Dark theme + Dark Theme @@ -654,10 +644,7 @@ QToolButton .svg-icon path { - Default theme - - - Default theme + Default Theme @@ -894,10 +881,7 @@ QToolButton .svg-icon path { - Run script - - - Run script + Run Script @@ -910,7 +894,7 @@ QToolButton .svg-icon path { - Reset settings + Reset Settings Reset settings @@ -934,7 +918,7 @@ QToolButton .svg-icon path { - Refresh contents + Refresh Contents Refresh contents @@ -958,7 +942,7 @@ QToolButton .svg-icon path { - Entry points + Entry Points @@ -974,18 +958,12 @@ QToolButton .svg-icon path { - Disassembly options - - - Disassembly options + Disassembly Options - Save as... - - - Save as + Save As...