From ef515cd424a4641c623067e4b5e97ba38d5521ad Mon Sep 17 00:00:00 2001 From: xavierqet Date: Sat, 13 Oct 2007 17:04:52 +0000 Subject: [PATCH] Modification de l'agencement des menus et barres d'outils git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@175 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- lang/qet_en.qm | Bin 47803 -> 48496 bytes lang/qet_en.ts | 191 ++++++++++++++++++++++++------------------- qetdiagrameditor.cpp | 90 ++++++++++++-------- qetdiagrameditor.h | 4 +- 4 files changed, 167 insertions(+), 118 deletions(-) diff --git a/lang/qet_en.qm b/lang/qet_en.qm index fa7765b2b1eff286d7813fb09422d976096bc525..ae7b79f294342542ed2b7e9ec24be117657373fa 100644 GIT binary patch delta 3773 zcmb8xXIK z2v!gf3zo#1M2tb~n%CGs#TGQSpkm(t!aRBM@qIrmzkBb@oH_U0dzU@@ih1^y$+5Cn zP-%UKF+QKuj>yK^;%$90)G<~on&DZd%U4>Wk7qGsQ%A!h#-lih=#vY~>_RIdZ98U; zPy{E7Ze#osFQMPUq&+Jk>TYE6RJ-A2CVyutQI8EwQJ;B4J*7-_VHdccIo9D8Q7@&D zIo^RG>K!loBXgqCMD(eKIem}dB<8_8N0`LCpP2(6F)h}YiEMATY3D9+==zGt?k95+3+W zsw%%rG-$C@&9{darPfk!B8TbH-Z}ZOL^|jSo*&#4{aR&_6G& z$wXqG`-`p<{YA8;&EXExGba}i4G)l>?RXQGNb64{(GeEXH#IsV8kbn%C50+#2VKGF`YBsoHFmx7;WrJ%R(ccA)=EiL{_WoU>an|h88Xfdy)4v`^r@Ljus6FS@RUw$^LfmC z%3RSMT-W;R=)d7UOUIs=I*J?E37cu^UT&b1*(aQXT?)}OTW(A}CO9ow^dR@eqZ0HV zb8dQpX!;1w=-xaUjm6wd|3;!OyhRUj-udZ7uD!Xy-BResg`IbW`?$D|4ie26%EfaM z7{z@(=x4ZtOB`VhpK?jTSZlZ8Tv|Dfv0D(AHR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zyV`Jc>-DPMlHpki;#6tik2vD>b<&V*ci1WU*qQ)tm0aYN_FE{Fij;5U%$Zqm0sTXYXJTE_EHpj=!i@ZP#foqU$$0>jsWo14DE+ zV{jYd9d&N6u!Hz~UFeM=`15I_x=6Q`$AZReUA_rlXvPb=Lp6UBCD`f8a`Ak^M%~dn z*N76Ub*CkqSQ4u{>y9Q)GP>!`6%WOrKvzEjHBP#vyCOysZJMcjZte^-b$?$$oNTXq zvj??I4pqINXQGx9Z62&Qe}tac9H4g;+TkJ9+j?iaPNFRa{rH?lxJd862|bYFtY0!8 zADmL558i}zjVaIcn{siVw@%WR)XahR^<`=3;#3P&Z`Bli!})y7*XS?h94AT}rn*dj zuMD>!El2+-(1Ga7)vDF{j(kg^bWY##XCU;{ceG*W>CyUE-HE4{>0jTwiu<4b``ZC+ zvyp`h$Y|SYdBB5sSS{P0L}D49vb{5UBBMb5;28dM$#^PHSb&8xC(E7|?eL5|Ip8m% ztlp}V;Y-BZUCq_%O z%S-O~9<|?fUhdj~_w6348ftLjY7n0^xMdh4i1v&$cxIxT_uMzEsK5#AwKc2_35I(O z>r>|v<+vC&)K7ui3~{;!qOZu1T89O{`rMFd-3redj1WiOxTO{_TN;zJMoXjfmmh!H(l_&vcLyl zIE5+7nzKlxuv1xcg(WIVRg6)&3@IobLq9rsbN6X{k73JvBT%r=KQlEwrmAET^e;E#qN@qV0cwYHmx1}=v zLX`$;h=`$)XbLiwD!R%nMKiF!o`#bzh2bZZ)^)!`Jbs1Q!z0(5?nMtY8IOyVU%mg- z*3`?duj#sPdS#(sMz6{X!9KQ?kF!44S7v?PqA{JDDpmI0{~vR+u_o=e_NF5RR%X_w Wi6^X0&C&fTh014Um77oeA^ab6+zM;} diff --git a/lang/qet_en.ts b/lang/qet_en.ts index 84d4223b7..0deb2f27d 100644 --- a/lang/qet_en.ts +++ b/lang/qet_en.ts @@ -181,40 +181,45 @@ ConductorPropertiesWidget - + Type de conducteur Conductor Type - + Multifilaire Multiline - + Texte : Text : - + Unifilaire SIngleline - + phase phase - + terre ground - + neutre neutral + + + Simple + Simple + Diagram @@ -672,12 +677,12 @@ Please check rights of the directory ExportDialog - + Aperçu Preview - + Bitmap (*.bmp) Bitmap (*.bmp) @@ -727,17 +732,17 @@ Please check rights of the directory Export only elements - + Exporter vers le fichier Export to file - + Fichier non spécifié Filename not given - + Format : Format : @@ -747,17 +752,17 @@ Please check rights of the directory Height : - + Il semblerait que vous n'ayez pas les permissions nécessaires pour écrire dans ce fichier.. It seems you don't have the permissions needed to write this file.. - + Impossible d'écrire dans ce fichier Can't Write to the file - + JPEG (*.jpg) JPEG (*.jpg) @@ -777,12 +782,12 @@ Please check rights of the directory Options - + Parcourir Browse - + PNG (*.png) PNG (*.png) @@ -792,7 +797,7 @@ Please check rights of the directory px - + Vous devez spécifier le chemin du fichier dans lequel sera enregistrée l'image. You must give a filename to save the picture. @@ -802,12 +807,12 @@ Please check rights of the directory Draw terminals - + SVG (*.svg) SVG (*.svg) - + Images (*.png *.bmp *.jpg *.svg) Pictures (*.png *.bmp *.jpg *.svg) @@ -1083,77 +1088,77 @@ Please check rights of the directory QETApp - + QElectroTech QElectroTech - + &Quitter &Quit - + &Masquer &Hide - + &Restaurer &Show - + &Masquer tous les éditeurs de schéma &Hide diagram editors - + &Restaurer tous les éditeurs de schéma &Show diagram editors - + &Masquer tous les éditeurs d'élément &Hide element editors - + &Restaurer tous les éditeurs d'élément &Show element editors - + &Nouvel éditeur de schéma &New diagram editor - + &Nouvel éditeur d'élément &New element editor - + Ferme l'application QElectroTech Closes QElectroTech - + Réduire QElectroTech dans le systray Reduces QElectroTech into the systray - + Restaurer QElectroTech Restore QElectroTech - + Éditeurs de schémas Diagram editors - + Éditeurs d'élément Element editors @@ -1161,62 +1166,57 @@ Please check rights of the directory QETDiagramEditor - + Active la fenêtre Activates the window - + Active la fenêtre précédente Activates the previous window - + Active la fenêtre suivante Activates the next window - + Adapte la taille du schéma afin qu'il soit entièrement visible Changes the size of the plan so that it fits in the view - + Afficha&ge Displ&ay - + Affiche des informations sur la bibliothèque Qt Displays informations about Qt library - + Affiche des informations sur QElectroTech Displays informations about QElectroTech - - Affiche ou non la barre d'outils - Displays or not the toolbar - - - + Affiche ou non le panel d'appareils Displays or not the elements panel - + Affiche QElectroTech en mode fenêtré Displays QElectroTech in windowed mode - + Affiche QElectroTech en mode plein écran Displays QELectroTech in full screen mode - + Afficher Display @@ -1226,17 +1226,17 @@ Please check rights of the directory Expand the diagram - + Agrandit le schéma Expand the diagram - + Agrandit le schéma en hauteur Expand the diagram's height - + &Aide &Help @@ -1246,12 +1246,12 @@ Please check rights of the directory Add a column - + Ajoute une colonne au schéma Add a column to the diagram - + Aligne les fenêtres réduites Arranges all iconized windows at the bottom of the workspace @@ -1281,12 +1281,12 @@ Please check rights of the directory &Cascade - + Ce fichier n'est pas un document XML valide. This file is not a valid XML Document. - + Ce fichier n'existe pas. This file does not exist. @@ -1296,7 +1296,7 @@ Please check rights of the directory &Paste - + &Configuration &Settings @@ -1386,22 +1386,22 @@ Please check rights of the directory Deselect all elements on the plan - + Dispose les fenêtres en cascade Arranges windows in a cascade pattern - + Dispose les fenêtres en mosaïque Arranges windows in a tile pattern - + Édite les informations affichées par le cartouche Edit informations displayed by the inset - + &Édition &Edit @@ -1416,7 +1416,7 @@ Please check rights of the directory Remove a column - + Enlève une colonne au schéma Remove a column from the diagram @@ -1441,7 +1441,7 @@ Please check rights of the directory Save as - + Erreur Error @@ -1461,7 +1461,7 @@ Please check rights of the directory Previous Window - + Fe&nêtres Wi&ndows @@ -1486,7 +1486,7 @@ Please check rights of the directory &Close - + &Fichier &File @@ -1501,7 +1501,7 @@ Please check rights of the directory Imports a plan into the current plan - + Impossible de lire ce fichier. Could not read file. @@ -1541,12 +1541,7 @@ Please check rights of the directory &New - - O&utils - &Tools - - - + Outils Tools @@ -1561,7 +1556,7 @@ Please check rights of the directory &Open - + Ouvrir un fichier Open a file @@ -1581,17 +1576,17 @@ Please check rights of the directory F&ullScreen Mode - + Permet de régler différents paramètres de QElectroTech Allows to specify various parameters for QElectroTech - + Permet de sélectionner les éléments Allows to select elements - + Permet de visualiser le schéma sans pouvoir le modifier Allows to view the plan without modifying it @@ -1626,7 +1621,7 @@ Please check rights of the directory Restores the undone action - + Restaure le zoom par défaut Restores default zoom level @@ -1636,17 +1631,17 @@ Please check rights of the directory Shrink the diagram - + Rétrécit le schéma Shrinks the plan - + Rétrécit le schéma en hauteur Shrink the diagram's height - + Schémas QElectroTech (*.qet);;Fichiers XML (*.xml);;Tous les fichiers (*) QElectroTech Diagrams (*.qet);;XML Files (*.xml);;All files (*) @@ -1676,7 +1671,7 @@ Please check rights of the directory Puts selected elements into the clipboard - + Une erreur s'est produite lors de l'ouverture du fichier. An error occured while opening the file. @@ -1745,6 +1740,36 @@ Please check rights of the directory Ctrl+L Ctrl+L + + + Recalcule les chemins des conducteurs sans tenir compte des modifications + Reset the conductors path ignoring the user changes + + + + Affiche ou non la barre d'outils principale + Display or hide the main toolbar + + + + Affiche ou non la barre d'outils Affichage + Display or hide the Display toolbar + + + + Affiche ou non la barre d'outils Schéma + Display or hide the Diagram toolbar + + + + Affichage + Display + + + + Schéma + Diagram + QETElementEditor diff --git a/qetdiagrameditor.cpp b/qetdiagrameditor.cpp index 90178c10e..81c2aed7f 100644 --- a/qetdiagrameditor.cpp +++ b/qetdiagrameditor.cpp @@ -237,7 +237,7 @@ void QETDiagramEditor::actions() { quit_editor -> setStatusTip(tr("Ferme l'application QElectroTech")); undo -> setStatusTip(tr("Annule l'action pr\351c\351dente")); - undo -> setStatusTip(tr("Restaure l'action annul\351e")); + redo -> setStatusTip(tr("Restaure l'action annul\351e")); cut -> setStatusTip(tr("Transf\350re les \351l\351ments s\351lectionn\351s dans le presse-papier")); copy -> setStatusTip(tr("Copie les \351l\351ments s\351lectionn\351s dans le presse-papier")); paste -> setStatusTip(tr("Place les \351l\351ments du presse-papier sur le sch\351ma")); @@ -246,7 +246,8 @@ void QETDiagramEditor::actions() { select_invert -> setStatusTip(tr("D\351s\351lectionne les \351l\351ments s\351lectionn\351s et s\351lectionne les \351l\351ments non s\351lectionn\351s")); delete_selection -> setStatusTip(tr("Enl\350ve les \351l\351ments s\351lectionn\351s du sch\351ma")); rotate_selection -> setStatusTip(tr("Pivote les \351l\351ments s\351lectionn\351s")); - conductor_prop -> setStatusTip(tr("\311dite les propri\351t\351s du conducteur s\351lectionn\351")); + conductor_prop -> setStatusTip(tr("\311dite les propri\351t\351s du conducteur s\351lectionn\351")); + conductor_reset -> setStatusTip(tr("Recalcule les chemins des conducteurs sans tenir compte des modifications")); infos_diagram -> setStatusTip(tr("\311dite les informations affich\351es par le cartouche")); add_column -> setStatusTip(tr("Ajoute une colonne au sch\351ma")); remove_column -> setStatusTip(tr("Enl\350ve une colonne au sch\351ma")); @@ -332,7 +333,7 @@ void QETDiagramEditor::menus() { QMenu *menu_fichier = menuBar() -> addMenu(tr("&Fichier")); QMenu *menu_edition = menuBar() -> addMenu(tr("&\311dition")); QMenu *menu_affichage = menuBar() -> addMenu(tr("Afficha&ge")); - QMenu *menu_outils = menuBar() -> addMenu(tr("O&utils")); + //QMenu *menu_outils = menuBar() -> addMenu(tr("O&utils")); QMenu *menu_config = menuBar() -> addMenu(tr("&Configuration")); windows_menu = menuBar() -> addMenu(tr("Fe&n\352tres")); QMenu *menu_aide = menuBar() -> addMenu(tr("&Aide")); @@ -341,7 +342,7 @@ void QETDiagramEditor::menus() { menu_fichier -> setTearOffEnabled(true); menu_edition -> setTearOffEnabled(true); menu_affichage -> setTearOffEnabled(true); - menu_outils -> setTearOffEnabled(true); + //menu_outils -> setTearOffEnabled(true); menu_config -> setTearOffEnabled(true); windows_menu -> setTearOffEnabled(true); menu_aide -> setTearOffEnabled(true); @@ -384,29 +385,31 @@ void QETDiagramEditor::menus() { menu_edition -> addAction(expand_diagram); menu_edition -> addAction(shrink_diagram); - // menu Affichage > Afficher + // menu Configurer > Afficher QMenu *menu_aff_aff = new QMenu(tr("Afficher")); menu_aff_aff -> setTearOffEnabled(true); - menu_aff_aff -> addAction(barre_outils -> toggleViewAction()); - barre_outils -> toggleViewAction() -> setStatusTip(tr("Affiche ou non la barre d'outils")); + menu_aff_aff -> addAction(main_bar -> toggleViewAction()); + main_bar -> toggleViewAction() -> setStatusTip(tr("Affiche ou non la barre d'outils principale")); + menu_aff_aff -> addAction(view_bar -> toggleViewAction()); + view_bar -> toggleViewAction() -> setStatusTip(tr("Affiche ou non la barre d'outils Affichage")); + menu_aff_aff -> addAction(diagram_bar -> toggleViewAction()); + diagram_bar -> toggleViewAction() -> setStatusTip(tr("Affiche ou non la barre d'outils Sch\351ma")); menu_aff_aff -> addAction(qdw_pa -> toggleViewAction()); qdw_pa -> toggleViewAction() -> setStatusTip(tr("Affiche ou non le panel d'appareils")); // menu Affichage - menu_affichage -> addMenu(menu_aff_aff); + menu_affichage -> addAction(mode_selection); + menu_affichage -> addAction(mode_visualise); menu_affichage -> addSeparator(); menu_affichage -> addAction(zoom_in); menu_affichage -> addAction(zoom_out); menu_affichage -> addAction(zoom_fit); menu_affichage -> addAction(zoom_reset); - // menu Outils - menu_outils -> addAction(mode_selection); - menu_outils -> addAction(mode_visualise); - // menu Configuration + menu_config -> addMenu(menu_aff_aff); menu_config -> addAction(fullscreen_on); - menu_config -> addAction(configure); + //menu_config -> addAction(configure); // menu Fenetres slot_updateWindowsMenu(); @@ -420,30 +423,49 @@ void QETDiagramEditor::menus() { Mise en place de la barre d'outils */ void QETDiagramEditor::toolbar() { - barre_outils = new QToolBar(tr("Outils"), this); - barre_outils -> setObjectName("toolbar"); + main_bar = new QToolBar(tr("Outils"), this); + main_bar -> setObjectName("toolbar"); - // Modes selection / visualisation - barre_outils -> addAction(mode_selection); - barre_outils -> addAction(mode_visualise); - barre_outils -> addSeparator(); - barre_outils -> addAction(undo); - barre_outils -> addAction(redo); - barre_outils -> addSeparator(); - barre_outils -> addAction(cut); - barre_outils -> addAction(copy); - barre_outils -> addAction(paste); - barre_outils -> addSeparator(); - barre_outils -> addAction(delete_selection); - barre_outils -> addAction(rotate_selection); - barre_outils -> addSeparator(); - barre_outils -> addAction(zoom_in); - barre_outils -> addAction(zoom_out); - barre_outils -> addAction(zoom_fit); - barre_outils -> addAction(zoom_reset); + view_bar = new QToolBar(tr("Affichage"), this); + view_bar -> setObjectName("display"); + + diagram_bar = new QToolBar(tr("Sch\351ma"), this); + diagram_bar -> setObjectName("diagram"); + + main_bar -> addAction(new_file); + main_bar -> addAction(open_file); + main_bar -> addAction(save_file); + main_bar -> addAction(save_file_sous); + main_bar -> addAction(close_file); + main_bar -> addAction(print); + main_bar -> addSeparator(); + main_bar -> addAction(undo); + main_bar -> addAction(redo); + main_bar -> addSeparator(); + main_bar -> addAction(cut); + main_bar -> addAction(copy); + main_bar -> addAction(paste); + main_bar -> addSeparator(); + main_bar -> addAction(delete_selection); + main_bar -> addAction(rotate_selection); + + // Modes selection / visualisation et zoom + view_bar -> addAction(mode_selection); + view_bar -> addAction(mode_visualise); + view_bar -> addSeparator(); + view_bar -> addAction(zoom_in); + view_bar -> addAction(zoom_out); + view_bar -> addAction(zoom_fit); + view_bar -> addAction(zoom_reset); + + diagram_bar -> addAction(infos_diagram); + diagram_bar -> addAction(conductor_prop); + diagram_bar -> addAction(conductor_reset); // ajout de la barre d'outils a la fenetre principale - addToolBar(Qt::TopToolBarArea, barre_outils); + addToolBar(Qt::TopToolBarArea, main_bar); + addToolBar(Qt::TopToolBarArea, view_bar); + addToolBar(Qt::TopToolBarArea, diagram_bar); } /** diff --git a/qetdiagrameditor.h b/qetdiagrameditor.h index 67c68873c..c68e0e695 100644 --- a/qetdiagrameditor.h +++ b/qetdiagrameditor.h @@ -122,7 +122,9 @@ class QETDiagramEditor : public QMainWindow { /// Panel d'Appareils ElementsPanelWidget *pa; QMenu *windows_menu; - QToolBar *barre_outils; + QToolBar *main_bar; + QToolBar *view_bar; + QToolBar *diagram_bar; QUndoGroup undo_group; }; #endif