Traduction des attributs et noms des tags XML utilises pour les descriptions des elements

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@59 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-02-18 00:06:36 +00:00
parent bc79ea04b8
commit c1f9d430b6
22 changed files with 204 additions and 201 deletions

View File

@@ -184,12 +184,12 @@ void CustomElement::paint(QPainter *qp, const QStyleOptionGraphicsItem *) {
@return true si l'analyse reussit, false sinon @return true si l'analyse reussit, false sinon
*/ */
bool CustomElement::parseElement(QDomElement &e, QPainter &qp, Diagram *s) { bool CustomElement::parseElement(QDomElement &e, QPainter &qp, Diagram *s) {
if (e.tagName() == "borne") return(parseTerminal(e, s)); if (e.tagName() == "terminal") return(parseTerminal(e, s));
else if (e.tagName() == "ligne") return(parseLigne(e, qp)); else if (e.tagName() == "line") return(parseLigne(e, qp));
else if (e.tagName() == "ellipse") return(parseEllipse(e, qp)); else if (e.tagName() == "ellipse") return(parseEllipse(e, qp));
else if (e.tagName() == "cercle") return(parseCercle(e, qp)); else if (e.tagName() == "circle") return(parseCercle(e, qp));
else if (e.tagName() == "arc") return(parseArc(e, qp)); else if (e.tagName() == "arc") return(parseArc(e, qp));
else if (e.tagName() == "polygone") return(parsePolygone(e, qp)); else if (e.tagName() == "polygon") return(parsePolygone(e, qp));
else return(true); // on n'est pas chiant, on ignore l'element inconnu else return(true); // on n'est pas chiant, on ignore l'element inconnu
} }
@@ -224,7 +224,7 @@ bool CustomElement::parseLigne(QDomElement &e, QPainter &qp) {
Le cercle est defini par les attributs suivants : Le cercle est defini par les attributs suivants :
- x : abscisse du coin superieur gauche de la quadrature du cercle - x : abscisse du coin superieur gauche de la quadrature du cercle
- y : ordonnee du coin superieur gauche de la quadrature du cercle - y : ordonnee du coin superieur gauche de la quadrature du cercle
- rayon : diametre du cercle - diameter : diametre du cercle
@param e L'element XML a analyser @param e L'element XML a analyser
@param qp Le QPainter a utiliser pour dessiner l'element perso @param qp Le QPainter a utiliser pour dessiner l'element perso
@@ -234,9 +234,9 @@ bool CustomElement::parseLigne(QDomElement &e, QPainter &qp) {
bool CustomElement::parseCercle(QDomElement &e, QPainter &qp) { bool CustomElement::parseCercle(QDomElement &e, QPainter &qp) {
// verifie la presence des attributs obligatoires // verifie la presence des attributs obligatoires
double cercle_x, cercle_y, cercle_r; double cercle_x, cercle_y, cercle_r;
if (!attributeIsAReal(e, QString("x"), &cercle_x)) return(false); if (!attributeIsAReal(e, QString("x"), &cercle_x)) return(false);
if (!attributeIsAReal(e, QString("y"), &cercle_y)) return(false); if (!attributeIsAReal(e, QString("y"), &cercle_y)) return(false);
if (!attributeIsAReal(e, QString("rayon"), &cercle_r)) return(false); if (!attributeIsAReal(e, QString("diameter"), &cercle_r)) return(false);
qp.save(); qp.save();
setPainterStyle(e, qp); setPainterStyle(e, qp);
qp.drawEllipse(QRectF(cercle_x, cercle_y, cercle_r, cercle_r)); qp.drawEllipse(QRectF(cercle_x, cercle_y, cercle_r, cercle_r));
@@ -250,8 +250,8 @@ bool CustomElement::parseCercle(QDomElement &e, QPainter &qp) {
L'ellipse est definie par les attributs suivants : L'ellipse est definie par les attributs suivants :
- x : abscisse du coin superieur gauche du rectangle dans lequel s'inscrit l'ellipse - x : abscisse du coin superieur gauche du rectangle dans lequel s'inscrit l'ellipse
- y : ordonnee du coin superieur gauche du rectangle dans lequel s'inscrit l'ellipse - y : ordonnee du coin superieur gauche du rectangle dans lequel s'inscrit l'ellipse
- largeur : dimension de la diagonale horizontale de l'ellipse - width : dimension de la diagonale horizontale de l'ellipse
- hauteur : dimension de la diagonale verticale de l'ellipse - height : dimension de la diagonale verticale de l'ellipse
@param e L'element XML a analyser @param e L'element XML a analyser
@param qp Le QPainter a utiliser pour dessiner l'element perso @param qp Le QPainter a utiliser pour dessiner l'element perso
@@ -263,8 +263,8 @@ bool CustomElement::parseEllipse(QDomElement &e, QPainter &qp) {
double ellipse_x, ellipse_y, ellipse_l, ellipse_h; double ellipse_x, ellipse_y, ellipse_l, ellipse_h;
if (!attributeIsAReal(e, QString("x"), &ellipse_x)) return(false); if (!attributeIsAReal(e, QString("x"), &ellipse_x)) return(false);
if (!attributeIsAReal(e, QString("y"), &ellipse_y)) return(false); if (!attributeIsAReal(e, QString("y"), &ellipse_y)) return(false);
if (!attributeIsAReal(e, QString("largeur"), &ellipse_l)) return(false); if (!attributeIsAReal(e, QString("width"), &ellipse_l)) return(false);
if (!attributeIsAReal(e, QString("hauteur"), &ellipse_h)) return(false); if (!attributeIsAReal(e, QString("height"), &ellipse_h)) return(false);
qp.save(); qp.save();
setPainterStyle(e, qp); setPainterStyle(e, qp);
qp.drawEllipse(QRectF(ellipse_x, ellipse_y, ellipse_l, ellipse_h)); qp.drawEllipse(QRectF(ellipse_x, ellipse_y, ellipse_l, ellipse_h));
@@ -291,8 +291,8 @@ bool CustomElement::parseArc(QDomElement &e, QPainter &qp) {
double arc_x, arc_y, arc_l, arc_h, arc_s, arc_a; double arc_x, arc_y, arc_l, arc_h, arc_s, arc_a;
if (!attributeIsAReal(e, QString("x"), &arc_x)) return(false); if (!attributeIsAReal(e, QString("x"), &arc_x)) return(false);
if (!attributeIsAReal(e, QString("y"), &arc_y)) return(false); if (!attributeIsAReal(e, QString("y"), &arc_y)) return(false);
if (!attributeIsAReal(e, QString("largeur"), &arc_l)) return(false); if (!attributeIsAReal(e, QString("width"), &arc_l)) return(false);
if (!attributeIsAReal(e, QString("hauteur"), &arc_h)) return(false); if (!attributeIsAReal(e, QString("height"), &arc_h)) return(false);
if (!attributeIsAReal(e, QString("start"), &arc_s)) return(false); if (!attributeIsAReal(e, QString("start"), &arc_s)) return(false);
if (!attributeIsAReal(e, QString("angle"), &arc_a)) return(false); if (!attributeIsAReal(e, QString("angle"), &arc_a)) return(false);
@@ -504,6 +504,7 @@ void CustomElement::setPainterStyle(QDomElement &e, QPainter &qp) {
} else if (style_name == "line-weight") { } else if (style_name == "line-weight") {
if (style_value == "thin") pen.setWidth(0); if (style_value == "thin") pen.setWidth(0);
else if (style_value == "normal") pen.setWidthF(1.0); else if (style_value == "normal") pen.setWidthF(1.0);
else if (style_value == "none") pen.setColor(QColor(0, 0, 0, 0));
} else if (style_name == "filling") { } else if (style_name == "filling") {
if (style_value == "white") { if (style_value == "white") {
brush.setStyle(Qt::SolidPattern); brush.setStyle(Qt::SolidPattern);

View File

@@ -6,13 +6,13 @@
</names> </names>
<description> <description>
<!--Bobine--> <!--Bobine-->
<polygone x1="-20" y1="-20" x2="-20" y2="20" x3="40" y3="20" x4="40" y4="-20" style="filling:white;" /> <polygon x1="-20" y1="-20" x2="-20" y2="20" x3="40" y3="20" x4="40" y4="-20" style="filling:white;" />
<!--Fils--> <!--Fils-->
<ligne x1="0" y1="-20" x2="0" y2="-40" antialias="false" /> <line x1="0" y1="-20" x2="0" y2="-40" antialias="false" />
<ligne x1="0" y1="20" x2="0" y2="40" antialias="false" /> <line x1="0" y1="20" x2="0" y2="40" antialias="false" />
<!--Borne A2--> <!--Borne A2-->
<borne orientation="s" x="0" y="40" /> <terminal orientation="s" x="0" y="40" />
<!--Borne A1--> <!--Borne A1-->
<borne orientation="n" x="0" y="-40" /> <terminal orientation="n" x="0" y="-40" />
</description> </description>
</definition> </definition>

View File

@@ -6,16 +6,16 @@
</names> </names>
<description> <description>
<!--Contact--> <!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" /> <line x1="-10" y1="20" x2="0" y2="40" antialias="true" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" /> <line x1="0" y1="0" x2="0" y2="20" antialias="false" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" /> <line x1="0" y1="40" x2="0" y2="60" antialias="false" />
<!--Poussoir--> <!--Poussoir-->
<ligne x1="-20" y1="20" x2="-20" y2="40" antialias="false" style="line-style:dashed;" /> <line x1="-20" y1="20" x2="-20" y2="40" antialias="false" style="line-style:dashed;" />
<ligne x1="-20" y1="20" x2="-15" y2="20" antialias="false" style="line-style:dashed;" /> <line x1="-20" y1="20" x2="-15" y2="20" antialias="false" style="line-style:dashed;" />
<ligne x1="-20" y1="40" x2="-15" y2="40" antialias="false" style="line-style:dashed;" /> <line x1="-20" y1="40" x2="-15" y2="40" antialias="false" style="line-style:dashed;" />
<ligne x1="-20" y1="30" x2="-5" y2="30" antialias="false" style="line-style:dashed;" /> <line x1="-20" y1="30" x2="-5" y2="30" antialias="false" style="line-style:dashed;" />
<!--Bornes--> <!--Bornes-->
<borne orientation="n" x="0" y="0" /> <terminal orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" /> <terminal orientation="s" x="0" y="60" />
</description> </description>
</definition> </definition>

View File

@@ -6,17 +6,17 @@
</names> </names>
<description> <description>
<!--Contact--> <!--Contact-->
<ligne x1="10" y1="20" x2="0" y2="40" antialias="true" /> <line x1="10" y1="20" x2="0" y2="40" antialias="true" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" /> <line x1="0" y1="0" x2="0" y2="20" antialias="false" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" /> <line x1="0" y1="40" x2="0" y2="60" antialias="false" />
<ligne x1="15" y1="20" x2="0" y2="20" antialias="false" /> <line x1="15" y1="20" x2="0" y2="20" antialias="false" />
<!--Poussoir--> <!--Poussoir-->
<ligne x1="-20" y1="20" x2="-20" y2="40" antialias="false" style="line-style:dashed;" /> <line x1="-20" y1="20" x2="-20" y2="40" antialias="false" style="line-style:dashed;" />
<ligne x1="-20" y1="20" x2="-15" y2="20" antialias="false" style="line-style:dashed;" /> <line x1="-20" y1="20" x2="-15" y2="20" antialias="false" style="line-style:dashed;" />
<ligne x1="-20" y1="40" x2="-15" y2="40" antialias="false" style="line-style:dashed;" /> <line x1="-20" y1="40" x2="-15" y2="40" antialias="false" style="line-style:dashed;" />
<ligne x1="-20" y1="30" x2="5" y2="30" antialias="false" style="line-style:dashed;" /> <line x1="-20" y1="30" x2="5" y2="30" antialias="false" style="line-style:dashed;" />
<!--Bornes--> <!--Bornes-->
<borne orientation="n" x="0" y="0" /> <terminal orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" /> <terminal orientation="s" x="0" y="60" />
</description> </description>
</definition> </definition>

View File

@@ -6,14 +6,14 @@
</names> </names>
<description> <description>
<!--Contact--> <!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" /> <line x1="-10" y1="20" x2="0" y2="40" antialias="true" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" /> <line x1="0" y1="0" x2="0" y2="20" antialias="false" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" /> <line x1="0" y1="40" x2="0" y2="60" antialias="false" />
<!--Partie Capteur--> <!--Partie Capteur-->
<ligne x1="-7.5" y1="25" x2="-7.5" y2="35" antialias="false" /> <line x1="-7.5" y1="25" x2="-7.5" y2="35" antialias="false" />
<ligne x1="-7.5" y1="35" x2="-2.5" y2="35" antialias="false" /> <line x1="-7.5" y1="35" x2="-2.5" y2="35" antialias="false" />
<!--Bornes--> <!--Bornes-->
<borne orientation="n" x="0" y="0" /> <terminal orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" /> <terminal orientation="s" x="0" y="60" />
</description> </description>
</definition> </definition>

View File

@@ -6,15 +6,15 @@
</names> </names>
<description> <description>
<!--Contact--> <!--Contact-->
<ligne x1="10" y1="20" x2="0" y2="40" antialias="true" /> <line x1="10" y1="20" x2="0" y2="40" antialias="true" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" /> <line x1="0" y1="0" x2="0" y2="20" antialias="false" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" /> <line x1="0" y1="40" x2="0" y2="60" antialias="false" />
<ligne x1="15" y1="20" x2="0" y2="20" antialias="false" /> <line x1="15" y1="20" x2="0" y2="20" antialias="false" />
<!--Modification Capteur--> <!--Modification Capteur-->
<ligne x1="2.5" y1="25" x2="2.5" y2="35" antialias="false" /> <line x1="2.5" y1="25" x2="2.5" y2="35" antialias="false" />
<ligne x1="7.5" y1="25" x2="2.5" y2="25" antialias="false" /> <line x1="7.5" y1="25" x2="2.5" y2="25" antialias="false" />
<!--Bornes--> <!--Bornes-->
<borne orientation="n" x="0" y="0" /> <terminal orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" /> <terminal orientation="s" x="0" y="60" />
</description> </description>
</definition> </definition>

View File

@@ -6,11 +6,11 @@
</names> </names>
<description> <description>
<!--Contact--> <!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" /> <line x1="-10" y1="20" x2="0" y2="40" antialias="true" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" /> <line x1="0" y1="0" x2="0" y2="20" antialias="false" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" /> <line x1="0" y1="40" x2="0" y2="60" antialias="false" />
<!--Bornes--> <!--Bornes-->
<borne orientation="n" x="0" y="0" /> <terminal orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" /> <terminal orientation="s" x="0" y="60" />
</description> </description>
</definition> </definition>

View File

@@ -6,12 +6,12 @@
</names> </names>
<description> <description>
<!--Contact--> <!--Contact-->
<ligne x1="10" y1="20" x2="0" y2="40" antialias="true" /> <line x1="10" y1="20" x2="0" y2="40" antialias="true" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" /> <line x1="0" y1="0" x2="0" y2="20" antialias="false" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" /> <line x1="0" y1="40" x2="0" y2="60" antialias="false" />
<ligne x1="15" y1="20" x2="0" y2="20" antialias="false" /> <line x1="15" y1="20" x2="0" y2="20" antialias="false" />
<!--Bornes--> <!--Bornes-->
<borne orientation="n" x="0" y="0" /> <terminal orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" /> <terminal orientation="s" x="0" y="60" />
</description> </description>
</definition> </definition>

View File

@@ -6,14 +6,14 @@
</names> </names>
<description> <description>
<!--Contact--> <!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" /> <line x1="-10" y1="20" x2="0" y2="40" antialias="true" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" /> <line x1="0" y1="0" x2="0" y2="20" antialias="false" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" /> <line x1="0" y1="40" x2="0" y2="60" antialias="false" />
<!--Partie Disjoncteur--> <!--Partie Disjoncteur-->
<ligne x1="-5" y1="19" x2="5" y2="9" antialias="true" /> <line x1="-5" y1="19" x2="5" y2="9" antialias="true" />
<ligne x1="5" y1="19" x2="-5" y2="9" antialias="true" /> <line x1="5" y1="19" x2="-5" y2="9" antialias="true" />
<!--Bornes--> <!--Bornes-->
<borne orientation="n" x="0" y="0" /> <terminal orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" /> <terminal orientation="s" x="0" y="60" />
</description> </description>
</definition> </definition>

View File

@@ -6,16 +6,16 @@
</names> </names>
<description> <description>
<!--Contact--> <!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" /> <line x1="-10" y1="20" x2="0" y2="40" antialias="true" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" /> <line x1="0" y1="0" x2="0" y2="20" antialias="false" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" /> <line x1="0" y1="40" x2="0" y2="60" antialias="false" />
<!--Partie Disjoncteur--> <!--Partie Disjoncteur-->
<ligne x1="-5" y1="19" x2="5" y2="9" antialias="true" /> <line x1="-5" y1="19" x2="5" y2="9" antialias="true" />
<ligne x1="5" y1="19" x2="-5" y2="9" antialias="true" /> <line x1="5" y1="19" x2="-5" y2="9" antialias="true" />
<!--Partie sectioneur--> <!--Partie sectioneur-->
<ligne x1="-5" y1="20" x2="5" y2="20" antialias="false" /> <line x1="-5" y1="20" x2="5" y2="20" antialias="false" />
<!--Bornes--> <!--Bornes-->
<borne orientation="n" x="0" y="0" /> <terminal orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" /> <terminal orientation="s" x="0" y="60" />
</description> </description>
</definition> </definition>

View File

@@ -6,13 +6,13 @@
</names> </names>
<description> <description>
<!--Contact--> <!--Contact-->
<ligne x1="-10" y1="20" x2="0" y2="40" antialias="true" /> <line x1="-10" y1="20" x2="0" y2="40" antialias="true" />
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" /> <line x1="0" y1="0" x2="0" y2="20" antialias="false" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" /> <line x1="0" y1="40" x2="0" y2="60" antialias="false" />
<!--Partie Sectionneur--> <!--Partie Sectionneur-->
<ligne x1="-5" y1="20" x2="5" y2="20" antialias="false" /> <line x1="-5" y1="20" x2="5" y2="20" antialias="false" />
<!--Bornes--> <!--Bornes-->
<borne orientation="n" x="0" y="0" /> <terminal orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" /> <terminal orientation="s" x="0" y="60" />
</description> </description>
</definition> </definition>

View File

@@ -6,14 +6,14 @@
</names> </names>
<description> <description>
<!--Lampe--> <!--Lampe-->
<cercle x="-10" y="20" rayon="20" antialias="true" style="filling:white;" /> <circle x="-10" y="20" diameter="20" antialias="true" style="filling:white;" />
<ligne x1="-7" y1="23" x2="7" y2="37" antialias="true" /> <line x1="-7" y1="23" x2="7" y2="37" antialias="true" />
<ligne x1="7" y1="23" x2="-7" y2="37" antialias="true" /> <line x1="7" y1="23" x2="-7" y2="37" antialias="true" />
<!--Fils--> <!--Fils-->
<ligne x1="0" y1="0" x2="0" y2="20" antialias="false" /> <line x1="0" y1="0" x2="0" y2="20" antialias="false" />
<ligne x1="0" y1="40" x2="0" y2="60" antialias="false" /> <line x1="0" y1="40" x2="0" y2="60" antialias="false" />
<!--Bornes--> <!--Bornes-->
<borne orientation="n" x="0" y="0" /> <terminal orientation="n" x="0" y="0" />
<borne orientation="s" x="0" y="60" /> <terminal orientation="s" x="0" y="60" />
</description> </description>
</definition> </definition>

View File

@@ -5,8 +5,8 @@
<name lang="en">Input</name> <name lang="en">Input</name>
</names> </names>
<description> <description>
<polygone x1="-7.5" y1="-13" x2="7.5" y2="-13" x3="0" y3="0" antialias="true" style="filling:white;" /> <polygon x1="-7.5" y1="-13" x2="7.5" y2="-13" x3="0" y3="0" antialias="true" style="filling:white;" />
<ligne x1="0" y1="0" x2="0" y2="13" antialias="false" /> <line x1="0" y1="0" x2="0" y2="13" antialias="false" />
<borne orientation="s" x="0" y="15" /> <terminal orientation="s" x="0" y="15" />
</description> </description>
</definition> </definition>

View File

@@ -6,26 +6,26 @@
</names> </names>
<description> <description>
<!--Rotor--> <!--Rotor-->
<cercle x="-20" y="-20" rayon="40" antialias="true" style="filling:white;"/> <circle x="-20" y="-20" diameter="40" antialias="true" style="filling:white;"/>
<!--Balait inférieur--> <!--Balait inférieur-->
<ligne x1="-14" y1="-25" x2="-14" y2="-14" antialias="false" /> <line x1="-14" y1="-25" x2="-14" y2="-14" antialias="false" />
<ligne x1="14" y1="-25" x2="14" y2="-14" antialias="false" /> <line x1="14" y1="-25" x2="14" y2="-14" antialias="false" />
<ligne x1="14" y1="-25" x2="-14" y2="-25" antialias="false" /> <line x1="14" y1="-25" x2="-14" y2="-25" antialias="false" />
<!--Fil inférieur--> <!--Fil inférieur-->
<ligne x1="0" y1="-40" x2="0" y2="-25" antialias="false" /> <line x1="0" y1="-40" x2="0" y2="-25" antialias="false" />
<!--Balait supérieur--> <!--Balait supérieur-->
<ligne x1="-14" y1="25" x2="-14" y2="14" antialias="false" /> <line x1="-14" y1="25" x2="-14" y2="14" antialias="false" />
<ligne x1="14" y1="25" x2="14" y2="14" antialias="false" /> <line x1="14" y1="25" x2="14" y2="14" antialias="false" />
<ligne x1="14" y1="25" x2="-14" y2="25" antialias="false" /> <line x1="14" y1="25" x2="-14" y2="25" antialias="false" />
<!--Fil superieur--> <!--Fil superieur-->
<ligne x1="0" y1="40" x2="0" y2="25" antialias="false" /> <line x1="0" y1="40" x2="0" y2="25" antialias="false" />
<!--Lettre M--> <!--Lettre M-->
<ligne x1="-10" y1="-10" x2="-10" y2="10" antialias="false" /> <line x1="-10" y1="-10" x2="-10" y2="10" antialias="false" />
<ligne x1="-10" y1="-10" x2="0" y2="0" antialias="true" /> <line x1="-10" y1="-10" x2="0" y2="0" antialias="true" />
<ligne x1="0" y1="0" x2="10" y2="-10" antialias="true" /> <line x1="0" y1="0" x2="10" y2="-10" antialias="true" />
<ligne x1="10" y1="-10" x2="10" y2="10" antialias="false" /> <line x1="10" y1="-10" x2="10" y2="10" antialias="false" />
<!--Bornes--> <!--Bornes-->
<borne orientation="n" x="0" y="-40" /> <terminal orientation="n" x="0" y="-40" />
<borne orientation="s" x="0" y="40" /> <terminal orientation="s" x="0" y="40" />
</description> </description>
</definition> </definition>

View File

@@ -5,23 +5,23 @@
<name lang="en">Three-phase induction motor</name> <name lang="en">Three-phase induction motor</name>
</names> </names>
<description> <description>
<cercle x="-20" y="-20" rayon="40" antialias="true" style="filling:white;"/> <circle x="-20" y="-20" diameter="40" antialias="true" style="filling:white;"/>
<!--U--> <!--U-->
<ligne x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" /> <line x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" />
<ligne x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" /> <line x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" />
<!--V--> <!--V-->
<ligne x1="0" y1="-40" x2="0" y2="-20" antialias="false" /> <line x1="0" y1="-40" x2="0" y2="-20" antialias="false" />
<!--W--> <!--W-->
<ligne x1="20" y1="-40" x2="20" y2="-20" antialias="false" /> <line x1="20" y1="-40" x2="20" y2="-20" antialias="false" />
<ligne x1="20" y1="-20" x2="14" y2="-14" antialias="true" /> <line x1="20" y1="-20" x2="14" y2="-14" antialias="true" />
<!--Lettre M--> <!--Lettre M-->
<ligne x1="-10" y1="-10" x2="-10" y2="10" antialias="false" /> <line x1="-10" y1="-10" x2="-10" y2="10" antialias="false" />
<ligne x1="-10" y1="-10" x2="0" y2="0" antialias="true" /> <line x1="-10" y1="-10" x2="0" y2="0" antialias="true" />
<ligne x1="0" y1="0" x2="10" y2="-10" antialias="true" /> <line x1="0" y1="0" x2="10" y2="-10" antialias="true" />
<ligne x1="10" y1="-10" x2="10" y2="10" antialias="false" /> <line x1="10" y1="-10" x2="10" y2="10" antialias="false" />
<!--Bornes--> <!--Bornes-->
<borne orientation="n" x="-20" y="-40" /> <terminal orientation="n" x="-20" y="-40" />
<borne orientation="n" x="0" y="-40" /> <terminal orientation="n" x="0" y="-40" />
<borne orientation="n" x="20" y="-40" /> <terminal orientation="n" x="20" y="-40" />
</description> </description>
</definition> </definition>

View File

@@ -5,35 +5,35 @@
<name lang="en">Three-phase induction motor (not coupled)</name> <name lang="en">Three-phase induction motor (not coupled)</name>
</names> </names>
<description> <description>
<cercle x="-20" y="-20" rayon="40" antialias="true" style="filling:white;"/> <circle x="-20" y="-20" diameter="40" antialias="true" style="filling:white;"/>
<!--U1--> <!--U1-->
<ligne x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" /> <line x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" />
<ligne x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" /> <line x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" />
<!--V1--> <!--V1-->
<ligne x1="0" y1="-40" x2="0" y2="-20" antialias="false" /> <line x1="0" y1="-40" x2="0" y2="-20" antialias="false" />
<!--W1--> <!--W1-->
<ligne x1="20" y1="-40" x2="20" y2="-20" antialias="false" /> <line x1="20" y1="-40" x2="20" y2="-20" antialias="false" />
<ligne x1="20" y1="-20" x2="14" y2="-14" antialias="true" /> <line x1="20" y1="-20" x2="14" y2="-14" antialias="true" />
<!--U2--> <!--U2-->
<ligne x1="-20" y1="40" x2="-20" y2="20" antialias="false" /> <line x1="-20" y1="40" x2="-20" y2="20" antialias="false" />
<ligne x1="-20" y1="20" x2="-14" y2="14" antialias="true" /> <line x1="-20" y1="20" x2="-14" y2="14" antialias="true" />
<!--V2--> <!--V2-->
<ligne x1="0" y1="40" x2="0" y2="20" antialias="false" /> <line x1="0" y1="40" x2="0" y2="20" antialias="false" />
<!--W2--> <!--W2-->
<ligne x1="20" y1="40" x2="20" y2="20" antialias="false" /> <line x1="20" y1="40" x2="20" y2="20" antialias="false" />
<ligne x1="20" y1="20" x2="14" y2="14" antialias="true" /> <line x1="20" y1="20" x2="14" y2="14" antialias="true" />
<!--Lettre M--> <!--Lettre M-->
<ligne x1="-10" y1="-10" x2="-10" y2="10" antialias="false" /> <line x1="-10" y1="-10" x2="-10" y2="10" antialias="false" />
<ligne x1="-10" y1="-10" x2="0" y2="0" antialias="true" /> <line x1="-10" y1="-10" x2="0" y2="0" antialias="true" />
<ligne x1="0" y1="0" x2="10" y2="-10" antialias="true" /> <line x1="0" y1="0" x2="10" y2="-10" antialias="true" />
<ligne x1="10" y1="-10" x2="10" y2="10" antialias="false" /> <line x1="10" y1="-10" x2="10" y2="10" antialias="false" />
<!--Bornes Supérieurs--> <!--Bornes Supérieurs-->
<borne orientation="n" x="-20" y="-40" /> <terminal orientation="n" x="-20" y="-40" />
<borne orientation="n" x="0" y="-40" /> <terminal orientation="n" x="0" y="-40" />
<borne orientation="n" x="20" y="-40" /> <terminal orientation="n" x="20" y="-40" />
<!--Bornes Inférieurs--> <!--Bornes Inférieurs-->
<borne orientation="s" x="-20" y="40" /> <terminal orientation="s" x="-20" y="40" />
<borne orientation="s" x="0" y="40" /> <terminal orientation="s" x="0" y="40" />
<borne orientation="s" x="20" y="40" /> <terminal orientation="s" x="20" y="40" />
</description> </description>
</definition> </definition>

View File

@@ -6,11 +6,11 @@
</names> </names>
<description> <description>
<!--Diode--> <!--Diode-->
<polygone x1="-10" y1="-10" x2="10" y2="-10" x3="0" y3="10" antialias="true" style="filling:white;" /> <polygon x1="-10" y1="-10" x2="10" y2="-10" x3="0" y3="10" antialias="true" style="filling:white;" />
<ligne x1="0" y1="-20" x2="0" y2="20" antialias="false" /> <line x1="0" y1="-20" x2="0" y2="20" antialias="false" />
<ligne x1="-10" y1="10" x2="10" y2="10" antialias="false" /> <line x1="-10" y1="10" x2="10" y2="10" antialias="false" />
<!--Bornes--> <!--Bornes-->
<borne orientation="s" x="0" y="20" /> <terminal orientation="s" x="0" y="20" />
<borne orientation="n" x="0" y="-20" /> <terminal orientation="n" x="0" y="-20" />
</description> </description>
</definition> </definition>

View File

@@ -6,16 +6,16 @@
</names> </names>
<description> <description>
<!--Diode--> <!--Diode-->
<polygone x1="-10" y1="-10" x2="10" y2="-10" x3="0" y3="10" antialias="true" style="filling:white;" /> <polygon x1="-10" y1="-10" x2="10" y2="-10" x3="0" y3="10" antialias="true" style="filling:white;" />
<ligne x1="0" y1="-20" x2="0" y2="20" antialias="false" /> <line x1="0" y1="-20" x2="0" y2="20" antialias="false" />
<ligne x1="-10" y1="10" x2="10" y2="10" antialias="false" /> <line x1="-10" y1="10" x2="10" y2="10" antialias="false" />
<!--Gachette--> <!--Gachette-->
<ligne x1="-5" y1="10" x2="-10" y2="15" antialias="true" /> <line x1="-5" y1="10" x2="-10" y2="15" antialias="true" />
<ligne x1="-10" y1="15" x2="-15" y2="15" antialias="false" /> <line x1="-10" y1="15" x2="-15" y2="15" antialias="false" />
<!--Borne Diode--> <!--Borne Diode-->
<borne orientation="s" x="0" y="20" /> <terminal orientation="s" x="0" y="20" />
<borne orientation="n" x="0" y="-20" /> <terminal orientation="n" x="0" y="-20" />
<!--Borne Gachette--> <!--Borne Gachette-->
<borne orientation="w" x="-15" y="15" /> <terminal orientation="w" x="-15" y="15" />
</description> </description>
</definition> </definition>

View File

@@ -6,14 +6,14 @@
</names> </names>
<description> <description>
<!--Diode--> <!--Diode-->
<polygone x1="-10" y1="-10" x2="10" y2="-10" x3="0" y3="10" antialias="true" style="filling:white;" /> <polygon x1="-10" y1="-10" x2="10" y2="-10" x3="0" y3="10" antialias="true" style="filling:white;" />
<ligne x1="0" y1="-20" x2="0" y2="20" antialias="false" /> <line x1="0" y1="-20" x2="0" y2="20" antialias="false" />
<ligne x1="-10" y1="10" x2="10" y2="10" antialias="false" /> <line x1="-10" y1="10" x2="10" y2="10" antialias="false" />
<!--Zener--> <!--Zener-->
<ligne x1="-10" y1="10" x2="-10" y2="5" antialias="false" /> <line x1="-10" y1="10" x2="-10" y2="5" antialias="false" />
<ligne x1="10" y1="10" x2="10" y2="15" antialias="false" /> <line x1="10" y1="10" x2="10" y2="15" antialias="false" />
<!--Bornes--> <!--Bornes-->
<borne orientation="s" x="0" y="20" /> <terminal orientation="s" x="0" y="20" />
<borne orientation="n" x="0" y="-20" /> <terminal orientation="n" x="0" y="-20" />
</description> </description>
</definition> </definition>

View File

@@ -6,11 +6,11 @@
</names> </names>
<description> <description>
<!--Terre--> <!--Terre-->
<ligne x1="0" y1="-0" x2="0" y2="10" antialias="false" /> <line x1="0" y1="-0" x2="0" y2="10" antialias="false" />
<ligne x1="-10" y1="10" x2="10" y2="10" antialias="false" /> <line x1="-10" y1="10" x2="10" y2="10" antialias="false" />
<ligne x1="-6" y1="14" x2="6" y2="14" antialias="false" /> <line x1="-6" y1="14" x2="6" y2="14" antialias="false" />
<ligne x1="-2" y1="18" x2="2" y2="18" antialias="false" /> <line x1="-2" y1="18" x2="2" y2="18" antialias="false" />
<!--Borne--> <!--Borne-->
<borne orientation="n" x="0" y="0" /> <terminal orientation="n" x="0" y="0" />
</description> </description>
</definition> </definition>

View File

@@ -6,25 +6,26 @@
</names> </names>
<description> <description>
<!--Transforateur--> <!--Transforateur-->
<cercle x="-20" y="-20" rayon="40" antialias="true" style="filling:white;" /> <circle x="-20" y="-20" diameter="40" antialias="true" style="line-weight:none;filling:white;" />
<cercle x="-20" y="0" rayon="40" antialias="true" style="filling:white;" /> <circle x="-20" y="0" diameter="40" antialias="true" style="filling:white;" />
<circle x="-20" y="-20" diameter="40" antialias="true" />
<!--Phase 1--> <!--Phase 1-->
<ligne x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" /> <line x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" />
<ligne x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" /> <line x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" />
<!--Neutre 1--> <!--Neutre 1-->
<ligne x1="20" y1="-40" x2="20" y2="-20" antialias="false" /> <line x1="20" y1="-40" x2="20" y2="-20" antialias="false" />
<ligne x1="20" y1="-20" x2="14" y2="-14" antialias="true" /> <line x1="20" y1="-20" x2="14" y2="-14" antialias="true" />
<!--Phase 2--> <!--Phase 2-->
<ligne x1="-20" y1="60" x2="-20" y2="40" antialias="false" /> <line x1="-20" y1="60" x2="-20" y2="40" antialias="false" />
<ligne x1="-20" y1="40" x2="-14" y2="34" antialias="true" /> <line x1="-20" y1="40" x2="-14" y2="34" antialias="true" />
<!--Neutre 2--> <!--Neutre 2-->
<ligne x1="20" y1="60" x2="20" y2="40" antialias="false" /> <line x1="20" y1="60" x2="20" y2="40" antialias="false" />
<ligne x1="20" y1="40" x2="14" y2="34" antialias="true" /> <line x1="20" y1="40" x2="14" y2="34" antialias="true" />
<!--Bornes supérieurs--> <!--Bornes supérieurs-->
<borne orientation="n" x="-20" y="-40" /> <terminal orientation="n" x="-20" y="-40" />
<borne orientation="n" x="20" y="-40" /> <terminal orientation="n" x="20" y="-40" />
<!--Bornes inférieurs--> <!--Bornes inférieurs-->
<borne orientation="s" x="-20" y="60" /> <terminal orientation="s" x="-20" y="60" />
<borne orientation="s" x="20" y="60" /> <terminal orientation="s" x="20" y="60" />
</description> </description>
</definition> </definition>

View File

@@ -6,31 +6,32 @@
</names> </names>
<description> <description>
<!--Transformateur--> <!--Transformateur-->
<cercle x="-20" y="-20" rayon="40" antialias="true" style="filling:white;" /> <circle x="-20" y="-20" diameter="40" antialias="true" style="line-weight:none;filling:white;" />
<cercle x="-20" y="0" rayon="40" antialias="true" style="filling:white;" /> <circle x="-20" y="0" diameter="40" antialias="true" style="filling:white;" />
<circle x="-20" y="-20" diameter="40" antialias="true" />
<!--U1--> <!--U1-->
<ligne x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" /> <line x1="-20" y1="-40" x2="-20" y2="-20" antialias="false" />
<ligne x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" /> <line x1="-20" y1="-20" x2="-14" y2="-14" antialias="true" />
<!--V1--> <!--V1-->
<ligne x1="0" y1="-40" x2="0" y2="-20" antialias="false" style="line-style:dashed;" /> <line x1="0" y1="-40" x2="0" y2="-20" antialias="false" style="line-style:dashed;" />
<!--W1--> <!--W1-->
<ligne x1="20" y1="-40" x2="20" y2="-20" antialias="false" /> <line x1="20" y1="-40" x2="20" y2="-20" antialias="false" />
<ligne x1="20" y1="-20" x2="14" y2="-14" antialias="true" /> <line x1="20" y1="-20" x2="14" y2="-14" antialias="true" />
<!--U2--> <!--U2-->
<ligne x1="-20" y1="60" x2="-20" y2="40" antialias="false" /> <line x1="-20" y1="60" x2="-20" y2="40" antialias="false" />
<ligne x1="-20" y1="40" x2="-14" y2="34" antialias="true" /> <line x1="-20" y1="40" x2="-14" y2="34" antialias="true" />
<!--V2--> <!--V2-->
<ligne x1="0" y1="60" x2="0" y2="40" antialias="false" /> <line x1="0" y1="60" x2="0" y2="40" antialias="false" />
<!--W2--> <!--W2-->
<ligne x1="20" y1="60" x2="20" y2="40" antialias="false" /> <line x1="20" y1="60" x2="20" y2="40" antialias="false" />
<ligne x1="20" y1="40" x2="14" y2="34" antialias="true" /> <line x1="20" y1="40" x2="14" y2="34" antialias="true" />
<!--Bornes supérieurs--> <!--Bornes supérieurs-->
<borne orientation="n" x="-20" y="-40" /> <terminal orientation="n" x="-20" y="-40" />
<borne orientation="n" x="0" y="-40" /> <terminal orientation="n" x="0" y="-40" />
<borne orientation="n" x="20" y="-40" /> <terminal orientation="n" x="20" y="-40" />
<!--Bornes inférieurs--> <!--Bornes inférieurs-->
<borne orientation="s" x="-20" y="60" /> <terminal orientation="s" x="-20" y="60" />
<borne orientation="s" x="0" y="60" /> <terminal orientation="s" x="0" y="60" />
<borne orientation="s" x="20" y="60" /> <terminal orientation="s" x="20" y="60" />
</description> </description>
</definition> </definition>