mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
Compare commits
58 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d5a4fdf4f | ||
|
|
507183cf04 | ||
|
|
71ff71d7c1 | ||
|
|
f28ec9c891 | ||
|
|
c746eaf19d | ||
|
|
5a309dca33 | ||
|
|
a65a7c548d | ||
|
|
91e3f9e2da | ||
|
|
943a9d348a | ||
|
|
68e3bbcb37 | ||
|
|
9c9ecad579 | ||
|
|
801d1acaaa | ||
|
|
854336e569 | ||
|
|
5c7044fbdb | ||
|
|
c3ea627d9c | ||
|
|
c44a8cb51a | ||
|
|
b42bc62e9e | ||
|
|
74e301e655 | ||
|
|
81f18ba8a8 | ||
|
|
ac19515895 | ||
|
|
d6f81b64da | ||
|
|
ea87ae0ee8 | ||
|
|
8b5b005a55 | ||
|
|
8d3962b71c | ||
|
|
1a79cd5a94 | ||
|
|
e12e4f7076 | ||
|
|
f55421c0c2 | ||
|
|
4d0c61937c | ||
|
|
cec010c1e7 | ||
|
|
fe06bfd425 | ||
|
|
43182b73a0 | ||
|
|
cf66a18795 | ||
|
|
01f4eb4a21 | ||
|
|
1e23544364 | ||
|
|
71cbc8af6b | ||
|
|
5792d964e7 | ||
|
|
3f0a44cb6a | ||
|
|
c7a6d7cf67 | ||
|
|
c67c2a402e | ||
|
|
61ce4af8b3 | ||
|
|
263b6ba8a7 | ||
|
|
717d826078 | ||
|
|
d560883c6b | ||
|
|
d2c5fbd8c2 | ||
|
|
8cd94b3137 | ||
|
|
3fe46a9f3b | ||
|
|
7a1ffcbd7f | ||
|
|
ba01ad5cf1 | ||
|
|
b561b8394b | ||
|
|
3ca301ddb4 | ||
|
|
e5007a1b8b | ||
|
|
ab562f780b | ||
|
|
64c92fe23e | ||
|
|
45c07ee6b5 | ||
|
|
1ba0c114de | ||
|
|
8e1ae1233b | ||
|
|
396dd54e8e | ||
|
|
6bf8eed171 |
23
CREDIT
23
CREDIT
@@ -1,6 +1,23 @@
|
|||||||
Merci à Trolltech pour la bibliothèque Qt ( http://trolltech.com/ ), sous
|
[en]
|
||||||
|
Thanks to Trolltech for their Qt library ( http://trolltech.com/ ), licensed
|
||||||
|
under GNU/GPL.
|
||||||
|
Thanks to Everaldo Coelho for the Crystal SVG icons theme (
|
||||||
|
http://www.everaldo.com/crystal/ ) licensed under LGPL, and to the KDE
|
||||||
|
project ( http://www.kde.org/ ).
|
||||||
|
Thanks to Loic for his mathematics-related explanations.
|
||||||
|
Thanks to Nicolas for the Mac OS X experimentations.
|
||||||
|
Thanks to Remi Collet for the Fedora packaging.
|
||||||
|
Thanks to TuxFamily ( http://tuxfamily.org ) for hosting the project.
|
||||||
|
Thanks to `Nishiki' for his elements and his support.
|
||||||
|
|
||||||
|
[fr]
|
||||||
|
Merci à Trolltech pour la bibliothèque Qt ( http://trolltech.com/ ), sous
|
||||||
licence GNU/GPL.
|
licence GNU/GPL.
|
||||||
Merci à Everaldo Coelho pour le thème d'icônes Crystal SVG (
|
Merci à Everaldo Coelho pour le thème d'icônes Crystal SVG (
|
||||||
http://www.everaldo.com/crystal/ ) sous licence LGPL, ainsi qu'au projet KDE (
|
http://www.everaldo.com/crystal/ ) sous licence LGPL, ainsi qu'au projet KDE (
|
||||||
http://www.kde.org/ ).
|
http://www.kde.org/ ).
|
||||||
Merci à Loic pour ses explications d'ordre mathématique.
|
Merci à Loic pour ses explications d'ordre mathématique.
|
||||||
|
Merci à Nicolas pour les expérimentations Mac OS X.
|
||||||
|
Merci à Remi Collet pour les paquets Fedora.
|
||||||
|
Merci à TuxFamily ( http://tuxfamily.org ) pour l'hébergement du projet.
|
||||||
|
Merci à `Nishiki' pour ses éléments et son soutien.
|
||||||
|
|||||||
19
INSTALL
Normal file
19
INSTALL
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
[en]
|
||||||
|
Requirements :
|
||||||
|
libQt4 (see packages libqt4*)
|
||||||
|
cupsys-bsd for printing
|
||||||
|
|
||||||
|
Howto compile :
|
||||||
|
$ qmake (qmake-qt4 for Debian-based systems)
|
||||||
|
$ make
|
||||||
|
# make install
|
||||||
|
|
||||||
|
[fr]
|
||||||
|
Pré-requis :
|
||||||
|
libQt4 (paquets libqt4*)
|
||||||
|
cupsys-bsd pour l'impression
|
||||||
|
|
||||||
|
Comment compiler :
|
||||||
|
$ qmake (qmake-qt4 pour les systèmes basés sur Debian)
|
||||||
|
$ make
|
||||||
|
# make install
|
||||||
9
README
Normal file
9
README
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[en]
|
||||||
|
QElectroTech is a Qt4 application to design electric diagrams. It uses XML
|
||||||
|
files for elements and diagrams, and includes both a diagram editor and an
|
||||||
|
element editor.
|
||||||
|
|
||||||
|
[fr]
|
||||||
|
QElectroTech est une application Qt4 pour réaliser des schémas électriques.
|
||||||
|
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.
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
@@ -82,7 +82,7 @@ QWidget *AboutQET::ongletAPropos() const {
|
|||||||
QLabel *apropos = new QLabel(
|
QLabel *apropos = new QLabel(
|
||||||
tr("QElectroTech, une application de r\351alisation de sch\351mas \351lectriques.") +
|
tr("QElectroTech, une application de r\351alisation de sch\351mas \351lectriques.") +
|
||||||
"<br><br>" +
|
"<br><br>" +
|
||||||
tr("\251 2006-2007 Les d\351veloppeurs de QElectroTech") +
|
tr("\251 2006-2008 Les d\351veloppeurs de QElectroTech") +
|
||||||
"<br><br>"
|
"<br><br>"
|
||||||
"<a href=\"http://qelectrotech.tuxfamily.org/\">"
|
"<a href=\"http://qelectrotech.tuxfamily.org/\">"
|
||||||
"http://qelectrotech.tuxfamily.org/</a>"
|
"http://qelectrotech.tuxfamily.org/</a>"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
@@ -41,6 +41,8 @@ Conductor::Conductor(Terminal *p1, Terminal* p2, Element *parent, QGraphicsScene
|
|||||||
terminal2(p2),
|
terminal2(p2),
|
||||||
destroyed(false),
|
destroyed(false),
|
||||||
segments(NULL),
|
segments(NULL),
|
||||||
|
moving_point(false),
|
||||||
|
moving_segment(false),
|
||||||
previous_z_value(zValue()),
|
previous_z_value(zValue()),
|
||||||
modified_path(false),
|
modified_path(false),
|
||||||
has_to_save_profile(false)
|
has_to_save_profile(false)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
@@ -122,7 +122,7 @@ CustomElement::CustomElement(QString &nom_fichier, QGraphicsItem *qgi, Diagram *
|
|||||||
QPen t;
|
QPen t;
|
||||||
t.setColor(Qt::black);
|
t.setColor(Qt::black);
|
||||||
t.setWidthF(1.0);
|
t.setWidthF(1.0);
|
||||||
t.setJoinStyle(Qt::MiterJoin);
|
t.setJoinStyle(Qt::BevelJoin);
|
||||||
qp.setPen(t);
|
qp.setPen(t);
|
||||||
|
|
||||||
// extrait les noms de la definition XML
|
// extrait les noms de la definition XML
|
||||||
@@ -420,6 +420,7 @@ bool CustomElement::parseInput(QDomElement &e) {
|
|||||||
ElementTextItem *eti = new ElementTextItem(e.attribute("text"), this);
|
ElementTextItem *eti = new ElementTextItem(e.attribute("text"), this);
|
||||||
eti -> setFont(QFont(QETApp::diagramTextsFont(), size));
|
eti -> setFont(QFont(QETApp::diagramTextsFont(), size));
|
||||||
eti -> setPos(pos_x, pos_y);
|
eti -> setPos(pos_x, pos_y);
|
||||||
|
eti -> setOriginalPos(QPointF(pos_x, pos_y));
|
||||||
if (e.attribute("rotate") == "true") eti -> setFollowParentRotations(true);
|
if (e.attribute("rotate") == "true") eti -> setFollowParentRotations(true);
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
@@ -513,7 +514,7 @@ void CustomElement::setPainterStyle(QDomElement &e, QPainter &qp) {
|
|||||||
QBrush brush = qp.brush();
|
QBrush brush = qp.brush();
|
||||||
|
|
||||||
// attributs par defaut
|
// attributs par defaut
|
||||||
pen.setJoinStyle(Qt::MiterJoin);
|
pen.setJoinStyle(Qt::BevelJoin);
|
||||||
pen.setCapStyle(Qt::SquareCap);
|
pen.setCapStyle(Qt::SquareCap);
|
||||||
pen.setColor(Qt::black);
|
pen.setColor(Qt::black);
|
||||||
pen.setStyle(Qt::SolidLine);
|
pen.setStyle(Qt::SolidLine);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
302
diagramprintdialog.cpp
Normal file
302
diagramprintdialog.cpp
Normal file
@@ -0,0 +1,302 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2006-2007 Xavier Guerrin
|
||||||
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
QElectroTech is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include "diagramprintdialog.h"
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
Constructeur
|
||||||
|
@param dia Schema a imprimer
|
||||||
|
@param printer Imprimante a utiliser
|
||||||
|
@param parent Widget parent du dialogue
|
||||||
|
*/
|
||||||
|
DiagramPrintDialog::DiagramPrintDialog(Diagram *dia, QWidget *parent) :
|
||||||
|
QWidget(parent),
|
||||||
|
diagram(dia),
|
||||||
|
dialog(0)
|
||||||
|
{
|
||||||
|
// initialise l'imprimante
|
||||||
|
printer = new QPrinter();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Destructeur
|
||||||
|
*/
|
||||||
|
DiagramPrintDialog::~DiagramPrintDialog() {
|
||||||
|
delete dialog;
|
||||||
|
delete printer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Definit le nom du PDF si l'utilisateur choisit une sortie vers un PDF
|
||||||
|
*/
|
||||||
|
void DiagramPrintDialog::setPDFName(const QString &name) {
|
||||||
|
pdf_name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@return le nom du PDF
|
||||||
|
*/
|
||||||
|
QString DiagramPrintDialog::PDFName() const {
|
||||||
|
return(pdf_name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Execute le dialogue d'impression
|
||||||
|
*/
|
||||||
|
void DiagramPrintDialog::exec() {
|
||||||
|
|
||||||
|
// affichage du dialogue d'impression standard
|
||||||
|
QPrintDialog print_dialog(printer);
|
||||||
|
print_dialog.setEnabledOptions(QAbstractPrintDialog::PrintToFile);
|
||||||
|
#ifndef Q_OS_WIN32
|
||||||
|
if (!pdf_name.isEmpty()) printer -> setOutputFileName(pdf_name);
|
||||||
|
#endif
|
||||||
|
if (print_dialog.exec() == QDialog::Rejected) return;
|
||||||
|
|
||||||
|
/*
|
||||||
|
Apres l'execution de ce premier dialogue, on connait le format papier a
|
||||||
|
utiliser, son orientation et on est sur que tout cela est supporte par
|
||||||
|
l'imprimante.
|
||||||
|
On peut donc en deduire le nombre de pages a imprimer
|
||||||
|
*/
|
||||||
|
|
||||||
|
// affichage d'un second dialogue, non standard, pour connaitre les pages a imprimer
|
||||||
|
buildDialog();
|
||||||
|
if (dialog -> exec() == QDialog::Rejected) return;
|
||||||
|
|
||||||
|
// effectue l'impression en elle-meme
|
||||||
|
print();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@param fullPage true pour utiliser toute la feuille dans le calcul
|
||||||
|
@return Le nombre de pages necessaires pour imprimer le schema
|
||||||
|
avec l'orientation et le format papier utilise dans l'imprimante en cours.
|
||||||
|
*/
|
||||||
|
int DiagramPrintDialog::pagesCount(bool fullpage) const {
|
||||||
|
return(horizontalPagesCount(fullpage) * verticalPagesCount(fullpage));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@param fullPage true pour utiliser toute la feuille dans le calcul
|
||||||
|
@return La largeur du "poster" en nombre de pages pour imprimer le schema
|
||||||
|
avec l'orientation et le format papier utilise dans l'imprimante en cours.
|
||||||
|
*/
|
||||||
|
int DiagramPrintDialog::horizontalPagesCount(bool fullpage) const {
|
||||||
|
// note : pageRect et Paper Rect tiennent compte de l'orientation du papier
|
||||||
|
QRect printable_area = fullpage ? printer -> paperRect() : printer -> pageRect();
|
||||||
|
QRect diagram_rect = diagram -> border().toRect();
|
||||||
|
|
||||||
|
int h_pages_count = int(ceil(qreal(diagram_rect.width()) / qreal(printable_area.width())));
|
||||||
|
return(h_pages_count);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@param fullPage true pour utiliser toute la feuille dans le calcul
|
||||||
|
@return La largeur du "poster" en nombre de pages pour imprimer le schema
|
||||||
|
avec l'orientation et le format papier utilise dans l'imprimante en cours.
|
||||||
|
*/
|
||||||
|
int DiagramPrintDialog::verticalPagesCount(bool fullpage) const {
|
||||||
|
// note : pageRect et Paper Rect tiennent compte de l'orientation du papier
|
||||||
|
QRect printable_area = fullpage ? printer -> paperRect() : printer -> pageRect();
|
||||||
|
QRect diagram_rect = diagram -> border().toRect();
|
||||||
|
|
||||||
|
int v_pages_count = int(ceil(qreal(diagram_rect.height()) / qreal(printable_area.height())));
|
||||||
|
return(v_pages_count);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Construit un dialogue non standard pour demander les pages a imprimer a l'utilisateur
|
||||||
|
*/
|
||||||
|
void DiagramPrintDialog::buildDialog() {
|
||||||
|
dialog = new QDialog();
|
||||||
|
dialog -> setWindowTitle(tr("Options d'impression"));
|
||||||
|
options_label = new QLabel();
|
||||||
|
use_full_page = new QCheckBox(tr("Utiliser toute la feuille"));
|
||||||
|
fit_diagram_to_page = new QCheckBox(tr("Adapter le sch\351ma \340 la page"));
|
||||||
|
range_from_label = new QLabel(tr("Plage de "));
|
||||||
|
start_page = new QSpinBox();
|
||||||
|
to_label = new QLabel(tr(" \340 "));
|
||||||
|
end_page = new QSpinBox();
|
||||||
|
buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||||
|
|
||||||
|
QHBoxLayout *pages_layout = new QHBoxLayout();
|
||||||
|
pages_layout -> addWidget(range_from_label);
|
||||||
|
pages_layout -> addWidget(start_page);
|
||||||
|
pages_layout -> addWidget(to_label);
|
||||||
|
pages_layout -> addWidget(end_page);
|
||||||
|
|
||||||
|
QVBoxLayout *dialog_layout = new QVBoxLayout(dialog);
|
||||||
|
dialog_layout -> addWidget(options_label);
|
||||||
|
dialog_layout -> addWidget(use_full_page);
|
||||||
|
dialog_layout -> addWidget(fit_diagram_to_page);
|
||||||
|
dialog_layout -> addLayout(pages_layout);
|
||||||
|
dialog_layout -> addStretch();
|
||||||
|
dialog_layout -> addWidget(buttons);
|
||||||
|
|
||||||
|
connect(use_full_page, SIGNAL(stateChanged(int)), this, SLOT(updateDialog()));
|
||||||
|
connect(fit_diagram_to_page, SIGNAL(stateChanged(int)), this, SLOT(updateDialog()));
|
||||||
|
connect(start_page, SIGNAL(valueChanged(int)), this, SLOT(checkStartPage()));
|
||||||
|
connect(end_page, SIGNAL(valueChanged(int)), this, SLOT(checkEndPage()));
|
||||||
|
connect(buttons, SIGNAL(accepted()), dialog, SLOT(accept()));
|
||||||
|
connect(buttons, SIGNAL(rejected()), dialog, SLOT(reject()));
|
||||||
|
|
||||||
|
updateDialog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Assure la coherence du dialogue
|
||||||
|
*/
|
||||||
|
void DiagramPrintDialog::updateDialog() {
|
||||||
|
int pages_count;
|
||||||
|
// si on adapte le schema a la page, alors il n'y a qu'une page a imprimer
|
||||||
|
if (fit_diagram_to_page -> isChecked()) {
|
||||||
|
pages_count = 1;
|
||||||
|
} else {
|
||||||
|
pages_count = pagesCount(use_full_page -> isChecked());
|
||||||
|
}
|
||||||
|
options_label -> setText(tr("Nombre total de pages : ") + QString("%1").arg(pages_count));
|
||||||
|
setPagesRangeVisible(pages_count > 1);
|
||||||
|
start_page -> setRange(1, pages_count);
|
||||||
|
end_page -> setRange(1, pages_count);
|
||||||
|
end_page -> setValue(pages_count);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
S'assure que la premiere page ne soit pas superieure a la derniere page
|
||||||
|
*/
|
||||||
|
void DiagramPrintDialog::checkStartPage() {
|
||||||
|
if (start_page -> value() > end_page -> value()) {
|
||||||
|
start_page -> blockSignals(true);
|
||||||
|
start_page -> setValue(end_page -> value());
|
||||||
|
start_page -> blockSignals(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
S'assure que la derniere page ne soit pas inferieure a la premiere page
|
||||||
|
*/
|
||||||
|
void DiagramPrintDialog::checkEndPage() {
|
||||||
|
if (end_page -> value() < start_page -> value()) {
|
||||||
|
end_page -> blockSignals(true);
|
||||||
|
end_page -> setValue(start_page -> value());
|
||||||
|
end_page -> blockSignals(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@param visible true pour afficher les pages, false sinon
|
||||||
|
*/
|
||||||
|
void DiagramPrintDialog::setPagesRangeVisible(bool visible) {
|
||||||
|
range_from_label -> setVisible(visible);
|
||||||
|
start_page -> setVisible(visible);
|
||||||
|
to_label -> setVisible(visible);
|
||||||
|
end_page -> setVisible(visible);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Effectue l'impression elle-meme
|
||||||
|
*/
|
||||||
|
void DiagramPrintDialog::print() {
|
||||||
|
// recupere les informations collectees dans le second dialogue
|
||||||
|
bool full_page = use_full_page -> isChecked();
|
||||||
|
bool fit_page = fit_diagram_to_page -> isChecked();
|
||||||
|
int first_page = start_page -> value();
|
||||||
|
int last_page = end_page -> value();
|
||||||
|
|
||||||
|
// parametre l'imprimante
|
||||||
|
printer -> setFullPage(full_page);
|
||||||
|
|
||||||
|
// QPainter utiliser pour effectuer le rendu
|
||||||
|
QPainter qp(printer);
|
||||||
|
|
||||||
|
// impression physique (!= fichier PDF)
|
||||||
|
if (printer -> outputFileName().isEmpty()) {
|
||||||
|
// lorsqu'on imprime en paysage sur imprimante reelle, il faut pivoter soi-meme le rendu
|
||||||
|
if (printer -> orientation() == QPrinter::Landscape) {
|
||||||
|
qp.rotate(90.0);
|
||||||
|
qp.translate(0.0, -printer -> pageRect().height());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
diagram -> setDisplayGrid(false);
|
||||||
|
diagram -> setDrawTerminals(false);
|
||||||
|
|
||||||
|
if (fit_page) {
|
||||||
|
// impression adaptee sur une seule page
|
||||||
|
diagram -> render(&qp, QRectF(), diagram -> border(), Qt::KeepAspectRatio);
|
||||||
|
} else {
|
||||||
|
// impression sur une ou plusieurs pages
|
||||||
|
QRect diagram_rect = diagram -> border().toRect();
|
||||||
|
QRect printed_area = full_page ? printer -> paperRect() : printer -> pageRect();
|
||||||
|
int used_width = printed_area.width();
|
||||||
|
int used_height = printed_area.height();
|
||||||
|
int h_pages_count = horizontalPagesCount(full_page);
|
||||||
|
int v_pages_count = verticalPagesCount(full_page);
|
||||||
|
|
||||||
|
QVector< QVector< QRect > > pages_grid;
|
||||||
|
// le schema est imprime sur une matrice de feuilles
|
||||||
|
// parcourt les lignes de la matrice
|
||||||
|
int y_offset = 0;
|
||||||
|
for (int i = 0 ; i < v_pages_count ; ++ i) {
|
||||||
|
pages_grid << QVector< QRect >();
|
||||||
|
|
||||||
|
// parcourt les feuilles de la ligne
|
||||||
|
int x_offset = 0;
|
||||||
|
for (int j = 0 ; j < h_pages_count ; ++ j) {
|
||||||
|
pages_grid.last() << QRect(
|
||||||
|
QPoint(x_offset, y_offset),
|
||||||
|
QSize(
|
||||||
|
qMin(used_width, diagram_rect.width() - x_offset),
|
||||||
|
qMin(used_height, diagram_rect.height() - y_offset)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
x_offset += used_width;
|
||||||
|
}
|
||||||
|
|
||||||
|
y_offset += used_height;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ne retient que les pages a imprimer
|
||||||
|
QVector<QRect> pages_to_print;
|
||||||
|
for (int i = 0 ; i < v_pages_count ; ++ i) {
|
||||||
|
for (int j = 0 ; j < h_pages_count ; ++ j) {
|
||||||
|
int page_number = (i * h_pages_count) + j + 1;
|
||||||
|
if (page_number >= first_page && page_number <= last_page) {
|
||||||
|
pages_to_print << pages_grid.at(i).at(j);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// parcourt les pages pour impression
|
||||||
|
for (int i = 0 ; i < pages_to_print.count() ; ++ i) {
|
||||||
|
QRect current_rect(pages_to_print.at(i));
|
||||||
|
diagram -> render(
|
||||||
|
&qp,
|
||||||
|
QRect(QPoint(0,0), current_rect.size()),
|
||||||
|
current_rect.translated(diagram_rect.topLeft()),
|
||||||
|
Qt::KeepAspectRatio
|
||||||
|
);
|
||||||
|
if (i != pages_to_print.count() - 1) {
|
||||||
|
printer -> newPage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
diagram -> setDrawTerminals(true);
|
||||||
|
diagram -> setDisplayGrid(true);
|
||||||
|
}
|
||||||
71
diagramprintdialog.h
Normal file
71
diagramprintdialog.h
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2006-2007 Xavier Guerrin
|
||||||
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
QElectroTech is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
*/
|
||||||
|
#ifndef DIAGRAM_PRINT_DIALOG_H
|
||||||
|
#define DIAGRAM_PRINT_DIALOG_H
|
||||||
|
#include <QtGui>
|
||||||
|
#include "diagram.h"
|
||||||
|
/**
|
||||||
|
Cette classe represente le dialogue de configuration de l'impression d'un
|
||||||
|
schema electrique.
|
||||||
|
Elle se charge egalement de l'impression elle-meme
|
||||||
|
*/
|
||||||
|
class DiagramPrintDialog : public QWidget {
|
||||||
|
Q_OBJECT
|
||||||
|
// Constructeurs, destructeur
|
||||||
|
public:
|
||||||
|
DiagramPrintDialog(Diagram *, QWidget * = 0);
|
||||||
|
virtual ~DiagramPrintDialog();
|
||||||
|
private:
|
||||||
|
DiagramPrintDialog(const DiagramPrintDialog &);
|
||||||
|
|
||||||
|
// methodes
|
||||||
|
public:
|
||||||
|
void setPDFName(const QString &);
|
||||||
|
QString PDFName() const;
|
||||||
|
int pagesCount(bool = false) const;
|
||||||
|
int horizontalPagesCount(bool = false) const;
|
||||||
|
int verticalPagesCount(bool = false) const;
|
||||||
|
void exec();
|
||||||
|
|
||||||
|
private:
|
||||||
|
void buildDialog();
|
||||||
|
void print();
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void updateDialog();
|
||||||
|
void checkStartPage();
|
||||||
|
void checkEndPage();
|
||||||
|
void setPagesRangeVisible(bool);
|
||||||
|
|
||||||
|
// attributs
|
||||||
|
private:
|
||||||
|
Diagram *diagram;
|
||||||
|
QPrinter *printer;
|
||||||
|
QString pdf_name;
|
||||||
|
QDialog *dialog;
|
||||||
|
QLabel *options_label;
|
||||||
|
QLabel *range_from_label;
|
||||||
|
QLabel *to_label;
|
||||||
|
QCheckBox *use_full_page;
|
||||||
|
QCheckBox *fit_diagram_to_page;
|
||||||
|
QSpinBox *start_page;
|
||||||
|
QSpinBox *end_page;
|
||||||
|
QDialogButtonBox *buttons;
|
||||||
|
};
|
||||||
|
#endif
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
@@ -19,6 +19,7 @@
|
|||||||
#include "diagram.h"
|
#include "diagram.h"
|
||||||
#include "customelement.h"
|
#include "customelement.h"
|
||||||
#include "exportdialog.h"
|
#include "exportdialog.h"
|
||||||
|
#include "diagramprintdialog.h"
|
||||||
#include "conductor.h"
|
#include "conductor.h"
|
||||||
#include "diagramcommands.h"
|
#include "diagramcommands.h"
|
||||||
#include "conductorpropertieswidget.h"
|
#include "conductorpropertieswidget.h"
|
||||||
@@ -530,31 +531,20 @@ void DiagramView::dialogExport() {
|
|||||||
Imprime le schema.
|
Imprime le schema.
|
||||||
*/
|
*/
|
||||||
void DiagramView::dialogPrint() {
|
void DiagramView::dialogPrint() {
|
||||||
// initialise l'acces a l'imprimante
|
|
||||||
QPrinter qprin;
|
|
||||||
#ifndef Q_OS_WIN32
|
|
||||||
qprin.setOutputFormat(QPrinter::PdfFormat);
|
|
||||||
#endif
|
|
||||||
qprin.setOrientation(QPrinter::Landscape);
|
|
||||||
qprin.setPageSize(QPrinter::A4);
|
|
||||||
QPrintDialog qpd(&qprin, this);
|
|
||||||
|
|
||||||
if (qpd.exec() == QDialog::Accepted) {
|
// determine un nom possible pour le pdf
|
||||||
QPainter qp(&qprin);
|
QString pdf_file_name;
|
||||||
// impression physique (!= fichier PDF)
|
if (!file_name.isEmpty()) {
|
||||||
if (qprin.outputFileName().isEmpty()) {
|
pdf_file_name = file_name;
|
||||||
// lorsqu'on imprime en paysage sur imprimante reelle, il faut pivoter soi-meme le rendu
|
pdf_file_name.replace(QRegExp("\\.qet$", Qt::CaseInsensitive), "");
|
||||||
if (qprin.orientation() == QPrinter::Landscape) {
|
} else {
|
||||||
qp.rotate(90.0);
|
pdf_file_name = QDir::homePath() + tr("schema");
|
||||||
qp.translate(0.0, -qprin.pageRect().height());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
scene -> setDisplayGrid(false);
|
|
||||||
scene -> setDrawTerminals(false);
|
|
||||||
scene -> render(&qp, QRectF(), scene -> border(), Qt::KeepAspectRatio);
|
|
||||||
scene -> setDrawTerminals(true);
|
|
||||||
scene -> setDisplayGrid(true);
|
|
||||||
}
|
}
|
||||||
|
pdf_file_name += ".pdf";
|
||||||
|
|
||||||
|
DiagramPrintDialog print_dialog(scene, this);
|
||||||
|
print_dialog.setPDFName(pdf_file_name);
|
||||||
|
print_dialog.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ void ElementScene::mouseReleaseEvent(QGraphicsSceneMouseEvent *e) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (e -> button() & Qt::RightButton) {
|
} else if (e -> button() & Qt::RightButton) {
|
||||||
if (behavior == Polygon) {
|
if (behavior == Polygon && current_polygon != NULL) {
|
||||||
behavior = Normal;
|
behavior = Normal;
|
||||||
undo_stack.push(new AddPartCommand(tr("polygone"), this, current_polygon));
|
undo_stack.push(new AddPartCommand(tr("polygone"), this, current_polygon));
|
||||||
current_polygon = NULL;
|
current_polygon = NULL;
|
||||||
|
|||||||
@@ -27,10 +27,8 @@ ElementView::ElementView(ElementScene *scene, QWidget *parent) :
|
|||||||
{
|
{
|
||||||
setInteractive(true);
|
setInteractive(true);
|
||||||
setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
|
setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
|
||||||
//setTransformationAnchor(QGraphicsView::AnchorUnderMouse);
|
|
||||||
setResizeAnchor(QGraphicsView::AnchorUnderMouse);
|
setResizeAnchor(QGraphicsView::AnchorUnderMouse);
|
||||||
//setSceneRect(QRectF(0.0, 0.0, 50.0, 200.0));
|
zoomReset();
|
||||||
scale(4.0, 4.0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Destructeur
|
/// Destructeur
|
||||||
@@ -64,3 +62,67 @@ bool ElementView::event(QEvent *e) {
|
|||||||
}
|
}
|
||||||
return(QGraphicsView::event(e));
|
return(QGraphicsView::event(e));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
Agrandit le schema (+33% = inverse des -25 % de zoomMoins())
|
||||||
|
*/
|
||||||
|
void ElementView::zoomIn() {
|
||||||
|
scale(4.0/3.0, 4.0/3.0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Retrecit le schema (-25% = inverse des +33 % de zoomPlus())
|
||||||
|
*/
|
||||||
|
void ElementView::zoomOut() {
|
||||||
|
scale(0.75, 0.75);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Agrandit ou rectrecit le schema de facon a ce que tous les elements du
|
||||||
|
schema soient visibles a l'ecran. S'il n'y a aucun element sur le schema,
|
||||||
|
le zoom est reinitialise
|
||||||
|
*/
|
||||||
|
void ElementView::zoomFit() {
|
||||||
|
adjustSceneRect();
|
||||||
|
fitInView(sceneRect(), Qt::KeepAspectRatio);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Reinitialise le zoom
|
||||||
|
*/
|
||||||
|
void ElementView::zoomReset() {
|
||||||
|
resetMatrix();
|
||||||
|
scale(4.0, 4.0);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Ajuste le sceneRect (zone du schema visualisee par l'ElementView) afin que
|
||||||
|
celui inclut a la fois les parties dans et en dehors du cadre et le cadre
|
||||||
|
lui-meme.
|
||||||
|
*/
|
||||||
|
void ElementView::adjustSceneRect() {
|
||||||
|
QRectF old_scene_rect = scene_ -> sceneRect();
|
||||||
|
QRectF new_scene_rect = scene_ -> sceneContent();
|
||||||
|
setSceneRect(new_scene_rect);
|
||||||
|
|
||||||
|
// met a jour la scene
|
||||||
|
scene_ -> update(old_scene_rect.united(new_scene_rect));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Gere les actions liees a la rollette de la souris
|
||||||
|
@param e QWheelEvent decrivant l'evenement rollette
|
||||||
|
*/
|
||||||
|
void ElementView::wheelEvent(QWheelEvent *e) {
|
||||||
|
// si la touche Ctrl est enfoncee, on zoome / dezoome
|
||||||
|
if (e -> modifiers() & Qt::ControlModifier) {
|
||||||
|
if (e -> delta() > 0) {
|
||||||
|
zoomIn();
|
||||||
|
} else {
|
||||||
|
zoomOut();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
QAbstractScrollArea::wheelEvent(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -39,6 +39,15 @@ class ElementView : public QGraphicsView {
|
|||||||
void setScene(ElementScene *);
|
void setScene(ElementScene *);
|
||||||
protected:
|
protected:
|
||||||
bool event(QEvent *);
|
bool event(QEvent *);
|
||||||
|
void wheelEvent(QWheelEvent *);
|
||||||
|
|
||||||
|
// slots
|
||||||
|
public slots:
|
||||||
|
void zoomIn();
|
||||||
|
void zoomOut();
|
||||||
|
void zoomFit();
|
||||||
|
void zoomReset();
|
||||||
|
void adjustSceneRect();
|
||||||
|
|
||||||
//attributs
|
//attributs
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -251,3 +251,13 @@ int PartArc::startAngle() const {
|
|||||||
bool PartArc::isUseless() const {
|
bool PartArc::isUseless() const {
|
||||||
return(rect().isNull() || !angle());
|
return(rect().isNull() || !angle());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@return le rectangle delimitant cette partie.
|
||||||
|
*/
|
||||||
|
QRectF PartArc::boundingRect() const {
|
||||||
|
qreal adjust = 1.5;
|
||||||
|
QRectF r(QGraphicsEllipseItem::boundingRect().normalized());
|
||||||
|
r.adjust(-adjust, -adjust, adjust, adjust);
|
||||||
|
return(r);
|
||||||
|
}
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ class PartArc : public QGraphicsEllipseItem, public CustomElementGraphicPart {
|
|||||||
virtual const QDomElement toXml(QDomDocument &) const;
|
virtual const QDomElement toXml(QDomDocument &) const;
|
||||||
virtual void fromXml(const QDomElement &);
|
virtual void fromXml(const QDomElement &);
|
||||||
virtual QPointF sceneTopLeft() const;
|
virtual QPointF sceneTopLeft() const;
|
||||||
|
virtual QRectF boundingRect() const;
|
||||||
virtual void setAngle(int);
|
virtual void setAngle(int);
|
||||||
virtual void setStartAngle(int);
|
virtual void setStartAngle(int);
|
||||||
virtual int angle() const;
|
virtual int angle() const;
|
||||||
|
|||||||
@@ -187,3 +187,13 @@ QPointF PartEllipse::sceneTopLeft() const {
|
|||||||
bool PartEllipse::isUseless() const {
|
bool PartEllipse::isUseless() const {
|
||||||
return(rect().isNull());
|
return(rect().isNull());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@return le rectangle delimitant cette partie.
|
||||||
|
*/
|
||||||
|
QRectF PartEllipse::boundingRect() const {
|
||||||
|
qreal adjust = 1.5;
|
||||||
|
QRectF r(QGraphicsEllipseItem::boundingRect().normalized());
|
||||||
|
r.adjust(-adjust, -adjust, adjust, adjust);
|
||||||
|
return(r);
|
||||||
|
}
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ class PartEllipse : public QGraphicsEllipseItem, public CustomElementGraphicPart
|
|||||||
virtual const QDomElement toXml(QDomDocument &) const;
|
virtual const QDomElement toXml(QDomDocument &) const;
|
||||||
virtual void fromXml(const QDomElement &);
|
virtual void fromXml(const QDomElement &);
|
||||||
virtual QPointF sceneTopLeft() const;
|
virtual QPointF sceneTopLeft() const;
|
||||||
|
virtual QRectF boundingRect() const;
|
||||||
virtual void setProperty(const QString &, const QVariant &);
|
virtual void setProperty(const QString &, const QVariant &);
|
||||||
virtual QVariant property(const QString &);
|
virtual QVariant property(const QString &);
|
||||||
virtual bool isUseless() const;
|
virtual bool isUseless() const;
|
||||||
|
|||||||
@@ -251,4 +251,3 @@ QRectF PartLine::boundingRect() const {
|
|||||||
bool PartLine::isUseless() const {
|
bool PartLine::isUseless() const {
|
||||||
return(sceneP1() == sceneP2());
|
return(sceneP1() == sceneP2());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -163,3 +163,13 @@ bool PartPolygon::isUseless() const {
|
|||||||
|
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@return le rectangle delimitant cette partie.
|
||||||
|
*/
|
||||||
|
QRectF PartPolygon::boundingRect() const {
|
||||||
|
qreal adjust = 1.5;
|
||||||
|
QRectF r(QGraphicsPolygonItem::boundingRect());
|
||||||
|
r.adjust(-adjust, -adjust, adjust, adjust);
|
||||||
|
return(r);
|
||||||
|
}
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ class PartPolygon : public QGraphicsPolygonItem, public CustomElementGraphicPart
|
|||||||
virtual QString name() const { return(QObject::tr("polygone")); }
|
virtual QString name() const { return(QObject::tr("polygone")); }
|
||||||
void fromXml(const QDomElement &);
|
void fromXml(const QDomElement &);
|
||||||
const QDomElement toXml(QDomDocument &) const;
|
const QDomElement toXml(QDomDocument &) const;
|
||||||
|
virtual QRectF boundingRect() const;
|
||||||
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
|
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
|
||||||
void setClosed(bool c);
|
void setClosed(bool c);
|
||||||
bool isClosed() const;
|
bool isClosed() const;
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "parttext.h"
|
#include "parttext.h"
|
||||||
#include "texteditor.h"
|
#include "texteditor.h"
|
||||||
|
#include "editorcommands.h"
|
||||||
#include "elementscene.h"
|
#include "elementscene.h"
|
||||||
#include "qetapp.h"
|
#include "qetapp.h"
|
||||||
|
|
||||||
@@ -126,6 +127,18 @@ QPointF PartText::margin() const {
|
|||||||
*/
|
*/
|
||||||
void PartText::focusOutEvent(QFocusEvent *e) {
|
void PartText::focusOutEvent(QFocusEvent *e) {
|
||||||
QGraphicsTextItem::focusOutEvent(e);
|
QGraphicsTextItem::focusOutEvent(e);
|
||||||
|
if (previous_text != toPlainText()) {
|
||||||
|
undoStack().push(
|
||||||
|
new ChangePartCommand(
|
||||||
|
TextEditor::tr("texte") + " " + name(),
|
||||||
|
this,
|
||||||
|
"text",
|
||||||
|
previous_text,
|
||||||
|
toPlainText()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
previous_text = toPlainText();
|
||||||
|
}
|
||||||
setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
|
setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -136,6 +149,7 @@ void PartText::focusOutEvent(QFocusEvent *e) {
|
|||||||
void PartText::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *e) {
|
void PartText::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *e) {
|
||||||
setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable | QGraphicsItem::ItemIsFocusable);
|
setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable | QGraphicsItem::ItemIsFocusable);
|
||||||
setTextInteractionFlags(Qt::TextEditorInteraction);
|
setTextInteractionFlags(Qt::TextEditorInteraction);
|
||||||
|
previous_text = toPlainText();
|
||||||
QGraphicsTextItem::mouseDoubleClickEvent(e);
|
QGraphicsTextItem::mouseDoubleClickEvent(e);
|
||||||
setFocus(Qt::MouseFocusReason);
|
setFocus(Qt::MouseFocusReason);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,5 +63,6 @@ class PartText : public QGraphicsTextItem, public CustomElementPart {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
QPointF margin() const;
|
QPointF margin() const;
|
||||||
|
QString previous_text;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "parttextfield.h"
|
#include "parttextfield.h"
|
||||||
#include "textfieldeditor.h"
|
#include "textfieldeditor.h"
|
||||||
|
#include "editorcommands.h"
|
||||||
#include "qetapp.h"
|
#include "qetapp.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -144,6 +145,18 @@ QPointF PartTextField::margin() const {
|
|||||||
*/
|
*/
|
||||||
void PartTextField::focusOutEvent(QFocusEvent *e) {
|
void PartTextField::focusOutEvent(QFocusEvent *e) {
|
||||||
QGraphicsTextItem::focusOutEvent(e);
|
QGraphicsTextItem::focusOutEvent(e);
|
||||||
|
if (previous_text != toPlainText()) {
|
||||||
|
undoStack().push(
|
||||||
|
new ChangePartCommand(
|
||||||
|
TextFieldEditor::tr("texte") + " " + name(),
|
||||||
|
this,
|
||||||
|
"text",
|
||||||
|
previous_text,
|
||||||
|
toPlainText()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
previous_text = toPlainText();
|
||||||
|
}
|
||||||
setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
|
setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -154,6 +167,7 @@ void PartTextField::focusOutEvent(QFocusEvent *e) {
|
|||||||
void PartTextField::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *e) {
|
void PartTextField::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *e) {
|
||||||
setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable | QGraphicsItem::ItemIsFocusable);
|
setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable | QGraphicsItem::ItemIsFocusable);
|
||||||
setTextInteractionFlags(Qt::TextEditorInteraction);
|
setTextInteractionFlags(Qt::TextEditorInteraction);
|
||||||
|
previous_text = toPlainText();
|
||||||
QGraphicsTextItem::mouseDoubleClickEvent(e);
|
QGraphicsTextItem::mouseDoubleClickEvent(e);
|
||||||
setFocus(Qt::MouseFocusReason);
|
setFocus(Qt::MouseFocusReason);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,5 +69,6 @@ class PartTextField : public QGraphicsTextItem, public CustomElementPart {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
QPointF margin() const;
|
QPointF margin() const;
|
||||||
|
QString previous_text;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -69,6 +69,10 @@ void QETElementEditor::setupActions() {
|
|||||||
deselectall = new QAction( tr("D\351s\351lectionner tout"), this);
|
deselectall = new QAction( tr("D\351s\351lectionner tout"), this);
|
||||||
inv_select = new QAction( tr("Inverser la s\351lection"), this);
|
inv_select = new QAction( tr("Inverser la s\351lection"), this);
|
||||||
edit_delete = new QAction(QIcon(":/ico/delete.png"), tr("&Supprimer"), this);
|
edit_delete = new QAction(QIcon(":/ico/delete.png"), tr("&Supprimer"), this);
|
||||||
|
zoom_in = new QAction(QIcon(":/ico/viewmag+.png"), tr("Zoom avant"), this);
|
||||||
|
zoom_out = new QAction(QIcon(":/ico/viewmag-.png"), tr("Zoom arri\350re"), this);
|
||||||
|
zoom_fit = new QAction(QIcon(":/ico/viewmagfit.png"), tr("Zoom adapt\351"), this);
|
||||||
|
zoom_reset = new QAction(QIcon(":/ico/viewmag.png"), tr("Pas de zoom"), this);
|
||||||
edit_size_hs = new QAction(QIcon(":/ico/hotspot.png"), tr("\311diter la taille et le point de saisie"), this);
|
edit_size_hs = new QAction(QIcon(":/ico/hotspot.png"), tr("\311diter la taille et le point de saisie"), this);
|
||||||
edit_names = new QAction(QIcon(":/ico/names.png"), tr("\311diter les noms"), this);
|
edit_names = new QAction(QIcon(":/ico/names.png"), tr("\311diter les noms"), this);
|
||||||
edit_ori = new QAction(QIcon(":/ico/orientations.png"), tr("\311diter les orientations"), this);
|
edit_ori = new QAction(QIcon(":/ico/orientations.png"), tr("\311diter les orientations"), this);
|
||||||
@@ -96,12 +100,18 @@ void QETElementEditor::setupActions() {
|
|||||||
new_element -> setShortcut(QKeySequence::New);
|
new_element -> setShortcut(QKeySequence::New);
|
||||||
open -> setShortcut(QKeySequence::Open);
|
open -> setShortcut(QKeySequence::Open);
|
||||||
save -> setShortcut(QKeySequence::Save);
|
save -> setShortcut(QKeySequence::Save);
|
||||||
reload -> setShortcut(QKeySequence::Refresh);
|
reload -> setShortcut(Qt::Key_F5);
|
||||||
quit -> setShortcut(QKeySequence(tr("Ctrl+Q")));
|
quit -> setShortcut(QKeySequence(tr("Ctrl+Q")));
|
||||||
selectall -> setShortcut(QKeySequence::SelectAll);
|
selectall -> setShortcut(QKeySequence::SelectAll);
|
||||||
deselectall -> setShortcut(QKeySequence(tr("Ctrl+Shift+A")));
|
deselectall -> setShortcut(QKeySequence(tr("Ctrl+Shift+A")));
|
||||||
inv_select -> setShortcut(QKeySequence(tr("Ctrl+I")));
|
inv_select -> setShortcut(QKeySequence(tr("Ctrl+I")));
|
||||||
edit_delete -> setShortcut(QKeySequence(tr("Suppr")));
|
edit_delete -> setShortcut(QKeySequence(tr("Suppr")));
|
||||||
|
|
||||||
|
zoom_in -> setShortcut(QKeySequence::ZoomIn);
|
||||||
|
zoom_out -> setShortcut(QKeySequence::ZoomOut);
|
||||||
|
zoom_fit -> setShortcut(QKeySequence(tr("Ctrl+9")));
|
||||||
|
zoom_reset -> setShortcut(QKeySequence(tr("Ctrl+0")));
|
||||||
|
|
||||||
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")));
|
||||||
@@ -120,6 +130,10 @@ void QETElementEditor::setupActions() {
|
|||||||
connect(selectall, SIGNAL(triggered()), ce_scene, SLOT(slot_selectAll()));
|
connect(selectall, SIGNAL(triggered()), ce_scene, SLOT(slot_selectAll()));
|
||||||
connect(deselectall, SIGNAL(triggered()), ce_scene, SLOT(slot_deselectAll()));
|
connect(deselectall, SIGNAL(triggered()), ce_scene, SLOT(slot_deselectAll()));
|
||||||
connect(inv_select, SIGNAL(triggered()), ce_scene, SLOT(slot_invertSelection()));
|
connect(inv_select, SIGNAL(triggered()), ce_scene, SLOT(slot_invertSelection()));
|
||||||
|
connect(zoom_in, SIGNAL(triggered()), ce_view, SLOT(zoomIn()));
|
||||||
|
connect(zoom_out, SIGNAL(triggered()), ce_view, SLOT(zoomOut()));
|
||||||
|
connect(zoom_fit, SIGNAL(triggered()), ce_view, SLOT(zoomFit()));
|
||||||
|
connect(zoom_reset, SIGNAL(triggered()), ce_view, SLOT(zoomReset()));
|
||||||
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()));
|
||||||
@@ -184,12 +198,48 @@ void QETElementEditor::setupActions() {
|
|||||||
parts_toolbar -> addAction(xml_preview);
|
parts_toolbar -> addAction(xml_preview);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
main_toolbar = new QToolBar(tr("Outils"), this);
|
||||||
|
main_toolbar -> setObjectName("main_toolbar");
|
||||||
|
view_toolbar = new QToolBar(tr("Affichage"), this);
|
||||||
|
view_toolbar -> setObjectName("display");
|
||||||
|
element_toolbar = new QToolBar(tr("\311l\351ment"), this);
|
||||||
|
element_toolbar -> setObjectName("element_toolbar");
|
||||||
|
depth_toolbar = new QToolBar(tr("Profondeur"), this);
|
||||||
|
depth_toolbar -> setObjectName("depth_toolbar");
|
||||||
|
|
||||||
|
main_toolbar -> addAction(new_element);
|
||||||
|
main_toolbar -> addAction(open);
|
||||||
|
main_toolbar -> addAction(save);
|
||||||
|
main_toolbar -> addAction(save_as);
|
||||||
|
main_toolbar -> addAction(reload);
|
||||||
|
main_toolbar -> addSeparator();
|
||||||
|
main_toolbar -> addAction(undo);
|
||||||
|
main_toolbar -> addAction(redo);
|
||||||
|
main_toolbar -> addSeparator();
|
||||||
|
main_toolbar -> addAction(edit_delete);
|
||||||
|
view_toolbar -> addAction(zoom_in);
|
||||||
|
view_toolbar -> addAction(zoom_out);
|
||||||
|
view_toolbar -> addAction(zoom_fit);
|
||||||
|
view_toolbar -> addAction(zoom_reset);
|
||||||
|
element_toolbar -> addAction(edit_size_hs);
|
||||||
|
element_toolbar -> addAction(edit_names);
|
||||||
|
element_toolbar -> addAction(edit_ori);
|
||||||
|
depth_toolbar -> addAction(edit_forward);
|
||||||
|
depth_toolbar -> addAction(edit_raise);
|
||||||
|
depth_toolbar -> addAction(edit_lower);
|
||||||
|
depth_toolbar -> addAction(edit_backward);
|
||||||
|
|
||||||
|
addToolBar(Qt::TopToolBarArea, main_toolbar);
|
||||||
|
addToolBar(Qt::TopToolBarArea, view_toolbar);
|
||||||
|
addToolBar(Qt::TopToolBarArea, element_toolbar);
|
||||||
|
addToolBar(Qt::TopToolBarArea, depth_toolbar);
|
||||||
addToolBar(Qt::LeftToolBarArea, parts_toolbar);
|
addToolBar(Qt::LeftToolBarArea, parts_toolbar);
|
||||||
|
|
||||||
connect(ce_scene, SIGNAL(selectionChanged()), this, SLOT(slot_updateInformations()));
|
connect(ce_scene, SIGNAL(selectionChanged()), this, SLOT(slot_updateInformations()));
|
||||||
connect(ce_scene, SIGNAL(selectionChanged()), this, SLOT(slot_updateMenus()));
|
connect(ce_scene, SIGNAL(selectionChanged()), this, SLOT(slot_updateMenus()));
|
||||||
connect(&(ce_scene -> undoStack()), SIGNAL(cleanChanged(bool)), this, SLOT(slot_updateMenus()));
|
connect(&(ce_scene -> undoStack()), SIGNAL(cleanChanged(bool)), this, SLOT(slot_updateMenus()));
|
||||||
connect(&(ce_scene -> undoStack()), SIGNAL(cleanChanged(bool)), this, SLOT(slot_updateTitle()));
|
connect(&(ce_scene -> undoStack()), SIGNAL(cleanChanged(bool)), this, SLOT(slot_updateTitle()));
|
||||||
|
connect(&(ce_scene -> undoStack()), SIGNAL(indexChanged(int)), this, SLOT(slot_updatePartsList()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -470,6 +520,7 @@ void QETElementEditor::fromFile(const QString &filepath) {
|
|||||||
|
|
||||||
// memorise le fichier
|
// memorise le fichier
|
||||||
setFileName(filepath);
|
setFileName(filepath);
|
||||||
|
slot_updateMenus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -59,10 +59,11 @@ class QETElementEditor : public QMainWindow {
|
|||||||
/// actions du menu edition
|
/// actions du menu edition
|
||||||
QAction *selectall, *deselectall, *inv_select;
|
QAction *selectall, *deselectall, *inv_select;
|
||||||
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;
|
||||||
/// barre d'outils
|
/// barres d'outils
|
||||||
QToolBar *parts_toolbar;
|
QToolBar *parts_toolbar, *main_toolbar, *view_toolbar, *depth_toolbar, *element_toolbar;
|
||||||
/// actions de la barre d'outils
|
/// actions de la barre d'outils
|
||||||
QActionGroup *parts;
|
QActionGroup *parts;
|
||||||
QAction *move, *add_line, *add_circle, *add_ellipse, *add_polygon, *add_text;
|
QAction *move, *add_line, *add_circle, *add_ellipse, *add_polygon, *add_text;
|
||||||
|
|||||||
16
element.cpp
16
element.cpp
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
@@ -49,7 +49,7 @@ void Element::paint(QPainter *painter, const QStyleOptionGraphicsItem *options,
|
|||||||
|
|
||||||
#ifdef Q_WS_X11
|
#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 = !QString(qVersion()).startsWith("4.4");
|
static bool must_correct_rendering_bug = QETApp::settings().value("correct-rendering", true).toBool();
|
||||||
if (must_correct_rendering_bug) {
|
if (must_correct_rendering_bug) {
|
||||||
Diagram *dia = diagram();
|
Diagram *dia = diagram();
|
||||||
if (dia && options -> levelOfDetail == 1.0 && widget) {
|
if (dia && options -> levelOfDetail == 1.0 && widget) {
|
||||||
@@ -258,11 +258,21 @@ void Element::setPos(qreal x, qreal y) {
|
|||||||
setPos(QPointF(x, y));
|
setPos(QPointF(x, y));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Gere l'enfoncement d'un bouton de la souris
|
||||||
|
*/
|
||||||
|
void Element::mousePressEvent(QGraphicsSceneMouseEvent *e) {
|
||||||
|
if (!isSelected() && e -> modifiers() & Qt::ControlModifier) {
|
||||||
|
setSelected(true);
|
||||||
|
}
|
||||||
|
QGraphicsItem::mousePressEvent(e);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Gere les mouvements de souris lies a l'element
|
Gere les mouvements de souris lies a l'element
|
||||||
*/
|
*/
|
||||||
void Element::mouseMoveEvent(QGraphicsSceneMouseEvent *e) {
|
void Element::mouseMoveEvent(QGraphicsSceneMouseEvent *e) {
|
||||||
if (e -> buttons() & Qt::LeftButton) {
|
if (isSelected() && e -> buttons() & Qt::LeftButton) {
|
||||||
QPointF oldPos = pos();
|
QPointF oldPos = pos();
|
||||||
setPos(mapToParent(e -> pos()) - matrix().map(e -> buttonDownPos(Qt::LeftButton)));
|
setPos(mapToParent(e -> pos()) - matrix().map(e -> buttonDownPos(Qt::LeftButton)));
|
||||||
if (Diagram *diagram_ptr = diagram()) {
|
if (Diagram *diagram_ptr = diagram()) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
@@ -114,6 +114,7 @@ class Element : public QGraphicsItem {
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
void drawAxes(QPainter *, const QStyleOptionGraphicsItem *);
|
void drawAxes(QPainter *, const QStyleOptionGraphicsItem *);
|
||||||
|
void mousePressEvent(QGraphicsSceneMouseEvent *);
|
||||||
void mouseMoveEvent(QGraphicsSceneMouseEvent *);
|
void mouseMoveEvent(QGraphicsSceneMouseEvent *);
|
||||||
void mouseReleaseEvent(QGraphicsSceneMouseEvent *);
|
void mouseReleaseEvent(QGraphicsSceneMouseEvent *);
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2006-2007 Xavier Guerrin
|
Copyright 2006-2008 Xavier Guerrin
|
||||||
This file is part of QElectroTech.
|
This file is part of QElectroTech.
|
||||||
|
|
||||||
QElectroTech is free software: you can redistribute it and/or modify
|
QElectroTech is free software: you can redistribute it and/or modify
|
||||||
|
|||||||
15
elements/automatisme/lader/input/entree.elmt
Normal file
15
elements/automatisme/lader/input/entree.elmt
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<definition width="50" version="0.1" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Input</name>
|
||||||
|
<name lang="fr" >Entrée</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<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 antialias="false" 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 antialias="false" 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="w" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
16
elements/automatisme/lader/input/entree_fn.elmt
Normal file
16
elements/automatisme/lader/input/entree_fn.elmt
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<definition width="50" version="0.1" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Input (down front)</name>
|
||||||
|
<name lang="fr" >Entrée (front descendant)</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<text x="-4.25" y="5.25" size="9" text="N" />
|
||||||
|
<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 antialias="false" 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 antialias="false" 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="w" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
16
elements/automatisme/lader/input/entree_fp.elmt
Normal file
16
elements/automatisme/lader/input/entree_fp.elmt
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<definition width="50" version="0.1" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Input (up front)</name>
|
||||||
|
<name lang="fr" >Entrée (front montant)</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<text x="-3.5" y="5.25" size="9" text="P" />
|
||||||
|
<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 antialias="false" 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 antialias="false" 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="w" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
16
elements/automatisme/lader/input/entree_nf.elmt
Normal file
16
elements/automatisme/lader/input/entree_nf.elmt
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<definition width="50" version="0.1" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Input (negative logic)</name>
|
||||||
|
<name lang="fr" >Entrée (NF)</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<line antialias="true" 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="_" />
|
||||||
|
<line antialias="false" 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 antialias="false" 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" />
|
||||||
|
<terminal x="24" y="0" orientation="e" />
|
||||||
|
<terminal x="-24" y="0" orientation="w" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
6
elements/automatisme/lader/input/qet_directory
Normal file
6
elements/automatisme/lader/input/qet_directory
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<qet-directory>
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Inputs</name>
|
||||||
|
<name lang="fr" >Entrées</name>
|
||||||
|
</names>
|
||||||
|
</qet-directory>
|
||||||
6
elements/automatisme/lader/output/qet_directory
Normal file
6
elements/automatisme/lader/output/qet_directory
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<qet-directory>
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Outputs</name>
|
||||||
|
<name lang="fr" >Sorties</name>
|
||||||
|
</names>
|
||||||
|
</qet-directory>
|
||||||
14
elements/automatisme/lader/output/sortie.elmt
Normal file
14
elements/automatisme/lader/output/sortie.elmt
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<definition width="50" version="0.1" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Output</name>
|
||||||
|
<name lang="fr" >Sortie</name>
|
||||||
|
</names>
|
||||||
|
<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" />
|
||||||
|
<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" />
|
||||||
|
<line antialias="false" 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" />
|
||||||
|
<terminal x="-24" y="0" orientation="w" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
15
elements/automatisme/lader/output/sortie_r.elmt
Normal file
15
elements/automatisme/lader/output/sortie_r.elmt
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<definition width="50" version="0.1" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Output (reset)</name>
|
||||||
|
<name lang="fr" >Sortie (reset)</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<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" />
|
||||||
|
<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" />
|
||||||
|
<line antialias="false" 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" />
|
||||||
|
<terminal x="-24" y="0" orientation="w" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
15
elements/automatisme/lader/output/sortie_s.elmt
Normal file
15
elements/automatisme/lader/output/sortie_s.elmt
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<definition width="50" version="0.1" hotspot_x="25" hotspot_y="30" height="40" type="element" orientation="dnnn" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Output (set)</name>
|
||||||
|
<name lang="fr" >Sortie (set)</name>
|
||||||
|
</names>
|
||||||
|
<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" />
|
||||||
|
<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" />
|
||||||
|
<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 antialias="false" 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" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
6
elements/automatisme/lader/qet_directory
Normal file
6
elements/automatisme/lader/qet_directory
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<qet-directory>
|
||||||
|
<names>
|
||||||
|
<name lang="fr">Ladder</name>
|
||||||
|
<name lang="en">Ladder</name>
|
||||||
|
</names>
|
||||||
|
</qet-directory>
|
||||||
6
elements/automatisme/qet_directory
Normal file
6
elements/automatisme/qet_directory
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<qet-directory>
|
||||||
|
<names>
|
||||||
|
<name lang="fr">Automatisme</name>
|
||||||
|
<name lang="en">Automatism</name>
|
||||||
|
</names>
|
||||||
|
</qet-directory>
|
||||||
6
elements/capteurs/qet_directory
Normal file
6
elements/capteurs/qet_directory
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<qet-directory>
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Transducers</name>
|
||||||
|
<name lang="fr" >Capteurs</name>
|
||||||
|
</names>
|
||||||
|
</qet-directory>
|
||||||
6
elements/capteurs/sondes/qet_directory
Normal file
6
elements/capteurs/sondes/qet_directory
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<qet-directory>
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Sensors</name>
|
||||||
|
<name lang="fr" >Sondes</name>
|
||||||
|
</names>
|
||||||
|
</qet-directory>
|
||||||
6
elements/capteurs/sondes/tores_de_courant/qet_directory
Normal file
6
elements/capteurs/sondes/tores_de_courant/qet_directory
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<qet-directory>
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Current toroidal core</name>
|
||||||
|
<name lang="fr" >Tores de courant</name>
|
||||||
|
</names>
|
||||||
|
</qet-directory>
|
||||||
17
elements/capteurs/sondes/tores_de_courant/tore1.elmt
Normal file
17
elements/capteurs/sondes/tores_de_courant/tore1.elmt
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<definition width="40" version="0.1" hotspot_x="15" hotspot_y="25" height="40" type="element" orientation="dyyy" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >1-pole toroidal core</name>
|
||||||
|
<name lang="fr" >Tore 1 pôle</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="5" y2="-10" x2="5" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="14" y2="-10" x2="5" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="14" y2="0" x2="10" />
|
||||||
|
<ellipse width="20" x="-10" y="-2.5" antialias="true" height="5" style="line-style:dashed;line-weight:thin;filling:white;color:black" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-15" x1="0" y2="10" x2="0" />
|
||||||
|
<terminal x="0" y="-16" orientation="n" />
|
||||||
|
<terminal x="0" y="11" orientation="s" />
|
||||||
|
<terminal x="15" y="0" orientation="e" />
|
||||||
|
<terminal x="15" y="-10" orientation="e" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
20
elements/capteurs/sondes/tores_de_courant/tore2.elmt
Normal file
20
elements/capteurs/sondes/tores_de_courant/tore2.elmt
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<definition width="50" version="0.1" hotspot_x="25" hotspot_y="25" height="40" type="element" orientation="dyyy" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >2-poles toroidal core</name>
|
||||||
|
<name lang="fr" >Tore 2 pôles</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="5" y2="-10" x2="5" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="14" y2="-10" x2="5" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="14" y2="0" x2="10" />
|
||||||
|
<ellipse width="30" x="-20" y="-2.5" antialias="true" height="5" style="line-style:dashed;line-weight:thin;filling:white;color:black" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-15" x1="-10" y2="10" x2="-10" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-15" x1="0" y2="10" x2="0" />
|
||||||
|
<terminal x="0" y="-16" orientation="n" />
|
||||||
|
<terminal x="0" y="11" orientation="s" />
|
||||||
|
<terminal x="15" y="0" orientation="e" />
|
||||||
|
<terminal x="15" y="-10" orientation="e" />
|
||||||
|
<terminal x="-10" y="-16" orientation="n" />
|
||||||
|
<terminal x="-10" y="11" orientation="s" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
23
elements/capteurs/sondes/tores_de_courant/tore3.elmt
Normal file
23
elements/capteurs/sondes/tores_de_courant/tore3.elmt
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<definition width="60" version="0.1" hotspot_x="35" hotspot_y="25" height="40" type="element" orientation="dyyy" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >3-poles toroidal core</name>
|
||||||
|
<name lang="fr" >Tore 3 pôles</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="5" y2="-10" x2="5" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="14" y2="-10" x2="5" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="14" y2="0" x2="10" />
|
||||||
|
<ellipse width="40" x="-30" y="-2.5" antialias="true" height="5" style="line-style:dashed;line-weight:thin;filling:white;color:black" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-15" x1="-10" y2="10" x2="-10" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-15" x1="0" y2="10" x2="0" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-15" x1="-20" y2="10" x2="-20" />
|
||||||
|
<terminal x="0" y="-16" orientation="n" />
|
||||||
|
<terminal x="0" y="11" orientation="s" />
|
||||||
|
<terminal x="15" y="0" orientation="e" />
|
||||||
|
<terminal x="15" y="-10" orientation="e" />
|
||||||
|
<terminal x="-10" y="-16" orientation="n" />
|
||||||
|
<terminal x="-10" y="11" orientation="s" />
|
||||||
|
<terminal x="-20" y="-16" orientation="n" />
|
||||||
|
<terminal x="-20" y="11" orientation="s" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
26
elements/capteurs/sondes/tores_de_courant/tore4.elmt
Normal file
26
elements/capteurs/sondes/tores_de_courant/tore4.elmt
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<definition width="70" version="0.1" hotspot_x="45" hotspot_y="25" height="40" type="element" orientation="dyyy" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >4-poles toroidal core</name>
|
||||||
|
<name lang="fr" >Tore 4 pôles</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="5" y2="-10" x2="5" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="14" y2="-10" x2="5" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="14" y2="0" x2="10" />
|
||||||
|
<ellipse width="50" x="-40" y="-2.5" antialias="true" height="5" style="line-style:dashed;line-weight:thin;filling:white;color:black" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-15" x1="-10" y2="10" x2="-10" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-15" x1="0" y2="10" x2="0" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-15" x1="-30" y2="10" x2="-30" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-15" x1="-20" y2="10" x2="-20" />
|
||||||
|
<terminal x="0" y="-16" orientation="n" />
|
||||||
|
<terminal x="0" y="11" orientation="s" />
|
||||||
|
<terminal x="15" y="0" orientation="e" />
|
||||||
|
<terminal x="15" y="-10" orientation="e" />
|
||||||
|
<terminal x="-10" y="-16" orientation="n" />
|
||||||
|
<terminal x="-10" y="11" orientation="s" />
|
||||||
|
<terminal x="-30" y="-16" orientation="n" />
|
||||||
|
<terminal x="-20" y="-16" orientation="n" />
|
||||||
|
<terminal x="-30" y="11" orientation="s" />
|
||||||
|
<terminal x="-20" y="11" orientation="s" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
11
elements/contacts/bornes/Bornes_e.elmt
Normal file
11
elements/contacts/bornes/Bornes_e.elmt
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<definition width="10" version="0.1" hotspot_x="5" hotspot_y="25" height="30" type="element" orientation="dyyy" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Input terminal</name>
|
||||||
|
<name lang="fr" >Borne entrée</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-5" x1="-4" y2="1" x2="0" y3="-5" x3="4" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="0" x2="0" />
|
||||||
|
<terminal x="0" y="-21" orientation="n" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
14
elements/contacts/bornes/Bornes_es.elmt
Normal file
14
elements/contacts/bornes/Bornes_es.elmt
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<definition width="10" version="0.1" hotspot_x="5" hotspot_y="25" height="50" type="element" orientation="dyyy" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Dual terminal</name>
|
||||||
|
<name lang="fr" >Double borne</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-1" x1="-4" y2="5" x2="0" y3="-1" x3="4" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-5" x1="-4" y2="1" x2="0" y3="-5" x3="4" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="5.5" x1="0" y2="20" x2="0" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="0" x2="0" />
|
||||||
|
<terminal x="0" y="-21" orientation="n" />
|
||||||
|
<terminal x="0" y="21" orientation="s" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
11
elements/contacts/bornes/Bornes_s.elmt
Normal file
11
elements/contacts/bornes/Bornes_s.elmt
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<definition width="10" version="0.1" hotspot_x="5" hotspot_y="5" height="30" type="element" orientation="dyyy" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Output terminal</name>
|
||||||
|
<name lang="fr" >Borne sortie</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-1" x1="-4" y2="5" x2="0" y3="-1" x3="4" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="5.5" x1="0" y2="20" x2="0" />
|
||||||
|
<terminal x="0" y="21" orientation="s" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
15
elements/contacts/bornes/borne_continuite.elmt
Normal file
15
elements/contacts/bornes/borne_continuite.elmt
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<definition width="30" version="0.1" hotspot_x="10" hotspot_y="20" height="40" type="element" ic="true" orientation="dyyy" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Terminal block</name>
|
||||||
|
<name lang="fr" >Borne continuité</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<input x="5" y="8" size="7" text="_" />
|
||||||
|
<input x="5" y="-5" size="10" text="_" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="0" y2="3" x2="0" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="0" y2="-3" x2="0" />
|
||||||
|
<circle x="-2.5" y="-2.5" antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" diameter="5" />
|
||||||
|
<terminal x="0" y="-10" orientation="n" />
|
||||||
|
<terminal x="0" y="10" orientation="s" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
13
elements/contacts/bornes/borne_finale.elmt
Normal file
13
elements/contacts/bornes/borne_finale.elmt
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<definition width="30" version="0.1" hotspot_x="10" hotspot_y="20" height="40" type="element" ic="true" orientation="dyyy" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Terminal block</name>
|
||||||
|
<name lang="fr" >Borne finale</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<input x="5" y="8" size="7" text="_" />
|
||||||
|
<input x="5" y="-5" size="10" text="_" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="0" y2="-3" x2="0" />
|
||||||
|
<circle x="-2.5" y="-2.5" antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" diameter="5" />
|
||||||
|
<terminal x="0" y="-10" orientation="n" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
6
elements/contacts/bornes/qet_directory
Normal file
6
elements/contacts/bornes/qet_directory
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<qet-directory>
|
||||||
|
<names>
|
||||||
|
<name lang="fr">Bornes</name>
|
||||||
|
<name lang="en">Terminals</name>
|
||||||
|
</names>
|
||||||
|
</qet-directory>
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
<name lang="fr" >Contact simple (étanche)</name>
|
<name lang="fr" >Contact simple (étanche)</name>
|
||||||
</names>
|
</names>
|
||||||
<description>
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="-5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-12" x1="-8.5" y2="12" x2="-8.5" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-12" x1="-8.5" y2="12" x2="-8.5" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-12" x1="8.5" y2="12" x2="8.5" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-12" x1="8.5" y2="12" x2="8.5" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-14.5" x1="-6" y2="-14.5" x2="6" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-14.5" x1="-6" y2="-14.5" x2="6" />
|
||||||
@@ -14,8 +15,6 @@
|
|||||||
<arc width="5" x="3.5" y="9.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="0" angle="-90" />
|
<arc width="5" x="3.5" y="9.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="0" angle="-90" />
|
||||||
<input x="12.75" y="3" size="9" text="_" />
|
<input x="12.75" y="3" size="9" text="_" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-10" x2="0" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-10" x2="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="0" y2="20" x2="0" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="-5" y2="10" x2="0" />
|
|
||||||
<terminal x="0" y="-21" orientation="n" />
|
<terminal x="0" y="-21" orientation="n" />
|
||||||
<terminal x="0" y="21" orientation="s" />
|
<terminal x="0" y="21" orientation="s" />
|
||||||
</description>
|
</description>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
<name lang="fr" >Contact simple (NF / étanche)</name>
|
<name lang="fr" >Contact simple (NF / étanche)</name>
|
||||||
</names>
|
</names>
|
||||||
<description>
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="0" y2="-9" x2="6" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="0" y2="-9" x2="6" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-12" x1="-8.5" y2="12" x2="-8.5" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-12" x1="-8.5" y2="12" x2="-8.5" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-12" x1="8.5" y2="12" x2="8.5" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-12" x1="8.5" y2="12" x2="8.5" />
|
||||||
@@ -15,8 +16,6 @@
|
|||||||
<arc width="5" x="3.5" y="9.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="0" angle="-90" />
|
<arc width="5" x="3.5" y="9.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="0" angle="-90" />
|
||||||
<input x="12.75" y="3" size="9" text="_" />
|
<input x="12.75" y="3" size="9" text="_" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-9" x2="0" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-9" x2="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="0" y2="20" x2="0" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="5" y2="10" x2="0" />
|
|
||||||
<terminal x="0" y="-21" orientation="n" />
|
<terminal x="0" y="-21" orientation="n" />
|
||||||
<terminal x="0" y="21" orientation="s" />
|
<terminal x="0" y="21" orientation="s" />
|
||||||
</description>
|
</description>
|
||||||
|
|||||||
16
elements/contacts/fin_de_course/findecourse_nf.elmt
Normal file
16
elements/contacts/fin_de_course/findecourse_nf.elmt
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<definition width="30" version="0.1" hotspot_x="10" hotspot_y="25" height="50" type="element" orientation="dnny" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Limit (NC)</name>
|
||||||
|
<name lang="fr" >Fin de course (NF)</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-5.25" x1="1.25" y2="-5.25" x2="3.25" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="4" x1="1.25" y2="-5.25" x2="1.25" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="0" y2="-9" x2="6" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-9" x2="0" />
|
||||||
|
<input x="5.75" y="3" size="9" text="_" />
|
||||||
|
<terminal x="0" y="-21" orientation="n" />
|
||||||
|
<terminal x="0" y="21" orientation="s" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
14
elements/contacts/fin_de_course/findecourse_no.elmt
Normal file
14
elements/contacts/fin_de_course/findecourse_no.elmt
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<definition width="30" version="0.1" hotspot_x="10" hotspot_y="25" height="50" type="element" orientation="dnny" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Limit</name>
|
||||||
|
<name lang="fr" >Fin de course</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="-5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-4" x1="-4" y2="-3" x2="-6.75" y3="4.85" x3="-1.55" />
|
||||||
|
<input x="2.75" y="3" size="9" text="_" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-10" x2="0" />
|
||||||
|
<terminal x="0" y="-21" orientation="n" />
|
||||||
|
<terminal x="0" y="21" orientation="s" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
6
elements/contacts/fin_de_course/qet_directory
Normal file
6
elements/contacts/fin_de_course/qet_directory
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<qet-directory>
|
||||||
|
<names>
|
||||||
|
<name lang="en">Limits</name>
|
||||||
|
<name lang="fr" >Fins de courses</name>
|
||||||
|
</names>
|
||||||
|
</qet-directory>
|
||||||
19
elements/contacts/interupteur/inter_2.elmt
Normal file
19
elements/contacts/interupteur/inter_2.elmt
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<definition width="50" version="0.1" hotspot_x="10" hotspot_y="35" height="60" type="element" orientation="dyyy" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Switch 2 positions</name>
|
||||||
|
<name lang="fr" >Interrupteur 2 positions</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<input x="22" y="-7" size="9" text="_" />
|
||||||
|
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-13" x1="9" y2="1" x2="2" />
|
||||||
|
<ellipse width="3" x="18.5" y="-1.5" antialias="true" height="3" style="line-style:normal;line-weight:normal;filling:none;color:black" />
|
||||||
|
<ellipse width="3" x="8.5" y="-16.5" antialias="true" height="3" style="line-style:normal;line-weight:normal;filling:none;color:black" />
|
||||||
|
<ellipse width="3" x="-1.5" y="-1.5" antialias="true" height="3" style="line-style:normal;line-weight:normal;filling:none;color:black" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="2" x1="0" y2="10" x2="0" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="2" x1="20" y2="10" x2="20" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-17" x1="10" y2="-30" x2="10" />
|
||||||
|
<terminal x="0" y="10" orientation="s" />
|
||||||
|
<terminal x="20" y="10" orientation="s" />
|
||||||
|
<terminal x="10" y="-30" orientation="n" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
20
elements/contacts/interupteur/inter_2n.elmt
Normal file
20
elements/contacts/interupteur/inter_2n.elmt
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<definition width="50" version="0.1" hotspot_x="10" hotspot_y="35" height="60" type="element" orientation="dyyy" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Switch 3 positions including neutral</name>
|
||||||
|
<name lang="fr" >Interrupteur 3 positions dont neutre</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="1" x1="10" y2="4" x2="8" y3="4" x3="12" />
|
||||||
|
<input x="22" y="-7" size="9" text="_" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-13" x1="10" y2="1" x2="10" />
|
||||||
|
<ellipse width="3" x="18.5" y="-1.5" antialias="true" height="3" style="line-style:normal;line-weight:normal;filling:none;color:black" />
|
||||||
|
<ellipse width="3" x="8.5" y="-16.5" antialias="true" height="3" style="line-style:normal;line-weight:normal;filling:none;color:black" />
|
||||||
|
<ellipse width="3" x="-1.5" y="-1.5" antialias="true" height="3" style="line-style:normal;line-weight:normal;filling:none;color:black" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="2" x1="0" y2="10" x2="0" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="2" x1="20" y2="10" x2="20" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-17" x1="10" y2="-30" x2="10" />
|
||||||
|
<terminal x="0" y="10" orientation="s" />
|
||||||
|
<terminal x="20" y="10" orientation="s" />
|
||||||
|
<terminal x="10" y="-30" orientation="n" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
@@ -1,14 +1,13 @@
|
|||||||
<definition width="30" version="0.1" hotspot_x="10" hotspot_y="25" height="50" type="element" orientation="dnny" >
|
<definition width="30" version="0.1" hotspot_x="10" hotspot_y="25" height="50" type="element" orientation="dnny" >
|
||||||
<names>
|
<names>
|
||||||
<name lang="en" >On-off switch</name>
|
<name lang="en" >Switch</name>
|
||||||
<name lang="fr" >Interrupteur</name>
|
<name lang="fr" >Interrupteur</name>
|
||||||
</names>
|
</names>
|
||||||
<description>
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="-5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-12.5" x2="0" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-12.5" x2="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="0" y2="20" x2="0" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="-5" y2="10" x2="0" />
|
|
||||||
<input x="2.75" y="3" size="9" text="_" />
|
<input x="2.75" y="3" size="9" text="_" />
|
||||||
<circle x="-1.750000000000001" y="-11.75000000000002" antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" diameter="3.5" />
|
<circle x="-1.75" y="-11.75" antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" diameter="3.5" />
|
||||||
<terminal x="0" y="-21" orientation="n" />
|
<terminal x="0" y="-21" orientation="n" />
|
||||||
<terminal x="0" y="21" orientation="s" />
|
<terminal x="0" y="21" orientation="s" />
|
||||||
</description>
|
</description>
|
||||||
6
elements/contacts/interupteur/qet_directory
Normal file
6
elements/contacts/interupteur/qet_directory
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<qet-directory>
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Switchs</name>
|
||||||
|
<name lang="fr" >Interrupteurs</name>
|
||||||
|
</names>
|
||||||
|
</qet-directory>
|
||||||
@@ -4,9 +4,8 @@
|
|||||||
<name lang="fr" >Bouton poussoir</name>
|
<name lang="fr" >Bouton poussoir</name>
|
||||||
</names>
|
</names>
|
||||||
<description>
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="-5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-10" x2="0" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-10" x2="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="0" y2="20" x2="0" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="-5" y2="10" x2="0" />
|
|
||||||
<input x="2.75" y="3" size="9" text="_" />
|
<input x="2.75" y="3" size="9" text="_" />
|
||||||
<line antialias="false" style="line-style:dashed;line-weight:thin;filling:none;color:black" y1="-5" x1="-10" y2="5" x2="-10" />
|
<line antialias="false" style="line-style:dashed;line-weight:thin;filling:none;color:black" y1="-5" x1="-10" y2="5" x2="-10" />
|
||||||
<line antialias="false" style="line-style:dashed;line-weight:thin;filling:none;color:black" y1="0" x1="-10" y2="0" x2="-3" />
|
<line antialias="false" style="line-style:dashed;line-weight:thin;filling:none;color:black" y1="0" x1="-10" y2="0" x2="-3" />
|
||||||
|
|||||||
@@ -4,10 +4,9 @@
|
|||||||
<name lang="fr" >Bouton poussoir (NF)</name>
|
<name lang="fr" >Bouton poussoir (NF)</name>
|
||||||
</names>
|
</names>
|
||||||
<description>
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="0" y2="-9" x2="6" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="0" y2="-9" x2="6" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-9" x2="0" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-9" x2="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="0" y2="20" x2="0" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="5" y2="10" x2="0" />
|
|
||||||
<input x="5.75" y="3" size="9" text="_" />
|
<input x="5.75" y="3" size="9" text="_" />
|
||||||
<line antialias="false" style="line-style:dashed;line-weight:thin;filling:none;color:black" y1="-5" x1="-10" y2="5" x2="-10" />
|
<line antialias="false" style="line-style:dashed;line-weight:thin;filling:none;color:black" y1="-5" x1="-10" y2="5" x2="-10" />
|
||||||
<line antialias="false" style="line-style:dashed;line-weight:thin;filling:none;color:black" y1="0" x1="-10" y2="0" x2="3" />
|
<line antialias="false" style="line-style:dashed;line-weight:thin;filling:none;color:black" y1="0" x1="-10" y2="0" x2="3" />
|
||||||
|
|||||||
@@ -4,10 +4,9 @@
|
|||||||
<name lang="fr" >Contact puissance contacteur (NF)</name>
|
<name lang="fr" >Contact puissance contacteur (NF)</name>
|
||||||
</names>
|
</names>
|
||||||
<description>
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="0" y2="-9" x2="6" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="0" y2="-9" x2="6" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-9" x2="0" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-9" x2="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="0" y2="20" x2="0" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="5" y2="10" x2="0" />
|
|
||||||
<input x="5.75" y="3" size="9" text="KM_" />
|
<input x="5.75" y="3" size="9" text="KM_" />
|
||||||
<arc width="5" x="-2.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
<arc width="5" x="-2.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
||||||
<terminal x="0" y="21" orientation="s" />
|
<terminal x="0" y="21" orientation="s" />
|
||||||
|
|||||||
@@ -4,21 +4,18 @@
|
|||||||
<name lang="fr" >Contact puissance contacteur (NF)</name>
|
<name lang="fr" >Contact puissance contacteur (NF)</name>
|
||||||
</names>
|
</names>
|
||||||
<description>
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="25" y2="10" x2="20" y3="20" x3="20" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="15" y2="10" x2="10" y3="20" x3="10" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="0" y2="-9" x2="6" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="0" y2="-9" x2="6" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-9" x2="0" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-9" x2="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="0" y2="20" x2="0" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="5" y2="10" x2="0" />
|
|
||||||
<input x="25" y="3" size="9" text="KM_" />
|
<input x="25" y="3" size="9" text="KM_" />
|
||||||
<arc width="5" x="-2.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
<arc width="5" x="-2.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="10" y2="-9" x2="16" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="10" y2="-9" x2="16" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="10" y2="-9" x2="10" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="10" y2="-9" x2="10" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="10" y2="20" x2="10" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="15" y2="10" x2="10" />
|
|
||||||
<arc width="5" x="7.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
<arc width="5" x="7.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="20" y2="-9" x2="26" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="20" y2="-9" x2="26" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="20" y2="-9" x2="20" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="20" y2="-9" x2="20" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="20" y2="20" x2="20" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="25" y2="10" x2="20" />
|
|
||||||
<arc width="5" x="17.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
<arc width="5" x="17.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
||||||
<terminal x="0" y="21" orientation="s" />
|
<terminal x="0" y="21" orientation="s" />
|
||||||
<terminal x="0" y="-21" orientation="n" />
|
<terminal x="0" y="-21" orientation="n" />
|
||||||
|
|||||||
@@ -4,25 +4,21 @@
|
|||||||
<name lang="fr" >Contact puissance contacteur (NF)</name>
|
<name lang="fr" >Contact puissance contacteur (NF)</name>
|
||||||
</names>
|
</names>
|
||||||
<description>
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="35" y2="10" x2="30" y3="20" x3="30" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="15" y2="10" x2="10" y3="20" x3="10" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="25" y2="10" x2="20" y3="20" x3="20" />
|
||||||
<input x="35" y="3" size="9" text="KM_" />
|
<input x="35" y="3" size="9" text="KM_" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="0" y2="-9" x2="6" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="0" y2="-9" x2="6" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-9" x2="0" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-9" x2="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="0" y2="20" x2="0" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="5" y2="10" x2="0" />
|
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="10" y2="-9" x2="16" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="10" y2="-9" x2="16" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="10" y2="-9" x2="10" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="10" y2="-9" x2="10" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="10" y2="20" x2="10" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="15" y2="10" x2="10" />
|
|
||||||
<arc width="5" x="7.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
<arc width="5" x="7.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="20" y2="-9" x2="26" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="20" y2="-9" x2="26" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="20" y2="-9" x2="20" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="20" y2="-9" x2="20" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="20" y2="20" x2="20" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="25" y2="10" x2="20" />
|
|
||||||
<arc width="5" x="17.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
<arc width="5" x="17.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="30" y2="-9" x2="36" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="30" y2="-9" x2="36" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="30" y2="-9" x2="30" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="30" y2="-9" x2="30" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="30" y2="20" x2="30" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="35" y2="10" x2="30" />
|
|
||||||
<arc width="5" x="27.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
<arc width="5" x="27.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
||||||
<terminal x="0" y="21" orientation="s" />
|
<terminal x="0" y="21" orientation="s" />
|
||||||
<terminal x="0" y="-21" orientation="n" />
|
<terminal x="0" y="-21" orientation="n" />
|
||||||
|
|||||||
@@ -4,26 +4,22 @@
|
|||||||
<name lang="fr" >Contact puissance contacteur (NF)</name>
|
<name lang="fr" >Contact puissance contacteur (NF)</name>
|
||||||
</names>
|
</names>
|
||||||
<description>
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="15" y2="10" x2="10" y3="20" x3="10" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="35" y2="10" x2="30" y3="20" x3="30" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="25" y2="10" x2="20" y3="20" x3="20" />
|
||||||
<input x="35" y="3" size="9" text="KM_" />
|
<input x="35" y="3" size="9" text="KM_" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="0" y2="-9" x2="6" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="0" y2="-9" x2="6" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-9" x2="0" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-9" x2="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="0" y2="20" x2="0" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="5" y2="10" x2="0" />
|
|
||||||
<arc width="5" x="-2.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
<arc width="5" x="-2.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="10" y2="-9" x2="16" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="10" y2="-9" x2="16" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="10" y2="-9" x2="10" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="10" y2="-9" x2="10" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="10" y2="20" x2="10" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="15" y2="10" x2="10" />
|
|
||||||
<arc width="5" x="7.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
<arc width="5" x="7.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="20" y2="-9" x2="26" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="20" y2="-9" x2="26" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="20" y2="-9" x2="20" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="20" y2="-9" x2="20" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="20" y2="20" x2="20" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="25" y2="10" x2="20" />
|
|
||||||
<arc width="5" x="17.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
<arc width="5" x="17.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="30" y2="-9" x2="36" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-9" x1="30" y2="-9" x2="36" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="30" y2="-9" x2="30" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="30" y2="-9" x2="30" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="30" y2="20" x2="30" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="35" y2="10" x2="30" />
|
|
||||||
<arc width="5" x="27.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
<arc width="5" x="27.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="90" angle="-180" />
|
||||||
<terminal x="0" y="21" orientation="s" />
|
<terminal x="0" y="21" orientation="s" />
|
||||||
<terminal x="0" y="-21" orientation="n" />
|
<terminal x="0" y="-21" orientation="n" />
|
||||||
|
|||||||
@@ -4,9 +4,8 @@
|
|||||||
<name lang="fr" >Contact puissance contacteur</name>
|
<name lang="fr" >Contact puissance contacteur</name>
|
||||||
</names>
|
</names>
|
||||||
<description>
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="-5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-10" x2="0" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-10" x2="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="0" y2="20" x2="0" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="-5" y2="10" x2="0" />
|
|
||||||
<input x="2.75" y="3" size="9" text="KM_" />
|
<input x="2.75" y="3" size="9" text="KM_" />
|
||||||
<arc width="5" x="-2.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
<arc width="5" x="-2.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
||||||
<terminal x="0" y="-21" orientation="n" />
|
<terminal x="0" y="-21" orientation="n" />
|
||||||
|
|||||||
@@ -4,18 +4,15 @@
|
|||||||
<name lang="fr" >Contact puissance contacteur</name>
|
<name lang="fr" >Contact puissance contacteur</name>
|
||||||
</names>
|
</names>
|
||||||
<description>
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="15" y2="10" x2="20" y3="20" x3="20" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="-5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="5" y2="10" x2="10" y3="20" x3="10" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-10" x2="0" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-10" x2="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="0" y2="20" x2="0" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="-5" y2="10" x2="0" />
|
|
||||||
<input x="25" y="3" size="9" text="KM_" />
|
<input x="25" y="3" size="9" text="KM_" />
|
||||||
<arc width="5" x="-2.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
<arc width="5" x="-2.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="10" y2="-10" x2="10" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="10" y2="-10" x2="10" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="10" y2="20" x2="10" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="5" y2="10" x2="10" />
|
|
||||||
<arc width="5" x="7.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
<arc width="5" x="7.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="20" y2="-10" x2="20" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="20" y2="-10" x2="20" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="20" y2="20" x2="20" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="15" y2="10" x2="20" />
|
|
||||||
<arc width="5" x="17.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
<arc width="5" x="17.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
||||||
<terminal x="0" y="-21" orientation="n" />
|
<terminal x="0" y="-21" orientation="n" />
|
||||||
<terminal x="0" y="21" orientation="s" />
|
<terminal x="0" y="21" orientation="s" />
|
||||||
|
|||||||
@@ -4,21 +4,17 @@
|
|||||||
<name lang="fr" >Contact puissance contacteur</name>
|
<name lang="fr" >Contact puissance contacteur</name>
|
||||||
</names>
|
</names>
|
||||||
<description>
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="5" y2="10" x2="10" y3="20" x3="10" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="25" y2="10" x2="30" y3="20" x3="30" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="15" y2="10" x2="20" y3="20" x3="20" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="-5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
<input x="35" y="3" size="9" text="KM_" />
|
<input x="35" y="3" size="9" text="KM_" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-10" x2="0" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-10" x2="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="0" y2="20" x2="0" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="-5" y2="10" x2="0" />
|
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="10" y2="-10" x2="10" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="10" y2="-10" x2="10" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="10" y2="20" x2="10" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="5" y2="10" x2="10" />
|
|
||||||
<arc width="5" x="7.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
<arc width="5" x="7.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="20" y2="-10" x2="20" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="20" y2="-10" x2="20" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="20" y2="20" x2="20" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="15" y2="10" x2="20" />
|
|
||||||
<arc width="5" x="17.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
<arc width="5" x="17.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="30" y2="-10" x2="30" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="30" y2="-10" x2="30" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="30" y2="20" x2="30" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="25" y2="10" x2="30" />
|
|
||||||
<arc width="5" x="27.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
<arc width="5" x="27.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
||||||
<terminal x="0" y="-21" orientation="n" />
|
<terminal x="0" y="-21" orientation="n" />
|
||||||
<terminal x="0" y="21" orientation="s" />
|
<terminal x="0" y="21" orientation="s" />
|
||||||
|
|||||||
@@ -4,22 +4,18 @@
|
|||||||
<name lang="fr" >Contact puissance contacteur</name>
|
<name lang="fr" >Contact puissance contacteur</name>
|
||||||
</names>
|
</names>
|
||||||
<description>
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="5" y2="10" x2="10" y3="20" x3="10" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="25" y2="10" x2="30" y3="20" x3="30" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="15" y2="10" x2="20" y3="20" x3="20" />
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="-5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
<input x="35" y="3" size="9" text="KM_" />
|
<input x="35" y="3" size="9" text="KM_" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-10" x2="0" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-10" x2="0" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="0" y2="20" x2="0" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="-5" y2="10" x2="0" />
|
|
||||||
<arc width="5" x="-2.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
<arc width="5" x="-2.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="10" y2="-10" x2="10" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="10" y2="-10" x2="10" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="10" y2="20" x2="10" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="5" y2="10" x2="10" />
|
|
||||||
<arc width="5" x="7.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
<arc width="5" x="7.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="20" y2="-10" x2="20" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="20" y2="-10" x2="20" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="20" y2="20" x2="20" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="15" y2="10" x2="20" />
|
|
||||||
<arc width="5" x="17.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
<arc width="5" x="17.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="30" y2="-10" x2="30" />
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="30" y2="-10" x2="30" />
|
||||||
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="10" x1="30" y2="20" x2="30" />
|
|
||||||
<line antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-10" x1="25" y2="10" x2="30" />
|
|
||||||
<arc width="5" x="27.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
<arc width="5" x="27.5" y="-14.5" antialias="true" height="5" style="line-style:normal;line-weight:normal;filling:none;color:black" start="-90" angle="-180" />
|
||||||
<terminal x="0" y="-21" orientation="n" />
|
<terminal x="0" y="-21" orientation="n" />
|
||||||
<terminal x="0" y="21" orientation="s" />
|
<terminal x="0" y="21" orientation="s" />
|
||||||
|
|||||||
16
elements/contacts/relais_thermique/contact_relais.elmt
Normal file
16
elements/contacts/relais_thermique/contact_relais.elmt
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<definition width="40" version="0.1" hotspot_x="20" hotspot_y="25" height="50" type="element" orientation="dnny" >
|
||||||
|
<names>
|
||||||
|
<name lang="en" >Contact relais thermique (NO)</name>
|
||||||
|
<name lang="fr" >Contact relais thermique (NO)</name>
|
||||||
|
</names>
|
||||||
|
<description>
|
||||||
|
<polygon antialias="true" style="line-style:normal;line-weight:normal;filling:none;color:black" closed="false" y1="-10" x1="-5" y2="10" x2="0" y3="20" x3="0" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="-9" y2="4" x2="-9" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="-7" y2="2" x2="-7" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="0" x1="-3" y2="0" x2="-9" />
|
||||||
|
<input x="2.75" y="3" size="9" text="F_" />
|
||||||
|
<line antialias="false" style="line-style:normal;line-weight:normal;filling:none;color:black" y1="-20" x1="0" y2="-10" x2="0" />
|
||||||
|
<terminal x="0" y="-21" orientation="n" />
|
||||||
|
<terminal x="0" y="21" orientation="s" />
|
||||||
|
</description>
|
||||||
|
</definition>
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user