mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-15 22:39:59 +01:00
Classe "Conducteur" renommee en "Conducer"
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@46 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
12
diagram.h
12
diagram.h
@@ -14,15 +14,15 @@
|
||||
public:
|
||||
Diagram(QObject * = 0);
|
||||
void drawBackground(QPainter *, const QRectF &);
|
||||
inline void poseConducteur(bool pf) {
|
||||
inline void poseConducer(bool pf) {
|
||||
if (pf) {
|
||||
if (!poseur_de_conducteur -> scene()) addItem(poseur_de_conducteur);
|
||||
if (!poseur_de_conducer -> scene()) addItem(poseur_de_conducer);
|
||||
} else {
|
||||
if (poseur_de_conducteur -> scene()) removeItem(poseur_de_conducteur);
|
||||
if (poseur_de_conducer -> scene()) removeItem(poseur_de_conducer);
|
||||
}
|
||||
}
|
||||
inline void setDepart (QPointF d) { poseur_de_conducteur -> setLine(QLineF(d, poseur_de_conducteur -> line().p2())); }
|
||||
inline void setArrivee(QPointF a) { poseur_de_conducteur -> setLine(QLineF(poseur_de_conducteur -> line().p1(), a)); }
|
||||
inline void setDepart (QPointF d) { poseur_de_conducer -> setLine(QLineF(d, poseur_de_conducer -> line().p2())); }
|
||||
inline void setArrivee(QPointF a) { poseur_de_conducer -> setLine(QLineF(poseur_de_conducer -> line().p1(), a)); }
|
||||
QImage toImage(int = -1, int = -1, bool = true);
|
||||
QSize imageSize() const;
|
||||
QDomDocument toXml(bool = true);
|
||||
@@ -33,7 +33,7 @@
|
||||
QRectF border() const;
|
||||
|
||||
private:
|
||||
QGraphicsLineItem *poseur_de_conducteur;
|
||||
QGraphicsLineItem *poseur_de_conducer;
|
||||
bool doit_dessiner_grille;
|
||||
Element *elementFromXml(QDomElement &, QHash<int, Terminal *> &);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user