Compare commits

..

2 Commits
0.2 ... 0.2rc1

Author SHA1 Message Date
scorpio810
1e0386a469 Reverting deletion of branch 0.2, 0.3
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/tags/0.2rc1@5946 bfdf4180-ca20-0410-9c96-a3a8aa849046
2019-06-26 08:02:48 +00:00
xavier
5160a06415 Tag de la version 0.2 RC1
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/tags/0.2rc1@697 bfdf4180-ca20-0410-9c96-a3a8aa849046
2009-06-13 15:42:32 +00:00
53 changed files with 7575 additions and 9450 deletions

View File

@@ -42,10 +42,9 @@ Le dialogue "Exporter" (pour générer un fichier image d'un schéma) a égaleme
* L'accrochage à la grille (aka "snap to grid", également connu sous le nom de grille magnétique ou encore grille aimantée) a été ajouté. Le dessin s'y accroche désormais avec une précision de 1px. On peut travailler en coordonnées libres en maintenant la touche Ctrl enfoncée durant le dessin. * L'accrochage à la grille (aka "snap to grid", également connu sous le nom de grille magnétique ou encore grille aimantée) a été ajouté. Le dessin s'y accroche désormais avec une précision de 1px. On peut travailler en coordonnées libres en maintenant la touche Ctrl enfoncée durant le dessin.
* Le copier-coller a été implémenté : il est possible de coller : * Le copier-coller a été implémenté : il est possible de coller :
* avec le bouton du milieu de la souris * avec le bouton du milieu de la souris
* en choisissant une "zone de collage" sur l'élément (Ctrl+Shift+V) * en choisissant une "zone de collage" sur l'élément (Ctrl+Shift+V) : cf screenshot à gauche
* directement (Ctrl+V) : les parties collées sont placées à côté des parties copiées ; si on recolle les parties, elles sont collées encore un cran à côté, et ce de manière incrémentale. * directement (Ctrl+V) : les parties collées sont placées à côté des parties copiées ; si on recolle les parties, elles sont collées encore un cran à côté, et ce de manière incrémentale. Ainsi le screenshot à droite montre ce que l'on obtient en collant une sélection 8 fois d'affilée.
* Des contrôles sont désormais effectués à l'enregistrement : présence de bornes, respect du cadre, etc. * Des contrôles sont désormais effectués à l'enregistrement : présence de bornes, respect du cadre, etc.
* Uniformisation des menus par rapport à l'éditeur de schémas
====== Changelog 0.1 -> 0.11 ====== ====== Changelog 0.1 -> 0.11 ======

View File

@@ -2,8 +2,7 @@
<names> <names>
<name lang="ru" >Вход</name> <name lang="ru" >Вход</name>
<name lang="en" >Input</name> <name lang="en" >Input</name>
<name lang="fr" >Entrée</name> <name lang="fr" >Entrée</name>
<name lang="es" >Entrada</name>
</names> </names>
<description> <description>
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="40" y2="0" x2="20" /> <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="40" y2="0" x2="20" />

View File

@@ -2,8 +2,7 @@
<names> <names>
<name lang="ru" >И</name> <name lang="ru" >И</name>
<name lang="en" >AND</name> <name lang="en" >AND</name>
<name lang="fr" >ET</name> <name lang="fr" >ET</name>
<name lang="es" >Y</name>
</names> </names>
<description> <description>
<input x="-46" y="10" size="8" rotate="true" text="_" /> <input x="-46" y="10" size="8" rotate="true" text="_" />

View File

@@ -2,8 +2,7 @@
<names> <names>
<name lang="ru" >И, трёхвходовый</name> <name lang="ru" >И, трёхвходовый</name>
<name lang="en" >AND 3 inputs</name> <name lang="en" >AND 3 inputs</name>
<name lang="fr" >ET 3 entrées</name> <name lang="fr" >ET 3 entrées</name>
<name lang="es" >Y 3 entradas</name>
</names> </names>
<description> <description>
<input x="-46" y="-10" size="8" rotate="true" text="_" /> <input x="-46" y="-10" size="8" rotate="true" text="_" />

View File

@@ -2,8 +2,7 @@
<names> <names>
<name lang="ru" >И-НЕ</name> <name lang="ru" >И-НЕ</name>
<name lang="en" >NAND</name> <name lang="en" >NAND</name>
<name lang="fr" >NON-ET (NAND)</name> <name lang="fr" >NON-ET (NAND)</name>
<name lang="es" >NO-Y (NAND)</name>
</names> </names>
<description> <description>
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="40" y2="0" x2="26" /> <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="40" y2="0" x2="26" />

View File

@@ -2,8 +2,7 @@
<names> <names>
<name lang="ru" >НЕ</name> <name lang="ru" >НЕ</name>
<name lang="en" >NOT</name> <name lang="en" >NOT</name>
<name lang="fr" >NON</name> <name lang="fr" >NON</name>
<name lang="es" >NO</name>
</names> </names>
<description> <description>
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="40" y2="0" x2="26" /> <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="40" y2="0" x2="26" />

View File

@@ -2,8 +2,7 @@
<names> <names>
<name lang="ru" >ИЛИ-НЕ</name> <name lang="ru" >ИЛИ-НЕ</name>
<name lang="en" >NOR</name> <name lang="en" >NOR</name>
<name lang="fr" >NON-OU (NOR)</name> <name lang="fr" >NON-OU (NOR)</name>
<name lang="es" >NO-O (NOR)</name>
</names> </names>
<description> <description>
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="40" y2="0" x2="26" /> <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="40" y2="0" x2="26" />

View File

@@ -2,8 +2,7 @@
<names> <names>
<name lang="ru" >ИЛИ</name> <name lang="ru" >ИЛИ</name>
<name lang="en" >OR</name> <name lang="en" >OR</name>
<name lang="fr" >OU</name> <name lang="fr" >OU</name>
<name lang="es" >O</name>
</names> </names>
<description> <description>
<input x="-46" y="10" size="8" rotate="true" text="_" /> <input x="-46" y="10" size="8" rotate="true" text="_" />

View File

@@ -2,8 +2,7 @@
<names> <names>
<name lang="ru" >ИЛИ, трёхвходовый</name> <name lang="ru" >ИЛИ, трёхвходовый</name>
<name lang="en" >OR 3 inputs</name> <name lang="en" >OR 3 inputs</name>
<name lang="fr" >OU 3 entrées</name> <name lang="fr" >OU 3 entrées</name>
<name lang="es" >O 3 entradas</name>
</names> </names>
<description> <description>
<input x="-46" y="-10" size="8" rotate="true" text="_" /> <input x="-46" y="-10" size="8" rotate="true" text="_" />

View File

@@ -2,8 +2,7 @@
<names> <names>
<name lang="ru" >Установка/Сброс</name> <name lang="ru" >Установка/Сброс</name>
<name lang="en" >SET/RESET</name> <name lang="en" >SET/RESET</name>
<name lang="fr" >SET/RESET</name> <name lang="fr" >SET/RESET</name>
<name lang="es" >SET/RESET</name>
</names> </names>
<description> <description>
<input x="-46" y="-10" size="8" rotate="true" text="R" /> <input x="-46" y="-10" size="8" rotate="true" text="R" />

View File

@@ -2,8 +2,7 @@
<names> <names>
<name lang="ru" >Инверсное исключающее ИЛИ</name> <name lang="ru" >Инверсное исключающее ИЛИ</name>
<name lang="en" >XNOR</name> <name lang="en" >XNOR</name>
<name lang="fr" >NON-OU excusif (XNOR)</name> <name lang="fr" >NON-OU excusif (XNOR)</name>
<name lang="es" >NO-O exclusiva (XNOR)</name>
</names> </names>
<description> <description>
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="40" y2="0" x2="26" /> <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="40" y2="0" x2="26" />

View File

@@ -2,8 +2,7 @@
<names> <names>
<name lang="ru" >Исключающее ИЛИ</name> <name lang="ru" >Исключающее ИЛИ</name>
<name lang="en" >XOR</name> <name lang="en" >XOR</name>
<name lang="fr" >OU exclusif (XOR)</name> <name lang="fr" >OU exclusif (XOR)</name>
<name lang="es" >O exclusiva (XOR)</name>
</names> </names>
<description> <description>
<input x="-46" y="10" size="8" rotate="true" text="_" /> <input x="-46" y="10" size="8" rotate="true" text="_" />

View File

@@ -1,18 +1,17 @@
<definition width="50" version="0.2" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" > <definition width="50" version="0.1" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" >
<names> <names>
<name lang="ru" >Вход (задний фронт)</name> <name lang="en" >Input (down front)</name>
<name lang="en" >Input (down front)</name> <name lang="fr" >Entrée (front descendant)</name>
<name lang="fr" >Entrée (front descendant)</name> <name lang="es" >Entrada (front descendant)</name>
<name lang="es" >Entrada (descendente)</name> </names>
</names> <description>
<description> <text x="-4.25" y="5.25" size="9" text="N" />
<text x="-4.25" y="5.25" size="9" text="N" /> <input x="-18" y="-10" size="9" rotate="true" text="_" />
<input x="-18" y="-10" size="9" rotate="true" text="_" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="5" x1="10" y2="-5" x2="10" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="5" x1="10" y2="-5" x2="10" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-5" x1="-10" y2="5" x2="-10" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-5" x1="-10" y2="5" x2="-10" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="10" y2="0" x2="24" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="10" y2="0" x2="24" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="-24" y2="0" x2="-10" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="-24" y2="0" x2="-10" /> <terminal x="24" y="0" orientation="e" />
<terminal x="24" y="0" orientation="e" /> <terminal x="-24" y="0" orientation="w" />
<terminal x="-24" y="0" orientation="w" /> </description>
</description> </definition>
</definition>

View File

@@ -1,18 +1,16 @@
<definition width="50" version="0.2" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" > <definition width="50" version="0.1" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" >
<names> <names>
<name lang="ru" >Вход (передний фронт)</name> <name lang="en" >Input (up front)</name>
<name lang="en" >Input (up front)</name>
<name lang="fr" >Entrée (front montant)</name> <name lang="fr" >Entrée (front montant)</name>
<name lang="es" >Entrada (ascendente)</name> </names>
</names> <description>
<description> <text x="-3.5" y="5.25" size="9" text="P" />
<text x="-3.5" y="5.25" size="9" text="P" /> <input x="-18" y="-10" size="9" rotate="true" text="_" />
<input x="-18" y="-10" size="9" rotate="true" text="_" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="5" x1="10" y2="-5" x2="10" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="5" x1="10" y2="-5" x2="10" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-5" x1="-10" y2="5" x2="-10" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-5" x1="-10" y2="5" x2="-10" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="10" y2="0" x2="24" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="10" y2="0" x2="24" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="-24" y2="0" x2="-10" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="-24" y2="0" x2="-10" /> <terminal x="24" y="0" orientation="e" />
<terminal x="24" y="0" orientation="e" /> <terminal x="-24" y="0" orientation="w" />
<terminal x="-24" y="0" orientation="w" /> </description>
</description> </definition>
</definition>

View File

@@ -1,18 +1,16 @@
<definition width="50" version="0.2" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" > <definition width="50" version="0.1" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" >
<names> <names>
<name lang="ru" >Вход (отрицательная логика)</name> <name lang="en" >Input (negative logic)</name>
<name lang="en" >Input (negative logic)</name>
<name lang="fr" >Entrée (NF)</name> <name lang="fr" >Entrée (NF)</name>
<name lang="es" >Entrada (lógica negativa)</name> </names>
</names> <description>
<description> <line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="5" x1="-7" y2="-5" x2="7" />
<line length1="1.5" length2="1.5" antialias="true" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="5" x1="-7" y2="-5" x2="7" /> <input x="-18" y="-10" size="9" rotate="true" text="_" />
<input x="-18" y="-10" size="9" rotate="true" text="_" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="5" x1="10" y2="-5" x2="10" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="5" x1="10" y2="-5" x2="10" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-5" x1="-10" y2="5" x2="-10" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-5" x1="-10" y2="5" x2="-10" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="10" y2="0" x2="24" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="10" y2="0" x2="24" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="-24" y2="0" x2="-10" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="-24" y2="0" x2="-10" /> <terminal x="24" y="0" orientation="e" />
<terminal x="24" y="0" orientation="e" /> <terminal x="-24" y="0" orientation="w" />
<terminal x="-24" y="0" orientation="w" /> </description>
</description> </definition>
</definition>

View File

@@ -1,17 +1,16 @@
<definition width="50" version="0.2" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" > <definition width="50" version="0.1" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" >
<names> <names>
<name lang="ru" >Выход (сброс)</name> <name lang="en" >Output (reset)</name>
<name lang="en" >Output (reset)</name> <name lang="fr" >Sortie (reset)</name>
<name lang="fr" >Sortie (reset)</name> <name lang="es" >Salida (reset)</name>
<name lang="es" >Salida (reset)</name> </names>
</names> <description>
<description> <text x="-4.25" y="5.25" size="9" text="R" />
<text x="-4.25" y="5.25" size="9" text="R" /> <arc width="4" x="6" y="-5" antialias="true" height="10" style="line-style:normal;line-weight:normal;filling:none;color:black" start="80" angle="-160" />
<arc width="4" x="6" y="-5" antialias="true" height="10" style="line-style:normal;line-weight:normal;filling:none;color:black" start="80" angle="-160" /> <input x="-18" y="-10" size="9" rotate="true" text="_" />
<input x="-18" y="-10" size="9" rotate="true" text="_" /> <arc width="4" x="-10" y="-5" antialias="true" height="10" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-100" angle="-160" />
<arc width="4" x="-10" y="-5" antialias="true" height="10" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-100" angle="-160" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="10" y2="0" x2="24" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="10" y2="0" x2="24" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="-24" y2="0" x2="-10" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="-24" y2="0" x2="-10" /> <terminal x="-24" y="0" orientation="w" />
<terminal x="-24" y="0" orientation="w" /> </description>
</description> </definition>
</definition>

View File

@@ -1,17 +1,16 @@
<definition width="50" version="0.2" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" > <definition width="50" version="0.1" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" >
<names> <names>
<name lang="ru" >Выход (установка)</name> <name lang="en" >Output (set)</name>
<name lang="en" >Output (set)</name> <name lang="fr" >Sortie (set)</name>
<name lang="fr" >Sortie (set)</name> <name lang="es" >Salida (set)</name>
<name lang="es" >Salida (set)</name> </names>
</names> <description>
<description> <arc width="4" x="6" y="-5" antialias="true" height="10" style="line-style:normal;line-weight:normal;filling:none;color:black" start="80" angle="-160" />
<arc width="4" x="6" y="-5" antialias="true" height="10" style="line-style:normal;line-weight:normal;filling:none;color:black" start="80" angle="-160" /> <input x="-18" y="-10" size="9" rotate="true" text="_" />
<input x="-18" y="-10" size="9" rotate="true" text="_" /> <arc width="4" x="-10" y="-5" antialias="true" height="10" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-100" angle="-160" />
<arc width="4" x="-10" y="-5" antialias="true" height="10" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-100" angle="-160" /> <text x="-4.25" y="5.25" size="9" text="S" />
<text x="-4.25" y="5.25" size="9" text="S" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="10" y2="0" x2="24" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="10" y2="0" x2="24" /> <line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="-24" y2="0" x2="-10" />
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="-24" y2="0" x2="-10" /> <terminal x="-24" y="0" orientation="w" />
<terminal x="-24" y="0" orientation="w" /> </description>
</description> </definition>
</definition>

View File

@@ -3,6 +3,6 @@
<name lang="ru" >Автоматика</name> <name lang="ru" >Автоматика</name>
<name lang="en" >Automatism</name> <name lang="en" >Automatism</name>
<name lang="fr" >Automatisme</name> <name lang="fr" >Automatisme</name>
<name lang="es" >Automatismo</name> <name lang="es" >Automática</name>
</names> </names>
</qet-directory> </qet-directory>

View File

@@ -1,6 +1,6 @@
<qet-directory> <qet-directory>
<names> <names>
<name lang="ru" >Измеррительные приборы</name> <name lang="ru" >Измерительные приборы</name>
<name lang="en" >Measuring instruments</name> <name lang="en" >Measuring instruments</name>
<name lang="fr" >Appareils de mesure</name> <name lang="fr" >Appareils de mesure</name>
<name lang="es" >Instrumento de medición</name> <name lang="es" >Instrumento de medición</name>

View File

@@ -2,8 +2,7 @@
<names> <names>
<name lang="ru" >Гнездо (нов.)</name> <name lang="ru" >Гнездо (нов.)</name>
<name lang="fr" >Connecteur femelle</name> <name lang="fr" >Connecteur femelle</name>
<name lang="en" >Female connector</name> <name lang="en" >Female connector</name>
<name lang="es" >Connector hembra</name>
</names> </names>
<description> <description>
<input x="4" y="-7.5" size="8" rotate="true" text="_" /> <input x="4" y="-7.5" size="8" rotate="true" text="_" />

View File

@@ -2,8 +2,7 @@
<names> <names>
<name lang="ru" >Штырь (нов.)</name> <name lang="ru" >Штырь (нов.)</name>
<name lang="fr" >Connecteur mâle</name> <name lang="fr" >Connecteur mâle</name>
<name lang="en" >Male connector</name> <name lang="en" >Male connector</name>
<name lang="es" >Connector macho</name>
</names> </names>
<description> <description>
<line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="2" x1="-1" y2="9" x2="-1" /> <line length1="1.5" length2="1.5" antialias="false" end1="none" end2="none" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="2" x1="-1" y2="9" x2="-1" />

View File

@@ -2,7 +2,6 @@
<names> <names>
<name lang="ru" >соеденителей</name> <name lang="ru" >соеденителей</name>
<name lang="en" >Terminals</name> <name lang="en" >Terminals</name>
<name lang="fr" >Bornes</name> <name lang="fr" >Bornes</name>
<name lang="es" >Conectores</name>
</names> </names>
</qet-directory> </qet-directory>

View File

@@ -2,7 +2,6 @@
<names> <names>
<name lang="ru" >Высокое напряжение</name> <name lang="ru" >Высокое напряжение</name>
<name lang="en" >High voltage</name> <name lang="en" >High voltage</name>
<name lang="fr" >Haute tension</name> <name lang="fr" >Haute tension</name>
<name lang="es" >Alta tensión</name>
</names> </names>
</qet-directory> </qet-directory>

View File

@@ -1,6 +1,6 @@
<qet-directory> <qet-directory>
<names> <names>
<name lang="ru" >Приёмники</name> <name lang="ru" >Приёмники энергии</name>
<name lang="en" >Receivers</name> <name lang="en" >Receivers</name>
<name lang="fr" >Récepteurs</name> <name lang="fr" >Récepteurs</name>
<name lang="es" >Receptores</name> <name lang="es" >Receptores</name>

View File

@@ -1,10 +1,5 @@
<project title="" version="0.2" > <project version="0.1" >
<newdiagrams> <diagram title="Exemple d'installation domestique" displayrows="true" cols="15" folio="" displaycols="true" height="340" colsize="50" rows="4" author="Benoît A" filename="Exemples QET" rowsize="80" >
<border displayrows="true" cols="17" displaycols="true" colsize="60" rows="8" rowsize="80" />
<inset title="" folio="" author="" filename="" date="null" />
<conductors num="_" type="multi" />
</newdiagrams>
<diagram title="Exemple d'installation domestique" displayrows="true" cols="15" folio="" displaycols="true" height="340" colsize="50" order="1" rows="4" author="Benoît A" filename="Exemples QET" rowsize="80" >
<defaultconductor neutral="true" phase="1" ground="true" type="single" /> <defaultconductor neutral="true" phase="1" ground="true" type="single" />
<elements> <elements>
<element x="150" y="220" type="common://protections/disjoncteurs/disjoncteur1.elmt" orientation="0" > <element x="150" y="220" type="common://protections/disjoncteurs/disjoncteur1.elmt" orientation="0" >
@@ -342,5 +337,4 @@
<conductor neutral="true" phase="1" terminal1="54" ground="true" terminal2="30" type="single" /> <conductor neutral="true" phase="1" terminal1="54" ground="true" terminal2="30" type="single" />
</conductors> </conductors>
</diagram> </diagram>
<collection/>
</project> </project>

View File

@@ -1,10 +1,5 @@
<project title="" version="0.2" > <project version="0.1" >
<newdiagrams> <diagram title="Exemple Moteur double sens" displayrows="true" cols="15" folio="" displaycols="true" height="500" colsize="50" rows="6" author="Benoît A" filename="Exemples QET" rowsize="80" >
<border displayrows="true" cols="17" displaycols="true" colsize="60" rows="8" rowsize="80" />
<inset title="" folio="" author="" filename="" date="null" />
<conductors num="_" type="multi" />
</newdiagrams>
<diagram title="Exemple Moteur double sens" displayrows="true" cols="15" folio="" displaycols="true" height="500" colsize="50" order="1" rows="6" author="Benoît A" filename="Exemples QET" rowsize="80" >
<defaultconductor type="simple" /> <defaultconductor type="simple" />
<elements> <elements>
<element x="50" y="70" type="common://sources/multifilaire/src_3pn.elmt" orientation="0" > <element x="50" y="70" type="common://sources/multifilaire/src_3pn.elmt" orientation="0" >
@@ -385,5 +380,4 @@
</conductor> </conductor>
</conductors> </conductors>
</diagram> </diagram>
<collection/>
</project> </project>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +1,5 @@
#!/bin/bash #!/bin/bash
current_dir=$(dirname "$0")
cd "$current_dir"
# configuration # configuration
QET_EXE="../qelectrotech" QET_EXE="../qelectrotech"
QET_ELEMENTS_DIR="../elements/" QET_ELEMENTS_DIR="../elements/"
@@ -37,5 +34,3 @@ fi
# launching # launching
${QET_EXE} ${OPTIONS} $* ${QET_EXE} ${OPTIONS} $*
cd - > /dev/null 2>&1

View File

@@ -5,29 +5,27 @@ Summary(fr): Réaliser des schémas électriques
# Upstream version is a float so 0.11 < 0.2 < 0.21 < 0.3 # Upstream version is a float so 0.11 < 0.2 < 0.21 < 0.3
# So use %.2f with upstream acknowledgment # So use %.2f with upstream acknowledgment
Version: 0.20 Version: 0.20
Release: 0.3.rc1%{?dist} Release: 0.2.beta%{?dist}
Group: Applications/Productivity Group: Applications/Productivity
# Prog is GPLv2 - Element are Creative Commons Attribution License: GPLv2
License: GPLv2+ Url: http://qelectrotech.tuxfamily.org/
Url: http://qelectrotech.org/
# svn export -r 374 svn://svn.tuxfamily.org/svnroot/qet/qet/trunk qelectrotech-svn374 # svn export -r 374 svn://svn.tuxfamily.org/svnroot/qet/qet/trunk qelectrotech-svn374
# tar cvjf /home/rpmbuild/SOURCES/qelectrotech-svn374.tar.bz2 --exclude .svn qelectrotech-svn374 # tar cvjf /home/rpmbuild/SOURCES/qelectrotech-svn374.tar.bz2 --exclude .svn qelectrotech-svn374
#Source0: qelectrotech-svn374.tar.bz2 #Source0: qelectrotech-svn374.tar.bz2
Source0: http://download.tuxfamily.org/qet/tags/20090613/qelectrotech-0.2rc1-src.tar.gz #Source0: http://download.tuxfamily.org/qet/tags/20080831/qelectrotech-0.11-src.tar.gz
Source0: http://download.tuxfamily.org/qet/tags/20090523/qelectrotech-0.2b-src.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
Requires(post): desktop-file-utils Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils Requires(postun): desktop-file-utils
%if 0%{?fedora} >= 9 %if 0%{?fedora} > 8
BuildRequires: qt-devel >= 4.4.1 BuildRequires: qt-devel >= 4.4.1
%else %else
BuildRequires: qt4-devel >= 4.4.1 BuildRequires: qt4-devel >= 4.4.1
%endif %endif
Requires: qelectrotech-elements = %{version}-%{release}
%description %description
QElectroTech is a Qt4 application to design electric diagrams. It uses XML QElectroTech is a Qt4 application to design electric diagrams. It uses XML
@@ -40,27 +38,10 @@ QET utilise le format XML pour ses éléments et ses schémas et inclut un
éditeur de schémas ainsi qu'un éditeur d'élément. éditeur de schémas ainsi qu'un éditeur d'élément.
%package elements
Summary: Elements collection for QElectroTech
Summary(fr): Collection d'élements pour QElectroTech
Group: Applications/Productivity
License: CC-BY
%if 0%{?fedora} >= 11
BuildArch: noarch
%endif
%description elements
Elements collection for QElectroTech.
%description -l fr elements
Collection d'élements pour QElectroTech.
%prep %prep
#%setup -q -n %{name}-%{version} #%setup -q -n %{name}-%{version}
#%setup -q -n %{name}-svn374 #%setup -q -n %{name}-svn374
%setup -q -n %{name}-0.2rc1-src %setup -q -n %{name}-0.2b-src
sed -e s,/usr/local/,%{_prefix}/, \ sed -e s,/usr/local/,%{_prefix}/, \
-e /QET_MAN_PATH/s,'man/','share/man', \ -e /QET_MAN_PATH/s,'man/','share/man', \
@@ -75,7 +56,7 @@ make %{?_smp_mflags}
%install %install
rm -fr $RPM_BUILD_ROOT qet.lang rm -fr $RPM_BUILD_ROOT
INSTALL_ROOT=$RPM_BUILD_ROOT make install INSTALL_ROOT=$RPM_BUILD_ROOT make install
rm -rf $RPM_BUILD_ROOT/usr/doc/qelectrotech \ rm -rf $RPM_BUILD_ROOT/usr/doc/qelectrotech \
@@ -84,13 +65,6 @@ rm -rf $RPM_BUILD_ROOT/usr/doc/qelectrotech \
mv $RPM_BUILD_ROOT%{_mandir}/fr.UTF-8 $RPM_BUILD_ROOT%{_mandir}/fr mv $RPM_BUILD_ROOT%{_mandir}/fr.UTF-8 $RPM_BUILD_ROOT%{_mandir}/fr
desktop-file-install --vendor="" \
--dir=%{buildroot}%{_datadir}/applications/ \
%{buildroot}%{_datadir}/applications/%{name}.desktop
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/lang/qt_*.qm
%find_lang qet --with-qt
%clean %clean
rm -fr $RPM_BUILD_ROOT rm -fr $RPM_BUILD_ROOT
@@ -103,7 +77,6 @@ if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi fi
%postun %postun
update-desktop-database &> /dev/null || : update-desktop-database &> /dev/null || :
touch --no-create %{_datadir}/icons/hicolor touch --no-create %{_datadir}/icons/hicolor
@@ -112,34 +85,21 @@ if [ -x %{_bindir}/gtk-update-icon-cache ]; then
fi fi
%files -f qet.lang %files
%defattr(-,root,root,-) %defattr(-,root,root)
%doc CREDIT LICENSE README examples %doc CREDIT LICENSE README examples ELEMENTS.LICENSE
%{_bindir}/%{name} %{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop %{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/application/x-qet-*.xml %{_datadir}/mime/application/x-qet-*.xml
%{_datadir}/mime/packages/%{name}.xml %{_datadir}/mime/packages/%{name}.xml
%{_datadir}/mimelnk/application/x-qet-*.desktop %{_datadir}/mimelnk/application/x-qet-*.desktop
%{_datadir}/icons/hicolor/*/*/*.png %{_datadir}/icons/hicolor/*/*/*.png
%dir %{_datadir}/%{name} %{_datadir}/%{name}
%dir %{_datadir}/%{name}/lang
%exclude %{_datadir}/%{name}/examples
%{_mandir}/man1/%{name}.* %{_mandir}/man1/%{name}.*
%lang(fr) %{_mandir}/fr/man1/%{name}.* %lang(fr) %{_mandir}/fr/man1/%{name}.*
%files elements
%defattr(-,root,root,-)
%doc ELEMENTS.LICENSE
%{_datadir}/%{name}/elements
%changelog %changelog
* Sat Jun 13 2009 Remi Collet <RPMS@FamilleCollet.com> - 0.20-0.3.rc1
- update to 0.2rc1
- split elements in sub-package
- fix license, URL, lang
* Sun May 24 2009 Remi Collet <RPMS@FamilleCollet.com> - 0.20-0.2.beta * Sun May 24 2009 Remi Collet <RPMS@FamilleCollet.com> - 0.20-0.2.beta
- update to 0.2b - update to 0.2b

View File

@@ -1024,20 +1024,3 @@ DiagramContent Diagram::selectedContent() {
invalidateMovedElements(); invalidateMovedElements();
return(dc); return(dc);
} }
/**
@return true s'il est possible de tourner les elements selectionnes.
Concretement, cette methode retourne true s'il y a des elements selectionnes
et qu'au moins l'un d'entre eux peut etre pivote.
*/
bool Diagram::canRotateSelection() const {
foreach(QGraphicsItem * qgi, selectedItems()) {
if (Element *e = qgraphicsitem_cast<Element *>(qgi)) {
// l'element est-il pivotable ?
if (e -> orientation().current() != e -> orientation().next()) {
return(true);
}
}
}
return(false);
}

View File

@@ -155,7 +155,6 @@ class Diagram : public QGraphicsScene {
QSet<Conductor *> selectedConductors() const; QSet<Conductor *> selectedConductors() const;
DiagramContent content() const; DiagramContent content() const;
DiagramContent selectedContent(); DiagramContent selectedContent();
bool canRotateSelection() const;
void moveElements(const QPointF &, QGraphicsItem * = 0); void moveElements(const QPointF &, QGraphicsItem * = 0);
bool usesElement(const ElementsLocation &); bool usesElement(const ElementsLocation &);

View File

@@ -450,20 +450,17 @@ void PartLine::debugPaint(QPainter *painter) {
QRectF PartLine::boundingRect() const { QRectF PartLine::boundingRect() const {
QRectF r(QGraphicsLineItem::boundingRect()); QRectF r(QGraphicsLineItem::boundingRect());
// le rectangle ainsi obtenu ne doit pas avoir une dimension nulle // cas special : le cercle sort largement du bounding rect originel
r.adjust(0.0, 0.0, 0.1, 0.1); if (first_end == QET::Circle) {
// cas special : les embouts sortent largement du bounding rect originel
if (first_end != QET::None) {
r = r.united(firstEndCircleRect()); r = r.united(firstEndCircleRect());
} }
if (second_end != QET::None) { if (second_end == QET::Circle) {
r = r.united(secondEndCircleRect()); r = r.united(secondEndCircleRect());
} }
// la taille du bounding rect est ajustee avec une certaine marge // la taille du bounding rect est ajustee de 0.2px
qreal adjust = 1.2; qreal adjust = 0.6;
r.adjust(-adjust, -adjust, adjust, adjust); r.adjust(-adjust, -adjust, adjust, adjust);
return(r); return(r);
} }

View File

@@ -32,7 +32,6 @@ PartText::PartText(QETElementEditor *editor, QGraphicsItem *parent, ElementScene
CustomElementPart(editor) CustomElementPart(editor)
{ {
setDefaultTextColor(Qt::black); setDefaultTextColor(Qt::black);
setFont(QETApp::diagramTextsFont());
setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable); setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
setPlainText(QObject::tr("T", "default text when adding a text in the element editor")); setPlainText(QObject::tr("T", "default text when adding a text in the element editor"));
infos = new TextEditor(elementEditor(), this); infos = new TextEditor(elementEditor(), this);

View File

@@ -32,7 +32,6 @@ PartTextField::PartTextField(QETElementEditor *editor, QGraphicsItem *parent, QG
follow_parent_rotations(true) follow_parent_rotations(true)
{ {
setDefaultTextColor(Qt::black); setDefaultTextColor(Qt::black);
setFont(QETApp::diagramTextsFont());
setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable); setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
setPlainText(QObject::tr("_", "default text when adding a textfield in the element editor")); setPlainText(QObject::tr("_", "default text when adding a textfield in the element editor"));
infos = new TextFieldEditor(elementEditor(), this); infos = new TextFieldEditor(elementEditor(), this);

View File

@@ -107,11 +107,6 @@ void QETElementEditor::setupActions() {
add_arc = new QAction(QET::Icons::PartArc, tr("Ajouter un arc de cercle"), this); add_arc = new QAction(QET::Icons::PartArc, tr("Ajouter un arc de cercle"), this);
add_terminal = new QAction(QET::Icons::Terminal, tr("Ajouter une borne"), this); add_terminal = new QAction(QET::Icons::Terminal, tr("Ajouter une borne"), this);
add_textfield = new QAction(QET::Icons::PartTextField, tr("Ajouter un champ de texte"), this); add_textfield = new QAction(QET::Icons::PartTextField, tr("Ajouter un champ de texte"), this);
fullscreen = new QAction(this);
slot_updateFullScreenAction();
configure = new QAction(QET::Icons::Configure, tr("&Configurer QElectroTech"), this);
about_qet = new QAction(QET::Icons::QETLogo, tr("\300 &propos de QElectroTech"), this);
about_qt = new QAction(QET::Icons::QtLogo, tr("\300 propos de &Qt"), this);
QString add_status_tip = tr("Maintenez la touche Shift enfonc\351e pour effectuer plusieurs ajouts d'affil\351e"); QString add_status_tip = tr("Maintenez la touche Shift enfonc\351e pour effectuer plusieurs ajouts d'affil\351e");
add_line -> setStatusTip(add_status_tip); add_line -> setStatusTip(add_status_tip);
@@ -122,10 +117,7 @@ void QETElementEditor::setupActions() {
add_arc -> setStatusTip(add_status_tip); add_arc -> setStatusTip(add_status_tip);
add_terminal -> setStatusTip(add_status_tip); add_terminal -> setStatusTip(add_status_tip);
add_textfield -> setStatusTip(add_status_tip); add_textfield -> setStatusTip(add_status_tip);
add_polygon -> setStatusTip(tr("Utilisez le bouton droit de la souris pour poser le dernier point du polygone")); add_polygon -> setStatusTip(tr("Utilisez le bouton droit de la souris pour poser le dernier point du polygone"));
configure -> setStatusTip(tr("Permet de r\351gler diff\351rents param\350tres de QElectroTech", "status bar tip"));
about_qet -> setStatusTip(tr("Affiche des informations sur QElectroTech", "status bar tip"));
about_qt -> setStatusTip(tr("Affiche des informations sur la biblioth\350que Qt", "status bar tip"));
undo = ce_scene -> undoStack().createUndoAction(this, tr("Annuler")); undo = ce_scene -> undoStack().createUndoAction(this, tr("Annuler"));
redo = ce_scene -> undoStack().createRedoAction(this, tr("Refaire")); redo = ce_scene -> undoStack().createRedoAction(this, tr("Refaire"));
@@ -155,8 +147,6 @@ void QETElementEditor::setupActions() {
zoom_fit -> setShortcut(QKeySequence(tr("Ctrl+9"))); zoom_fit -> setShortcut(QKeySequence(tr("Ctrl+9")));
zoom_reset -> setShortcut(QKeySequence(tr("Ctrl+0"))); zoom_reset -> setShortcut(QKeySequence(tr("Ctrl+0")));
fullscreen -> setShortcut(QKeySequence(tr("Ctrl+Shift+F")));
edit_names -> setShortcut(QKeySequence(tr("Ctrl+E"))); edit_names -> setShortcut(QKeySequence(tr("Ctrl+E")));
edit_size_hs -> setShortcut(QKeySequence(tr("Ctrl+R"))); edit_size_hs -> setShortcut(QKeySequence(tr("Ctrl+R")));
edit_ori -> setShortcut(QKeySequence(tr("Ctrl+T"))); edit_ori -> setShortcut(QKeySequence(tr("Ctrl+T")));
@@ -166,8 +156,6 @@ void QETElementEditor::setupActions() {
edit_backward -> setShortcut(QKeySequence(tr("Ctrl+Shift+End"))); edit_backward -> setShortcut(QKeySequence(tr("Ctrl+Shift+End")));
edit_forward -> setShortcut(QKeySequence(tr("Ctrl+Shift+Home"))); edit_forward -> setShortcut(QKeySequence(tr("Ctrl+Shift+Home")));
QETApp *qet_app = QETApp::instance();
connect(new_element, SIGNAL(triggered()), this, SLOT(slot_new())); connect(new_element, SIGNAL(triggered()), this, SLOT(slot_new()));
connect(open, SIGNAL(triggered()), this, SLOT(slot_open())); connect(open, SIGNAL(triggered()), this, SLOT(slot_open()));
connect(open_file, SIGNAL(triggered()), this, SLOT(slot_openFile())); connect(open_file, SIGNAL(triggered()), this, SLOT(slot_openFile()));
@@ -190,8 +178,6 @@ void QETElementEditor::setupActions() {
connect(edit_delete, SIGNAL(triggered()), ce_scene, SLOT(slot_delete())); connect(edit_delete, SIGNAL(triggered()), ce_scene, SLOT(slot_delete()));
connect(edit_size_hs, SIGNAL(triggered()), ce_scene, SLOT(slot_editSizeHotSpot())); connect(edit_size_hs, SIGNAL(triggered()), ce_scene, SLOT(slot_editSizeHotSpot()));
connect(edit_names, SIGNAL(triggered()), ce_scene, SLOT(slot_editNames())); connect(edit_names, SIGNAL(triggered()), ce_scene, SLOT(slot_editNames()));
connect(fullscreen, SIGNAL(triggered()), this, SLOT(toggleFullScreen()));
connect(configure, SIGNAL(triggered()), qet_app, SLOT(configureQET()));
connect(edit_ori, SIGNAL(triggered()), ce_scene, SLOT(slot_editOrientations())); connect(edit_ori, SIGNAL(triggered()), ce_scene, SLOT(slot_editOrientations()));
connect(edit_forward, SIGNAL(triggered()), ce_scene, SLOT(slot_bringForward())); connect(edit_forward, SIGNAL(triggered()), ce_scene, SLOT(slot_bringForward()));
connect(edit_raise, SIGNAL(triggered()), ce_scene, SLOT(slot_raise())); connect(edit_raise, SIGNAL(triggered()), ce_scene, SLOT(slot_raise()));
@@ -219,9 +205,6 @@ void QETElementEditor::setupActions() {
connect(add_terminal, SIGNAL(triggered()), this, SLOT(slot_setNoDragToView())); connect(add_terminal, SIGNAL(triggered()), this, SLOT(slot_setNoDragToView()));
connect(add_textfield, SIGNAL(triggered()), this, SLOT(slot_setNoDragToView())); connect(add_textfield, SIGNAL(triggered()), this, SLOT(slot_setNoDragToView()));
connect(about_qet, SIGNAL(triggered()), qet_app, SLOT(aboutQET()));
connect(about_qt, SIGNAL(triggered()), qet_app, SLOT(aboutQt()));
connect(ce_scene, SIGNAL(needNormalMode()), this, SLOT(slot_setNormalMode())); connect(ce_scene, SIGNAL(needNormalMode()), this, SLOT(slot_setNormalMode()));
move -> setCheckable(true); move -> setCheckable(true);
@@ -309,18 +292,16 @@ void QETElementEditor::setupActions() {
Met en place les menus. Met en place les menus.
*/ */
void QETElementEditor::setupMenus() { void QETElementEditor::setupMenus() {
file_menu = new QMenu(tr("Fichier"), this); file_menu = new QMenu(tr("Fichier"), this);
edit_menu = new QMenu(tr("\311dition"), this); edit_menu = new QMenu(tr("\311dition"), this);
display_menu = new QMenu(tr("Affichage"), this); display_menu = new QMenu(tr("Affichage"), this);
tools_menu = new QMenu(tr("Outils"), this); tools_menu = new QMenu(tr("Outils"), this);
config_menu = new QMenu(tr("&Configuration"), this); help_menu = new QMenu(tr("Aide"), this);
help_menu = new QMenu(tr("Aide"), this);
file_menu -> setTearOffEnabled(true); file_menu -> setTearOffEnabled(true);
edit_menu -> setTearOffEnabled(true); edit_menu -> setTearOffEnabled(true);
display_menu -> setTearOffEnabled(true); display_menu -> setTearOffEnabled(true);
tools_menu -> setTearOffEnabled(true); tools_menu -> setTearOffEnabled(true);
config_menu -> setTearOffEnabled(true);
help_menu -> setTearOffEnabled(true); help_menu -> setTearOffEnabled(true);
file_menu -> addAction(new_element); file_menu -> addAction(new_element);
@@ -359,29 +340,20 @@ void QETElementEditor::setupMenus() {
edit_menu -> addAction(edit_lower); edit_menu -> addAction(edit_lower);
edit_menu -> addAction(edit_backward); edit_menu -> addAction(edit_backward);
display_menu -> addAction(zoom_in); // menu Affichage > Afficher
display_menu -> addAction(zoom_out);
display_menu -> addAction(zoom_fit);
display_menu -> addAction(zoom_reset);
// menu Configurer > Afficher
QMenu *display_toolbars = createPopupMenu(); QMenu *display_toolbars = createPopupMenu();
display_toolbars -> setTearOffEnabled(true); display_toolbars -> setTearOffEnabled(true);
display_toolbars -> setTitle(tr("Afficher")); display_toolbars -> setTitle(tr("Afficher"));
display_menu -> addMenu(display_toolbars);
config_menu -> addMenu(display_toolbars);
config_menu -> addAction(fullscreen);
config_menu -> addAction(configure);
help_menu -> addAction(about_qet);
help_menu -> addAction(about_qt);
menuBar() -> addMenu(file_menu); menuBar() -> addMenu(file_menu);
menuBar() -> addMenu(edit_menu); menuBar() -> addMenu(edit_menu);
menuBar() -> addMenu(display_menu); menuBar() -> addMenu(display_menu);
//menuBar() -> addMenu(tools_menu);
menuBar() -> addMenu(config_menu); /*
menuBar() -> addMenu(tools_menu);
menuBar() -> addMenu(help_menu); menuBar() -> addMenu(help_menu);
*/
} }
/** /**
@@ -402,23 +374,6 @@ void QETElementEditor::slot_updateMenus() {
edit_lower -> setEnabled(selected_items); edit_lower -> setEnabled(selected_items);
edit_backward -> setEnabled(selected_items); edit_backward -> setEnabled(selected_items);
save -> setEnabled(!ce_scene -> undoStack().isClean()); save -> setEnabled(!ce_scene -> undoStack().isClean());
slot_updateFullScreenAction();
}
/**
Gere l'action permettant de passer en plein ecran ou d'en sortir
*/
void QETElementEditor::slot_updateFullScreenAction() {
if (windowState() & Qt::WindowFullScreen) {
fullscreen -> setText(tr("Sortir du &mode plein \351cran"));
fullscreen -> setIcon(QET::Icons::FullScreenExit);
fullscreen -> setStatusTip(tr("Affiche QElectroTech en mode fen\352tr\351", "status bar tip"));
} else {
fullscreen -> setText(tr("Passer en &mode plein \351cran"));
fullscreen -> setIcon(QET::Icons::FullScreenEnter);
fullscreen -> setStatusTip(tr("Affiche QElectroTech en mode plein \351cran", "status bar tip"));
}
} }
/** /**
@@ -1015,19 +970,6 @@ void QETElementEditor::closeEvent(QCloseEvent *qce) {
} else qce -> ignore(); } else qce -> ignore();
} }
/**
Gere les evenements du l'editeur d'element
Reimplemente ici pour :
* mettre a jour l'action permettant d'entrer en mode plein ecran ou d'en sortir
@param e Evenement
*/
bool QETElementEditor::event(QEvent *e) {
if (e -> type() == QEvent::WindowStateChange) {
slot_updateFullScreenAction();
}
return(QMainWindow::event(e));
}
/** /**
Remplit la liste des parties Remplit la liste des parties
*/ */
@@ -1090,13 +1032,6 @@ void QETElementEditor::slot_updateSelectionFromPartsList() {
slot_updateMenus(); slot_updateMenus();
} }
/**
Fait passer la fenetre du mode plein ecran au mode normal et vice-versa
*/
void QETElementEditor::toggleFullScreen() {
setWindowState(windowState() ^ Qt::WindowFullScreen);
}
/// Lit les parametres de l'editeur d'element /// Lit les parametres de l'editeur d'element
void QETElementEditor::readSettings() { void QETElementEditor::readSettings() {
QSettings &settings = QETApp::settings(); QSettings &settings = QETApp::settings();

View File

@@ -43,7 +43,7 @@ class QETElementEditor : public QMainWindow {
/// booleen indiquant si l'editeur est en mode "lecture seule" ou non /// booleen indiquant si l'editeur est en mode "lecture seule" ou non
bool read_only; bool read_only;
/// menus /// menus
QMenu *file_menu, *edit_menu, *display_menu, *tools_menu, *config_menu, *help_menu; QMenu *file_menu, *edit_menu, *display_menu, *tools_menu, *help_menu;
/// vue sur la scene d'edition /// vue sur la scene d'edition
ElementView *ce_view; ElementView *ce_view;
/// scene d'edition /// scene d'edition
@@ -68,16 +68,9 @@ class QETElementEditor : public QMainWindow {
QAction *selectall, *deselectall, *inv_select; QAction *selectall, *deselectall, *inv_select;
QAction *cut, *copy, *paste, *paste_in_area; QAction *cut, *copy, *paste, *paste_in_area;
QAction *undo, *redo; QAction *undo, *redo;
QAction *zoom_in, *zoom_out, *zoom_fit, *zoom_reset;
QAction *edit_delete, *edit_size_hs, *edit_names, *edit_ori; QAction *edit_delete, *edit_size_hs, *edit_names, *edit_ori;
QAction *edit_raise, *edit_lower, *edit_backward, *edit_forward; QAction *edit_raise, *edit_lower, *edit_backward, *edit_forward;
/// actions du menu affichage
QAction *zoom_in, *zoom_out, *zoom_fit, *zoom_reset;
/// actions du menu configurer
QAction *fullscreen; ///< Passe en mode plein ecran ou en sort
QAction *configure; ///< Lance le dialogue de configuration de QElectroTech
/// actions du menu aide
QAction *about_qet; ///< Lance le dialogue "A propos de QElectroTech"
QAction *about_qt; ///< Lance le dialogue "A propos de Qt"
/// barres d'outils /// barres d'outils
QToolBar *parts_toolbar, *main_toolbar, *view_toolbar, *depth_toolbar, *element_toolbar; QToolBar *parts_toolbar, *main_toolbar, *view_toolbar, *depth_toolbar, *element_toolbar;
/// actions de la barre d'outils /// actions de la barre d'outils
@@ -120,7 +113,6 @@ class QETElementEditor : public QMainWindow {
protected: protected:
void closeEvent(QCloseEvent *); void closeEvent(QCloseEvent *);
virtual bool event(QEvent *);
private: private:
void setupActions(); void setupActions();
@@ -144,12 +136,10 @@ class QETElementEditor : public QMainWindow {
void slot_setNormalMode(); void slot_setNormalMode();
void slot_updateInformations(); void slot_updateInformations();
void slot_updateMenus(); void slot_updateMenus();
void slot_updateFullScreenAction();
void slot_updateTitle(); void slot_updateTitle();
void slot_createPartsList(); void slot_createPartsList();
void slot_updatePartsList(); void slot_updatePartsList();
void slot_updateSelectionFromPartsList(); void slot_updateSelectionFromPartsList();
void toggleFullScreen();
void xmlPreview(); void xmlPreview();
bool checkElement(); bool checkElement();
}; };

View File

@@ -48,7 +48,7 @@ Element::~Element() {
*/ */
void Element::paint(QPainter *painter, const QStyleOptionGraphicsItem *options, QWidget *widget) { void Element::paint(QPainter *painter, const QStyleOptionGraphicsItem *options, QWidget *widget) {
#ifndef Q_WS_WIN #ifdef Q_WS_X11
// corrige un bug de rendu ne se produisant que lors du rendu sur QGraphicsScene sous X11 au zoom par defaut // corrige un bug de rendu ne se produisant que lors du rendu sur QGraphicsScene sous X11 au zoom par defaut
static bool must_correct_rendering_bug = QETApp::settings().value("correct-rendering", false).toBool(); static bool must_correct_rendering_bug = QETApp::settings().value("correct-rendering", false).toBool();
if (must_correct_rendering_bug) { if (must_correct_rendering_bug) {

View File

@@ -27,7 +27,7 @@ namespace QET {
/// version de QElectroTech (utilisee pour estampiller les projets et elements) /// version de QElectroTech (utilisee pour estampiller les projets et elements)
const QString version = "0.2"; const QString version = "0.2";
/// version affichee de QElectroTech /// version affichee de QElectroTech
const QString displayedVersion = "0.2"; const QString displayedVersion = "0.2rc1";
QString license(); QString license();
/// Orientation (utilise pour les bornes mais aussi pour les elements) /// Orientation (utilise pour les bornes mais aussi pour les elements)
enum Orientation {North, East, South, West}; enum Orientation {North, East, South, West};

View File

@@ -16,8 +16,6 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>. along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "qetapp.h" #include "qetapp.h"
#include "aboutqet.h"
#include "configdialog.h"
#include "qetdiagrameditor.h" #include "qetdiagrameditor.h"
#include "qetelementeditor.h" #include "qetelementeditor.h"
#include "elementscollectionitem.h" #include "elementscollectionitem.h"
@@ -39,7 +37,6 @@ QMap<uint, QETProject *> QETApp::registered_projects_ = QMap<uint, QETProject *>
uint QETApp::next_project_id = 0; uint QETApp::next_project_id = 0;
RecentFiles *QETApp::projects_recent_files_ = 0; RecentFiles *QETApp::projects_recent_files_ = 0;
RecentFiles *QETApp::elements_recent_files_ = 0; RecentFiles *QETApp::elements_recent_files_ = 0;
AboutQET *QETApp::about_dialog_ = 0;
/** /**
Constructeur Constructeur
@@ -102,9 +99,6 @@ QETApp::~QETApp() {
projects_recent_files_ -> save(); projects_recent_files_ -> save();
delete elements_recent_files_; delete elements_recent_files_;
delete projects_recent_files_; delete projects_recent_files_;
if (about_dialog_) {
delete about_dialog_;
}
delete qsti; delete qsti;
delete custom_collection; delete custom_collection;
delete common_collection; delete common_collection;
@@ -733,61 +727,6 @@ void QETApp::openElementFiles(const QStringList &files_list) {
} }
} }
/**
Permet a l'utilisateur de configurer QET en lancant un dialogue approprie.
@see ConfigDialog
*/
void QETApp::configureQET() {
// determine le widget parent a utiliser pour le dialogue
#ifdef Q_WS_MAC
QWidget *parent_widget = 0;
#else
QWidget *parent_widget = activeWindow();
#endif
// cree le dialogue
ConfigDialog cd;
// associe le dialogue a un eventuel widget parent
if (parent_widget) {
cd.setParent(parent_widget, cd.windowFlags());
}
// affiche le dialogue puis evite de le lier a un quelconque widget parent
cd.exec();
cd.setParent(0, cd.windowFlags());
}
/**
Dialogue "A propos de QElectroTech"
Le dialogue en question est cree lors du premier appel de cette fonction.
En consequence, sa premiere apparition n'est pas immediate. Par la suite,
le dialogue n'a pas a etre recree et il apparait instantanement. Il est
detruit en meme temps que l'application.
*/
void QETApp::aboutQET() {
// determine le widget parent a utiliser pour le dialogue
#ifdef Q_WS_MAC
QWidget *parent_widget = 0;
#else
QWidget *parent_widget = activeWindow();
#endif
// cree le dialogue si cela n'a pas deja ete fait
if (!about_dialog_) {
about_dialog_ = new AboutQET();
}
// associe le dialogue a un eventuel widget parent
if (parent_widget) {
about_dialog_ -> setParent(parent_widget, about_dialog_ -> windowFlags());
}
// affiche le dialogue puis evite de le lier a un quelconque widget parent
about_dialog_ -> exec();
about_dialog_ -> setParent(0, about_dialog_ -> windowFlags());
}
/** /**
@param window fenetre dont il faut trouver les barres d'outils et dock flottants @param window fenetre dont il faut trouver les barres d'outils et dock flottants
@return les barres d'outils et dock flottants de la fenetre @return les barres d'outils et dock flottants de la fenetre

View File

@@ -22,7 +22,6 @@
#include <QtGui> #include <QtGui>
#include "elementslocation.h" #include "elementslocation.h"
#include "qetarguments.h" #include "qetarguments.h"
class AboutQET;
class QETDiagramEditor; class QETDiagramEditor;
class QETElementEditor; class QETElementEditor;
class ElementsCollection; class ElementsCollection;
@@ -137,7 +136,6 @@ class QETApp : public QETSingleApplication {
static uint next_project_id; static uint next_project_id;
static RecentFiles *projects_recent_files_; static RecentFiles *projects_recent_files_;
static RecentFiles *elements_recent_files_; static RecentFiles *elements_recent_files_;
static AboutQET *about_dialog_;
public slots: public slots:
void systray(QSystemTrayIcon::ActivationReason); void systray(QSystemTrayIcon::ActivationReason);
@@ -159,8 +157,6 @@ class QETApp : public QETSingleApplication {
void openFiles(const QETArguments &); void openFiles(const QETArguments &);
void openProjectFiles(const QStringList &); void openProjectFiles(const QStringList &);
void openElementFiles(const QStringList &); void openElementFiles(const QStringList &);
void configureQET();
void aboutQET();
// methodes privees // methodes privees
private slots: private slots:

View File

@@ -20,7 +20,9 @@
#include "diagramview.h" #include "diagramview.h"
#include "diagram.h" #include "diagram.h"
#include "elementspanelwidget.h" #include "elementspanelwidget.h"
#include "aboutqet.h"
#include "conductorpropertieswidget.h" #include "conductorpropertieswidget.h"
#include "configdialog.h"
#include "qetproject.h" #include "qetproject.h"
#include "projectview.h" #include "projectview.h"
#include "recentfiles.h" #include "recentfiles.h"
@@ -166,6 +168,18 @@ void QETDiagramEditor::toggleFullScreen() {
setWindowState(windowState() ^ Qt::WindowFullScreen); setWindowState(windowState() ^ Qt::WindowFullScreen);
} }
/**
Dialogue "A propos de QElectroTech"
Le dialogue en question est cree lors du premier appel de cette fonction.
En consequence, sa premiere apparition n'est pas immediate. Par la suite,
le dialogue n'a pas a etre recree et il apparait instantanement. Il est
detruit en meme temps que son parent (ici, le QETDiagramEditor).
*/
void QETDiagramEditor::aboutQET() {
static AboutQET *apqet = new AboutQET(this);
apqet -> exec();
}
/** /**
Mise en place des actions Mise en place des actions
*/ */
@@ -339,8 +353,6 @@ void QETDiagramEditor::actions() {
grp_view_mode -> addAction(tabbed_view_mode); grp_view_mode -> addAction(tabbed_view_mode);
grp_view_mode -> setExclusive(true); grp_view_mode -> setExclusive(true);
QETApp *qet_app = QETApp::instance();
// connexion a des slots // connexion a des slots
connect(quit_editor, SIGNAL(triggered()), this, SLOT(close()) ); connect(quit_editor, SIGNAL(triggered()), this, SLOT(close()) );
connect(select_all, SIGNAL(triggered()), this, SLOT(slot_selectAll()) ); connect(select_all, SIGNAL(triggered()), this, SLOT(slot_selectAll()) );
@@ -349,13 +361,13 @@ void QETDiagramEditor::actions() {
connect(delete_selection, SIGNAL(triggered()), this, SLOT(slot_delete()) ); connect(delete_selection, SIGNAL(triggered()), this, SLOT(slot_delete()) );
connect(rotate_selection, SIGNAL(triggered()), this, SLOT(slot_rotate()) ); connect(rotate_selection, SIGNAL(triggered()), this, SLOT(slot_rotate()) );
connect(fullscreen, SIGNAL(triggered()), this, SLOT(toggleFullScreen()) ); connect(fullscreen, SIGNAL(triggered()), this, SLOT(toggleFullScreen()) );
connect(configure, SIGNAL(triggered()), qet_app, SLOT(configureQET()) ); connect(configure, SIGNAL(triggered()), this, SLOT(configureQET()) );
connect(windowed_view_mode, SIGNAL(triggered()), this, SLOT(setWindowedMode()) ); connect(windowed_view_mode, SIGNAL(triggered()), this, SLOT(setWindowedMode()) );
connect(tabbed_view_mode, SIGNAL(triggered()), this, SLOT(setTabbedMode()) ); connect(tabbed_view_mode, SIGNAL(triggered()), this, SLOT(setTabbedMode()) );
connect(mode_selection, SIGNAL(triggered()), this, SLOT(slot_setSelectionMode()) ); connect(mode_selection, SIGNAL(triggered()), this, SLOT(slot_setSelectionMode()) );
connect(mode_visualise, SIGNAL(triggered()), this, SLOT(slot_setVisualisationMode()) ); connect(mode_visualise, SIGNAL(triggered()), this, SLOT(slot_setVisualisationMode()) );
connect(about_qet, SIGNAL(triggered()), qet_app, SLOT(aboutQET()) ); connect(about_qet, SIGNAL(triggered()), this, SLOT(aboutQET()) );
connect(about_qt, SIGNAL(triggered()), qet_app, SLOT(aboutQt()) ); connect(about_qt, SIGNAL(triggered()), qApp, SLOT(aboutQt()) );
connect(prj_edit_prop, SIGNAL(triggered()), this, SLOT(editCurrentProjectProperties())); connect(prj_edit_prop, SIGNAL(triggered()), this, SLOT(editCurrentProjectProperties()));
connect(prj_add_diagram, SIGNAL(triggered()), this, SLOT(addDiagramToProject()) ); connect(prj_add_diagram, SIGNAL(triggered()), this, SLOT(addDiagramToProject()) );
connect(prj_del_diagram, SIGNAL(triggered()), this, SLOT(removeDiagramFromProject()) ); connect(prj_del_diagram, SIGNAL(triggered()), this, SLOT(removeDiagramFromProject()) );
@@ -1135,7 +1147,7 @@ void QETDiagramEditor::slot_updateComplexActions() {
cut -> setEnabled(editable_diagram && selected_elements); cut -> setEnabled(editable_diagram && selected_elements);
copy -> setEnabled(selected_elements); copy -> setEnabled(selected_elements);
delete_selection -> setEnabled(editable_diagram && selected_elements); delete_selection -> setEnabled(editable_diagram && selected_elements);
rotate_selection -> setEnabled(editable_diagram && selected_elements && dv -> diagram() -> canRotateSelection()); rotate_selection -> setEnabled(editable_diagram && selected_elements);
selection_prop -> setEnabled(editable_diagram && selected_elements); selection_prop -> setEnabled(editable_diagram && selected_elements);
} }
@@ -1700,6 +1712,15 @@ void QETDiagramEditor::findElementInPanel(const ElementsLocation &location) {
} }
} }
/**
Permet a l'utilisateur de configurer QET en lancant un dialogue approprie.
@see ConfigDialog
*/
void QETDiagramEditor::configureQET() {
ConfigDialog cd(this);
cd.exec();
}
/** /**
@return Les proprietes par defaut pour le cartouche d'un schema @return Les proprietes par defaut pour le cartouche d'un schema
*/ */

View File

@@ -78,6 +78,8 @@ class QETDiagramEditor : public QMainWindow {
public slots: public slots:
void toggleFullScreen(); void toggleFullScreen();
void configureQET();
void aboutQET();
void printDialog(); void printDialog();
void exportDialog(); void exportDialog();
bool saveAsDialog(); bool saveAsDialog();

View File

@@ -187,7 +187,7 @@ void Terminal::paint(QPainter *p, const QStyleOptionGraphicsItem *options, QWidg
p -> save(); p -> save();
#ifndef Q_WS_WIN #ifdef Q_WS_X11
// corrige un bug de rendu ne se produisant que lors du rendu sur QGraphicsScene sous X11 au zoom par defaut // corrige un bug de rendu ne se produisant que lors du rendu sur QGraphicsScene sous X11 au zoom par defaut
static bool must_correct_rendering_bug = QETApp::settings().value("correct-rendering", false).toBool(); static bool must_correct_rendering_bug = QETApp::settings().value("correct-rendering", false).toBool();
if (must_correct_rendering_bug) { if (must_correct_rendering_bug) {