![]() |
gapMea
1.0-rc1-1.5.3.2
GapMea est un outil visuel écrit en c++ à l'aide de la bibliothèque QT qui sert de base entre autre à l'environnement graphique de KDE.Il permet de dessiner des schémas recueillant et structurant les informations nécessaires à un domaine de gestion. Le schéma obtenu est enregistré dans un fichier texte au format xml.
|
The Association class Association inherit Entite Association is a relation between at least two entities. More...
#include <association.h>
Public Member Functions | |
Association (MainWindow *mum, QString nom, qreal x, qreal y, QGraphicsItem *parent, QCustomGraphicsScene *laScene, QStringList listeChamps, bool isAssoc) | |
Association. More... | |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
paint association More... | |
double | getRadiusX () const |
Get the rounded rect corner x radius. | |
double | getRadiusY () const |
Get the rounded rect corner y radius. | |
void | setRadiusX (const double radius_x) |
Set the rounded rect corner x radius. | |
void | setRadiusY (const double radius_y) |
Set the rounded rect corner y radius. | |
void | setRoundedRect (const QRectF rect, const double radius_x, const double radius_y) |
Set the rounded rect. | |
QVector< Entite * > | vectEntitesAssociees () |
vectEntitesAssociees More... | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
enum | { Type = TABLE } |
![]() | |
int | nbLien (Entite *lAutre) |
nbLien More... | |
![]() | |
QGraphicsRectItem * | rectTitle |
rectTitle rectangle wich contains title | |
QGraphicsTextItem * | title |
title | |
QString | nomEntite |
nomEntite name of entity | |
QVector< Lien * > | vectLiens |
vectLiens this vector contains adresses of the links concerning entity | |
QVector< Property * > | vecteurChamps |
vecteurChamps container for entity's fields | |
MainWindow * | maman |
maman the main window | |
bool | association |
The Association class Association inherit Entite Association is a relation between at least two entities.
Definition at line 9 of file association.h.
Association::Association | ( | MainWindow * | mum, |
QString | nom, | ||
qreal | x, | ||
qreal | y, | ||
QGraphicsItem * | parent, | ||
QCustomGraphicsScene * | laScene, | ||
QStringList | listeChamps, | ||
bool | isAssoc | ||
) |
mum | the mainwindow |
nom | name of the association it can be a verb but it's better if it's a name |
x | position x of the left up corner |
y | position y of the upper left corner |
parent | |
laScene | QScene |
listeChamps | a list of the fields the relation contains |
isAssoc | true it can be an assoc or leak entity as a room for an hotel This is the only constructor. |
Definition at line 5 of file association.cpp.
void Association::paint | ( | QPainter * | painter, |
const QStyleOptionGraphicsItem * | option, | ||
QWidget * | widget | ||
) |
paint association
painter | |
option | |
widget | Paints the association on the scene |
Definition at line 21 of file association.cpp.
QVector< Entite * > Association::vectEntitesAssociees | ( | ) |
vectEntitesAssociees
Definition at line 99 of file association.cpp.