The Entite class Entity is an object we have to deal with.
More...
#include <entite.h>
|
int | type () const |
|
| Entite (MainWindow *mum, QString nom, qreal x, qreal y, QGraphicsItem *parent, QCustomGraphicsScene *laScene, QStringList listeDesChamps, bool isAssoc) |
| Entite. More...
|
|
QString | getNomEntite () |
| getNomEntite More...
|
|
void | contextMenuEvent (QGraphicsSceneMouseEvent *event) |
| contextMenuEvent More...
|
|
QPolygonF | polygon () |
| polygon More...
|
|
QString | nomTableTronque () |
| nomTableTronque More...
|
|
QString | getPrimaryKey () |
| getPrimaryKey More...
|
|
void | redraw () |
| redraw
|
|
QVector< Entite * > | renvoieEntiteMeres () |
| renvoieEntiteMeres More...
|
|
bool | isEntiteFaible () |
| isEntiteFaible More...
|
|
QString | toSql (bool withoutFK=false) |
| toSql More...
|
|
QStringList | renvoieClefsEtrangeres (bool constraintInsideTable=true) |
| renvoieClefsEtrangeres More...
|
|
QString | getPrimaryKeyAsFields (bool=true) |
| getPrimaryKeyAsFields More...
|
|
QStringList | renvoieChampsEtrangers () |
| renvoieChampsEtrangers More...
|
|
QString | getkeyAsForeignKey (QString role) |
| getkeyAsForeignKey More...
|
|
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
|
bool | canBeWriten (QVector< Entite * > vectEntitesGeneres) |
| canBeWriten More...
|
|
int | noLien (Entite *lAutre, Lien *leLien) |
| noLien More...
|
|
The Entite class Entity is an object we have to deal with.
Definition at line 20 of file entite.h.
Entite::Entite |
( |
MainWindow * |
mum, |
|
|
QString |
nom, |
|
|
qreal |
x, |
|
|
qreal |
y, |
|
|
QGraphicsItem * |
parent, |
|
|
QCustomGraphicsScene * |
laScene, |
|
|
QStringList |
listeDesChamps, |
|
|
bool |
isAssoc |
|
) |
| |
Entite.
- Parameters
-
mum | |
nom | |
x | |
y | |
parent | |
laScene | |
listeDesChamps | |
isAssoc | the constructor |
Definition at line 120 of file entite.cpp.
bool Entite::canBeWriten |
( |
QVector< Entite * > |
vectEntitesGeneres | ) |
|
canBeWriten
- Parameters
-
- Returns
- true if all needed entities are already created false in other case
Definition at line 312 of file entite.cpp.
void Entite::contextMenuEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
contextMenuEvent
- Parameters
-
event | Display context Menu |
Definition at line 204 of file entite.cpp.
QString Entite::getkeyAsForeignKey |
( |
QString |
role | ) |
|
getkeyAsForeignKey
- Parameters
-
role | sometimes used to distinguish serveral links |
- Returns
Definition at line 412 of file entite.cpp.
QString Entite::getNomEntite |
( |
| ) |
|
|
inline |
getNomEntite
- Returns
- accessor for name
Definition at line 64 of file entite.h.
QString Entite::getPrimaryKey |
( |
| ) |
|
getPrimaryKey
- Returns
- primary key of entity as QString
Definition at line 341 of file entite.cpp.
QString Entite::getPrimaryKeyAsFields |
( |
bool |
references = true | ) |
|
getPrimaryKeyAsFields
- Returns
- a string containing primary key
Definition at line 376 of file entite.cpp.
bool Entite::isEntiteFaible |
( |
| ) |
|
isEntiteFaible
- Returns
- true if leak entity as hotel's room
Definition at line 336 of file entite.cpp.
int Entite::nbLien |
( |
Entite * |
lAutre | ) |
|
|
slot |
nbLien
- Parameters
-
- Returns
- how many links between me and the other one
Definition at line 109 of file entite.cpp.
int Entite::noLien |
( |
Entite * |
lAutre, |
|
|
Lien * |
leLien |
|
) |
| |
noLien
- Parameters
-
- Returns
- 1 for first link or 2 for second or 3 ...
Definition at line 96 of file entite.cpp.
QString Entite::nomTableTronque |
( |
| ) |
|
|
inline |
nomTableTronque
- Returns
- the 10 left characters + "..."
Definition at line 95 of file entite.h.
QPolygonF Entite::polygon |
( |
| ) |
|
|
inline |
polygon
- Returns
- rectangle wich limits entity
Definition at line 90 of file entite.h.
QStringList Entite::renvoieChampsEtrangers |
( |
| ) |
|
renvoieChampsEtrangers
- Returns
- all foreign fields
Definition at line 257 of file entite.cpp.
QStringList Entite::renvoieClefsEtrangeres |
( |
bool |
constraintInsideTable = true | ) |
|
renvoieClefsEtrangeres
- Parameters
-
constraintInsideTable | if true references follow each field |
- Returns
- foreign keys
Definition at line 284 of file entite.cpp.
QVector< Entite * > Entite::renvoieEntiteMeres |
( |
| ) |
|
renvoieEntiteMeres
- Returns
- entities from which actual is issued
Definition at line 242 of file entite.cpp.
QString Entite::toSql |
( |
bool |
withoutFK = false | ) |
|
toSql
- Parameters
-
- Returns
- "create table ..."
Definition at line 434 of file entite.cpp.
The documentation for this class was generated from the following files:
- /home/gthom/Documents/Travail/Developpement/gapmea-v1.0-rc1-1.5.3.2/entite.h
- /home/gthom/Documents/Travail/Developpement/gapmea-v1.0-rc1-1.5.3.2/entite.cpp