4 #include <QGraphicsLineItem>
5 #include <QGraphicsRectItem>
6 #include <QGraphicsScene>
56 QGraphicsSimpleTextItem*
role;
73 Lien(
Entite* qg1,
Entite* qg2,QGraphicsItem* parent, QString typ=
"Natural",QString relationName=
"",QString pRole=
"");
110 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *,QWidget *);
Entite * t2
t2 second object
QGraphicsLineItem * line
line the line
Lien(Entite *qg1, Entite *qg2, QGraphicsItem *parent, QString typ="Natural", QString relationName="", QString pRole="")
Lien.
The Lien class a link is betwwen to objects it contains a line a role text cardinality ...
Entite * t1
t1 first object
QGraphicsEllipseItem * leRond
leRond Pour les cifs et dfs et entités faibles le rond central
QString texteDuRole
texteDuRole example: chief
QGraphicsSimpleTextItem * cardinalite1
cardinalite1 example:0,1 or 1,1 or 0,n
QGraphicsSimpleTextItem * cardinalite2
cardinalite2 example:0,1 or 1,1 or 0,n
QString typeDeJointure
typeDeJointure cif –1,1–CIF–0,n–> df –0,1–DF–0,n–>or leg --------—
QGraphicsTextItem * leTexteDuRond
leTexteDuRond text writen into central disk
QGraphicsSimpleTextItem * role
role if there are several links between two same objects
void contextMenuEvent(QGraphicsSceneMouseEvent *event)
contextMenuEvent
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)
paint
The Entite class Entity is an object we have to deal with.
QRectF boundingRect() const
boundingRect
bool estRelieA(Lien *autreLien)
estRelieA