From 1d0f0723d1211a78bda173bdc125865e98a81038 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr> Date: Thu, 9 Mar 2023 09:11:04 +0100 Subject: [PATCH] MainWindow: Add basic shortcut. --- src/view/ui/MainWindow.ui | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/view/ui/MainWindow.ui b/src/view/ui/MainWindow.ui index 87a9e22b..1a014058 100644 --- a/src/view/ui/MainWindow.ui +++ b/src/view/ui/MainWindow.ui @@ -34,7 +34,7 @@ <bool>true</bool> </property> <property name="windowTitle"> - <string>PAMHYR.2</string> + <string>PAMHYR</string> </property> <property name="windowIcon"> <iconset> @@ -319,6 +319,9 @@ <bold>true</bold> </font> </property> + <property name="shortcut"> + <string>Ctrl+N</string> + </property> </action> <action name="actionOuvrir_une_tude"> <property name="icon"> @@ -333,6 +336,9 @@ <property name="text"> <string>Nouvelle étude RubarBE</string> </property> + <property name="shortcut"> + <string>Ctrl+R</string> + </property> </action> <action name="actionOuvrir_une_tude_2"> <property name="icon"> @@ -343,6 +349,9 @@ <property name="text"> <string>Ouvrir une étude</string> </property> + <property name="shortcut"> + <string>Ctrl+O</string> + </property> </action> <action name="actionImporter_un_jeu_de_donn_es_MAGE"> <property name="text"> @@ -385,6 +394,9 @@ <property name="text"> <string>Enregistrer</string> </property> + <property name="shortcut"> + <string>Ctrl+S</string> + </property> </action> <action name="actionEnregistrer_sous"> <property name="icon"> @@ -394,6 +406,9 @@ <property name="text"> <string>Enregistrer sous ...</string> </property> + <property name="shortcut"> + <string>Ctrl+Shift+S</string> + </property> </action> <action name="actionArchiver"> <property name="text"> @@ -413,6 +428,9 @@ <property name="text"> <string>Quitter</string> </property> + <property name="shortcut"> + <string>Ctrl+F4</string> + </property> </action> <action name="actionEditer_le_r_seau"> <property name="text"> @@ -731,6 +749,9 @@ <property name="toolTip"> <string>Lancer le solveur pour réaliser une simulation</string> </property> + <property name="shortcut"> + <string>Ctrl+X</string> + </property> </action> <action name="actioninterrompt_simulation_en_cours"> <property name="icon"> @@ -743,6 +764,9 @@ <property name="toolTip"> <string>Interrompt la simulation en cours</string> </property> + <property name="shortcut"> + <string>Ctrl+C</string> + </property> </action> <action name="actionlancer_mailleur_externe"> <property name="icon"> -- GitLab