mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Modification permettant de definir qu'un element peut avoir un conducteur entre ses propres bornes
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@13 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
parent
f0a0eb6661
commit
58152e33eb
@ -29,16 +29,17 @@
|
||||
bool invertOrientation();
|
||||
void setPos(const QPointF &);
|
||||
void setPos(qreal, qreal);
|
||||
bool connexionsInternesAcceptees() { return(peut_relier_ses_propres_bornes); }
|
||||
inline bool connexionsInternesAcceptees() { return(peut_relier_ses_propres_bornes); }
|
||||
inline void setConnexionsInternesAcceptees(bool cia) { peut_relier_ses_propres_bornes = cia; }
|
||||
static bool valideXml(QDomElement &);
|
||||
virtual bool fromXml(QDomElement &, QHash<int, Borne *>&) = 0;
|
||||
|
||||
protected:
|
||||
void drawAxes(QPainter *, const QStyleOptionGraphicsItem *);
|
||||
void mouseMoveEvent(QGraphicsSceneMouseEvent *);
|
||||
bool peut_relier_ses_propres_bornes;
|
||||
|
||||
private:
|
||||
bool peut_relier_ses_propres_bornes;
|
||||
void drawSelection(QPainter *, const QStyleOptionGraphicsItem *);
|
||||
void updatePixmap();
|
||||
bool sens;
|
||||
|
@ -55,7 +55,7 @@ ElementPerso::ElementPerso(QString &nom_fichier, QGraphicsItem *qgi, Schema *s,
|
||||
priv_nom = racine.attribute("nom");
|
||||
setSize(w, h);
|
||||
setHotspot(QPoint(hot_x, hot_y));
|
||||
|
||||
setConnexionsInternesAcceptees(racine.attribute("ci") == "true");
|
||||
// la definition est supposee avoir des enfants
|
||||
if (racine.firstChild().isNull()) {
|
||||
if (etat != NULL) *etat = 6;
|
||||
|
Loading…
x
Reference in New Issue
Block a user