From 524868dc3436a90dfc5d1e8f7cb48904b4e70f8e Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby Date: Mon, 6 Mar 2023 14:00:39 +0100 Subject: [PATCH] MainWindow: Minor change. --- src/view/MainWindow.py | 2 +- src/view/ui/MainWindow.ui | 60 ++++++++++-------- .../ui/{resources => ressources}/M_icon.png | Bin 3 files changed, 33 insertions(+), 29 deletions(-) rename src/view/ui/{resources => ressources}/M_icon.png (100%) diff --git a/src/view/MainWindow.py b/src/view/MainWindow.py index 399d4d5e..530ff007 100644 --- a/src/view/MainWindow.py +++ b/src/view/MainWindow.py @@ -20,7 +20,7 @@ class ApplicationWindow(QMainWindow): def set_icon(self): """ - Returns: Add icon to application window + Add icon to application window """ icon = QtGui.QIcon() _path= os.path.join(os.path.dirname(__file__), "ui", "resources", "M_icon.png") diff --git a/src/view/ui/MainWindow.ui b/src/view/ui/MainWindow.ui index 27e22741..2acafd50 100644 --- a/src/view/ui/MainWindow.ui +++ b/src/view/ui/MainWindow.ui @@ -59,7 +59,7 @@ 0 0 850 - 20 + 23 @@ -255,36 +255,27 @@ - - - - - - - - - - - + + @@ -322,6 +313,10 @@ false + + + ressources/edit.pngressources/edit.png + Nouvelle étude MAGE @@ -335,7 +330,7 @@ - ../ressources/menu/open.png../ressources/menu/open.png + ressources/open.pngressources/open.png Ouvrir une étude @@ -347,6 +342,11 @@ + + + ressources/open.png + + Ouvrir une étude @@ -380,20 +380,24 @@ true - - - ../ressources/menu/save.png../ressources/menu/save.png - Enregistrer le maillage + + + ressources/gtk-save.pngressources/gtk-save.png + Enregistrer + + + ressources/gtk-save-as.pngressources/gtk-save-as.png + Enregistrer sous ... @@ -572,7 +576,7 @@ - Serif + Ubuntu 75 true @@ -681,7 +685,7 @@ - ../ressources/menu/gtk-save-as.png../ressources/menu/gtk-save-as.png + ressources/save.pngressources/save.png enregistrer_etude_en_cours @@ -696,7 +700,7 @@ - ../ressources/menu/gtk-close.png../ressources/menu/gtk-close.png + ressources/gtk-close.pngressources/gtk-close.png fermer_etude_en_cours @@ -711,7 +715,7 @@ - ../ressources/menu/exit_bis.png../ressources/menu/exit_bis.png + ressources/exit_bis.pngressources/exit_bis.png quitter_application @@ -726,7 +730,7 @@ - ../ressources/menu/gtk-execute.png../ressources/menu/gtk-execute.png + ressources/gtk-execute.pngressources/gtk-execute.png lancer_solveur @@ -738,7 +742,7 @@ - ../ressources/menu/gtk-stop.png../ressources/menu/gtk-stop.png + ressources/gtk-stop.pngressources/gtk-stop.png interrompt_simulation_en_cours @@ -750,7 +754,7 @@ - ../ressources/menu/gnome-stock-insert-table.png../ressources/menu/gnome-stock-insert-table.png + ressources/gnome-stock-insert-table.pngressources/gnome-stock-insert-table.png lancer_mailleur_externe @@ -762,7 +766,7 @@ - ../ressources/menu/gnome-stock-edit.png../ressources/menu/gnome-stock-edit.png + ressources/gnome-stock-edit.pngressources/gnome-stock-edit.png afficher_listings_simulation @@ -774,7 +778,7 @@ - ../ressources/menu/reseau3_24.png../ressources/menu/reseau3_24.png + ressources/reseau3_24.pngressources/reseau3_24.png Réseau @@ -786,7 +790,7 @@ - ../ressources/menu/geometrie0.png../ressources/menu/geometrie0.png + ressources/geometrie0.pngressources/geometrie0.png Géométrie @@ -798,7 +802,7 @@ - ../ressources/menu/mailles-50.png../ressources/menu/mailles-50.png + ressources/mailles-50.pngressources/mailles-50.png Maillage diff --git a/src/view/ui/resources/M_icon.png b/src/view/ui/ressources/M_icon.png similarity index 100% rename from src/view/ui/resources/M_icon.png rename to src/view/ui/ressources/M_icon.png