5 #include <QGraphicsRectItem>
6 #include <QListWidgetItem>
10 #include "mainwindow.h"
90 QPolygonF
polygon(){
return QPolygonF(this->boundingRect());}
123 QString
toSql(
bool withoutFK=
false);
147 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget);
153 bool canBeWriten(QVector<Entite *> vectEntitesGeneres);
The QCustomGraphicsScene class This class is designed to deal with mouse events.
QString nomEntite
nomEntite name of entity
QString toSql(bool withoutFK=false)
toSql
QString getNomEntite()
getNomEntite
int noLien(Entite *lAutre, Lien *leLien)
noLien
The Lien class a link is betwwen to objects it contains a line a role text cardinality ...
QVector< Lien * > vectLiens
vectLiens this vector contains adresses of the links concerning entity
QString getPrimaryKey()
getPrimaryKey
QString nomTableTronque()
nomTableTronque
int nbLien(Entite *lAutre)
nbLien
Entite(MainWindow *mum, QString nom, qreal x, qreal y, QGraphicsItem *parent, QCustomGraphicsScene *laScene, QStringList listeDesChamps, bool isAssoc)
Entite.
QStringList renvoieClefsEtrangeres(bool constraintInsideTable=true)
renvoieClefsEtrangeres
QString getPrimaryKeyAsFields(bool=true)
getPrimaryKeyAsFields
QVector< Property * > vecteurChamps
vecteurChamps container for entity's fields
QPolygonF polygon()
polygon
bool isEntiteFaible()
isEntiteFaible
The Property class property is a field it can be placed into entity or relation.
QStringList renvoieChampsEtrangers()
renvoieChampsEtrangers
QVector< Entite * > renvoieEntiteMeres()
renvoieEntiteMeres
bool canBeWriten(QVector< Entite * > vectEntitesGeneres)
canBeWriten
void contextMenuEvent(QGraphicsSceneMouseEvent *event)
contextMenuEvent
QString getkeyAsForeignKey(QString role)
getkeyAsForeignKey
The Entite class Entity is an object we have to deal with.
QGraphicsTextItem * title
title
The MainWindow class main code of application.
MainWindow * maman
maman the main window
QGraphicsRectItem * rectTitle
rectTitle rectangle wich contains title