From 0ed791b9461f7b9b18945e70ce1490b273ee2dc1 Mon Sep 17 00:00:00 2001 From: athaarnaqvi Date: Tue, 23 Jul 2024 16:59:55 +0500 Subject: [PATCH 1/3] Added Key Shortcuts --- gns3/ui/main_window.ui | 9 +++++++++ gns3/ui/main_window_ui.py | 3 +++ 2 files changed, 12 insertions(+) diff --git a/gns3/ui/main_window.ui b/gns3/ui/main_window.ui index 9d255541c..84f38c37f 100644 --- a/gns3/ui/main_window.ui +++ b/gns3/ui/main_window.ui @@ -635,6 +635,9 @@ background-none; :/icons/start.svg :/icons/start-hover.svg:/icons/start.svg + + Ctrl+F5 + Start/Resume all nodes @@ -654,6 +657,9 @@ background-none; :/icons/stop.svg :/icons/stop-hover.svg:/icons/stop.svg + + Shift+F5 + Stop all nodes @@ -788,6 +794,9 @@ background-none; :/icons/pause.svg :/icons/pause-hover.svg:/icons/pause.svg + + Ctrl+Alt+F5 + Suspend all nodes diff --git a/gns3/ui/main_window_ui.py b/gns3/ui/main_window_ui.py index ec919505f..1073f76f2 100644 --- a/gns3/ui/main_window_ui.py +++ b/gns3/ui/main_window_ui.py @@ -602,9 +602,11 @@ def retranslateUi(self, MainWindow): self.uiScreenshotAction.setToolTip(_translate("MainWindow", "Take a screenshot")) self.uiScreenshotAction.setStatusTip(_translate("MainWindow", "Take a screenshot")) self.uiStartAllAction.setText(_translate("MainWindow", "Start/Resume all nodes")) + self.uiStartAllAction.setShortcut(_translate("MainWindow", "Ctrl+F5")) self.uiStartAllAction.setToolTip(_translate("MainWindow", "Start/Resume all nodes")) self.uiStartAllAction.setStatusTip(_translate("MainWindow", "Start/Resume all devices")) self.uiStopAllAction.setText(_translate("MainWindow", "Stop all nodes")) + self.uiStopAllAction.setShortcut(_translate("MainWindow", "Shift+F5")) self.uiStopAllAction.setToolTip(_translate("MainWindow", "Stop all nodes")) self.uiStopAllAction.setStatusTip(_translate("MainWindow", "Stop all devices")) self.uiConsoleAllAction.setText(_translate("MainWindow", "Console connect to all nodes")) @@ -633,6 +635,7 @@ def retranslateUi(self, MainWindow): self.uiPreferencesAction.setStatusTip(_translate("MainWindow", "Preferences")) self.uiPreferencesAction.setShortcut(_translate("MainWindow", "Ctrl+Shift+P")) self.uiSuspendAllAction.setText(_translate("MainWindow", "Suspend all nodes")) + self.uiSuspendAllAction.setShortcut(_translate("MainWindow", "Ctrl+Alt+F5")) self.uiSuspendAllAction.setToolTip(_translate("MainWindow", "Suspend all nodes")) self.uiSuspendAllAction.setStatusTip(_translate("MainWindow", "Suspend all devices")) self.uiAddNoteAction.setText(_translate("MainWindow", "Add note")) From 3aa5a5369f045a7f868107442708ae9f092f61a7 Mon Sep 17 00:00:00 2001 From: Bilal Date: Wed, 24 Jul 2024 07:02:14 +0000 Subject: [PATCH 2/3] modified Control menu shortcuts --- gns3/ui/main_window.ui | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gns3/ui/main_window.ui b/gns3/ui/main_window.ui index 84f38c37f..7b5ad8ad0 100644 --- a/gns3/ui/main_window.ui +++ b/gns3/ui/main_window.ui @@ -636,7 +636,7 @@ background-none; :/icons/start-hover.svg:/icons/start.svg - Ctrl+F5 + Ctrl+B Start/Resume all nodes @@ -658,7 +658,7 @@ background-none; :/icons/stop-hover.svg:/icons/stop.svg - Shift+F5 + Ctrl+E Stop all nodes @@ -795,7 +795,7 @@ background-none; :/icons/pause-hover.svg:/icons/pause.svg - Ctrl+Alt+F5 + Ctrl+J Suspend all nodes From 84017fa0f19ae58f23a0808a02f4ca190f0bf90a Mon Sep 17 00:00:00 2001 From: Bilal Date: Wed, 24 Jul 2024 07:05:38 +0000 Subject: [PATCH 3/3] modified Control menu shortcuts further --- gns3/ui/main_window_ui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gns3/ui/main_window_ui.py b/gns3/ui/main_window_ui.py index 1073f76f2..d651c9fa2 100644 --- a/gns3/ui/main_window_ui.py +++ b/gns3/ui/main_window_ui.py @@ -602,11 +602,11 @@ def retranslateUi(self, MainWindow): self.uiScreenshotAction.setToolTip(_translate("MainWindow", "Take a screenshot")) self.uiScreenshotAction.setStatusTip(_translate("MainWindow", "Take a screenshot")) self.uiStartAllAction.setText(_translate("MainWindow", "Start/Resume all nodes")) - self.uiStartAllAction.setShortcut(_translate("MainWindow", "Ctrl+F5")) + self.uiStartAllAction.setShortcut(_translate("MainWindow", "Ctrl+B")) self.uiStartAllAction.setToolTip(_translate("MainWindow", "Start/Resume all nodes")) self.uiStartAllAction.setStatusTip(_translate("MainWindow", "Start/Resume all devices")) self.uiStopAllAction.setText(_translate("MainWindow", "Stop all nodes")) - self.uiStopAllAction.setShortcut(_translate("MainWindow", "Shift+F5")) + self.uiStopAllAction.setShortcut(_translate("MainWindow", "Ctrl+E")) self.uiStopAllAction.setToolTip(_translate("MainWindow", "Stop all nodes")) self.uiStopAllAction.setStatusTip(_translate("MainWindow", "Stop all devices")) self.uiConsoleAllAction.setText(_translate("MainWindow", "Console connect to all nodes")) @@ -635,7 +635,7 @@ def retranslateUi(self, MainWindow): self.uiPreferencesAction.setStatusTip(_translate("MainWindow", "Preferences")) self.uiPreferencesAction.setShortcut(_translate("MainWindow", "Ctrl+Shift+P")) self.uiSuspendAllAction.setText(_translate("MainWindow", "Suspend all nodes")) - self.uiSuspendAllAction.setShortcut(_translate("MainWindow", "Ctrl+Alt+F5")) + self.uiSuspendAllAction.setShortcut(_translate("MainWindow", "Ctrl+J")) self.uiSuspendAllAction.setToolTip(_translate("MainWindow", "Suspend all nodes")) self.uiSuspendAllAction.setStatusTip(_translate("MainWindow", "Suspend all devices")) self.uiAddNoteAction.setText(_translate("MainWindow", "Add note"))