diff --git a/customelement.cpp b/customelement.cpp
index e5fcd274c..181d60dac 100644
--- a/customelement.cpp
+++ b/customelement.cpp
@@ -184,12 +184,12 @@ void CustomElement::paint(QPainter *qp, const QStyleOptionGraphicsItem *) {
@return true si l'analyse reussit, false sinon
*/
bool CustomElement::parseElement(QDomElement &e, QPainter &qp, Diagram *s) {
- if (e.tagName() == "borne") return(parseTerminal(e, s));
- else if (e.tagName() == "ligne") return(parseLigne(e, qp));
+ if (e.tagName() == "terminal") return(parseTerminal(e, s));
+ else if (e.tagName() == "line") return(parseLigne(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() == "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
}
@@ -224,7 +224,7 @@ bool CustomElement::parseLigne(QDomElement &e, QPainter &qp) {
Le cercle est defini par les attributs suivants :
- x : abscisse 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 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) {
// verifie la presence des attributs obligatoires
double cercle_x, cercle_y, cercle_r;
- if (!attributeIsAReal(e, QString("x"), &cercle_x)) return(false);
- if (!attributeIsAReal(e, QString("y"), &cercle_y)) return(false);
- if (!attributeIsAReal(e, QString("rayon"), &cercle_r)) return(false);
+ if (!attributeIsAReal(e, QString("x"), &cercle_x)) return(false);
+ if (!attributeIsAReal(e, QString("y"), &cercle_y)) return(false);
+ if (!attributeIsAReal(e, QString("diameter"), &cercle_r)) return(false);
qp.save();
setPainterStyle(e, qp);
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 :
- 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
- - largeur : dimension de la diagonale horizontale de l'ellipse
- - hauteur : dimension de la diagonale verticale de l'ellipse
+ - width : dimension de la diagonale horizontale de l'ellipse
+ - height : dimension de la diagonale verticale de l'ellipse
@param e L'element XML a analyser
@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;
if (!attributeIsAReal(e, QString("x"), &ellipse_x)) return(false);
if (!attributeIsAReal(e, QString("y"), &ellipse_y)) return(false);
- if (!attributeIsAReal(e, QString("largeur"), &ellipse_l)) return(false);
- if (!attributeIsAReal(e, QString("hauteur"), &ellipse_h)) return(false);
+ if (!attributeIsAReal(e, QString("width"), &ellipse_l)) return(false);
+ if (!attributeIsAReal(e, QString("height"), &ellipse_h)) return(false);
qp.save();
setPainterStyle(e, qp);
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;
if (!attributeIsAReal(e, QString("x"), &arc_x)) return(false);
if (!attributeIsAReal(e, QString("y"), &arc_y)) return(false);
- if (!attributeIsAReal(e, QString("largeur"), &arc_l)) return(false);
- if (!attributeIsAReal(e, QString("hauteur"), &arc_h)) return(false);
+ if (!attributeIsAReal(e, QString("width"), &arc_l)) return(false);
+ if (!attributeIsAReal(e, QString("height"), &arc_h)) return(false);
if (!attributeIsAReal(e, QString("start"), &arc_s)) 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") {
if (style_value == "thin") pen.setWidth(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") {
if (style_value == "white") {
brush.setStyle(Qt::SolidPattern);
diff --git a/elements/bobine.elmt b/elements/bobine.elmt
index 8d4647ca9..0b9f63dff 100644
--- a/elements/bobine.elmt
+++ b/elements/bobine.elmt
@@ -6,13 +6,13 @@
-
+
-
-
+
+
-
+
-
+
diff --git a/elements/contacts/bp.elmt b/elements/contacts/bp.elmt
index 37e0abab7..d5b5e113b 100644
--- a/elements/contacts/bp.elmt
+++ b/elements/contacts/bp.elmt
@@ -6,16 +6,16 @@
-
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
+
+
diff --git a/elements/contacts/bp_nf.elmt b/elements/contacts/bp_nf.elmt
index 3e4d37371..8b90c6bcf 100644
--- a/elements/contacts/bp_nf.elmt
+++ b/elements/contacts/bp_nf.elmt
@@ -6,17 +6,17 @@
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
+
+
diff --git a/elements/contacts/capteur.elmt b/elements/contacts/capteur.elmt
index e11edffc3..566f97082 100644
--- a/elements/contacts/capteur.elmt
+++ b/elements/contacts/capteur.elmt
@@ -6,14 +6,14 @@
-
-
-
+
+
+
-
-
+
+
-
-
+
+
diff --git a/elements/contacts/capteur_nf.elmt b/elements/contacts/capteur_nf.elmt
index a8bf79ae8..291dcd301 100644
--- a/elements/contacts/capteur_nf.elmt
+++ b/elements/contacts/capteur_nf.elmt
@@ -6,15 +6,15 @@
-
-
-
-
+
+
+
+
-
-
+
+
-
-
+
+
diff --git a/elements/contacts/contact.elmt b/elements/contacts/contact.elmt
index ddae42aa8..04d4bd9f4 100644
--- a/elements/contacts/contact.elmt
+++ b/elements/contacts/contact.elmt
@@ -6,11 +6,11 @@
-
-
-
+
+
+
-
-
+
+
diff --git a/elements/contacts/contact_nf.elmt b/elements/contacts/contact_nf.elmt
index 287a0358b..b5a960c96 100644
--- a/elements/contacts/contact_nf.elmt
+++ b/elements/contacts/contact_nf.elmt
@@ -6,12 +6,12 @@
-
-
-
-
+
+
+
+
-
-
+
+
diff --git a/elements/contacts/disjoncteur.elmt b/elements/contacts/disjoncteur.elmt
index 71409557e..65081cfb9 100644
--- a/elements/contacts/disjoncteur.elmt
+++ b/elements/contacts/disjoncteur.elmt
@@ -6,14 +6,14 @@
-
-
-
+
+
+
-
-
+
+
-
-
+
+
diff --git a/elements/contacts/disjoncteur_sectionneur.elmt b/elements/contacts/disjoncteur_sectionneur.elmt
index bab5d199e..7639f3c0d 100644
--- a/elements/contacts/disjoncteur_sectionneur.elmt
+++ b/elements/contacts/disjoncteur_sectionneur.elmt
@@ -6,16 +6,16 @@
-
-
-
+
+
+
-
-
+
+
-
+
-
-
+
+
diff --git a/elements/contacts/sectionneur.elmt b/elements/contacts/sectionneur.elmt
index ba7c1d47c..1091916f6 100644
--- a/elements/contacts/sectionneur.elmt
+++ b/elements/contacts/sectionneur.elmt
@@ -6,13 +6,13 @@
-
-
-
+
+
+
-
+
-
-
+
+
diff --git a/elements/del.elmt b/elements/del.elmt
index 1935b03f0..ce5e1ecbe 100644
--- a/elements/del.elmt
+++ b/elements/del.elmt
@@ -6,14 +6,14 @@
-
-
-
+
+
+
-
-
+
+
-
-
+
+
diff --git a/elements/entree.elmt b/elements/entree.elmt
index 68cad3f23..94594cfdd 100644
--- a/elements/entree.elmt
+++ b/elements/entree.elmt
@@ -5,8 +5,8 @@
Input
-
-
-
+
+
+
diff --git a/elements/moteurs/mcc.elmt b/elements/moteurs/mcc.elmt
index 1b62829aa..868378efa 100644
--- a/elements/moteurs/mcc.elmt
+++ b/elements/moteurs/mcc.elmt
@@ -6,26 +6,26 @@
-
+
-
-
-
+
+
+
-
+
-
-
-
+
+
+
-
+
-
-
-
-
+
+
+
+
-
-
+
+
diff --git a/elements/moteurs/moteur_alt3.elmt b/elements/moteurs/moteur_alt3.elmt
index 5378dcf42..6aa8558b7 100644
--- a/elements/moteurs/moteur_alt3.elmt
+++ b/elements/moteurs/moteur_alt3.elmt
@@ -5,23 +5,23 @@
Three-phase induction motor
-
+
-
-
+
+
-
+
-
-
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
diff --git a/elements/moteurs/moteur_alt6.elmt b/elements/moteurs/moteur_alt6.elmt
index d37d8fb6b..569f7c635 100644
--- a/elements/moteurs/moteur_alt6.elmt
+++ b/elements/moteurs/moteur_alt6.elmt
@@ -5,35 +5,35 @@
Three-phase induction motor (not coupled)
-
+
-
-
+
+
-
+
-
-
+
+
-
-
+
+
-
+
-
-
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
diff --git a/elements/semi_conducteurs/diode.elmt b/elements/semi_conducteurs/diode.elmt
index 5e3ca4931..14eb8184f 100644
--- a/elements/semi_conducteurs/diode.elmt
+++ b/elements/semi_conducteurs/diode.elmt
@@ -6,11 +6,11 @@
-
-
-
+
+
+
-
-
+
+
diff --git a/elements/semi_conducteurs/thyristor.elmt b/elements/semi_conducteurs/thyristor.elmt
index 211b0570a..3ed79fa85 100644
--- a/elements/semi_conducteurs/thyristor.elmt
+++ b/elements/semi_conducteurs/thyristor.elmt
@@ -6,16 +6,16 @@
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
+
diff --git a/elements/semi_conducteurs/zener.elmt b/elements/semi_conducteurs/zener.elmt
index 2ffd109ba..dea06386b 100644
--- a/elements/semi_conducteurs/zener.elmt
+++ b/elements/semi_conducteurs/zener.elmt
@@ -6,14 +6,14 @@
-
-
-
+
+
+
-
-
+
+
-
-
+
+
diff --git a/elements/terre.elmt b/elements/terre.elmt
index 90a39b7d6..79127e5df 100644
--- a/elements/terre.elmt
+++ b/elements/terre.elmt
@@ -6,11 +6,11 @@
-
-
-
-
+
+
+
+
-
+
diff --git a/elements/transformateurs/transfo_mono.elmt b/elements/transformateurs/transfo_mono.elmt
index da5251f10..f39c1144c 100644
--- a/elements/transformateurs/transfo_mono.elmt
+++ b/elements/transformateurs/transfo_mono.elmt
@@ -6,25 +6,26 @@
-
-
+
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
diff --git a/elements/transformateurs/transfo_tri.elmt b/elements/transformateurs/transfo_tri.elmt
index f61412f41..c049012c7 100644
--- a/elements/transformateurs/transfo_tri.elmt
+++ b/elements/transformateurs/transfo_tri.elmt
@@ -6,31 +6,32 @@
-
-
+
+
+
-
-
+
+
-
+
-
-
+
+
-
-
+
+
-
+
-
-
+
+
-
-
-
+
+
+
-
-
-
+
+
+