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.
 All Classes Functions Variables
Association Class Reference

The Association class Association inherit Entite Association is a relation between at least two entities. More...

#include <association.h>

Inheritance diagram for Association:
Inheritance graph
Collaboration diagram for Association:
Collaboration graph

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...
 
- Public Member Functions inherited from Entite
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

- Public Types inherited from Entite
enum  { Type = TABLE }
 
- Public Slots inherited from Entite
int nbLien (Entite *lAutre)
 nbLien More...
 
- Public Attributes inherited from Entite
QGraphicsRectItemrectTitle
 rectTitle rectangle wich contains title
 
QGraphicsTextItemtitle
 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
 
MainWindowmaman
 maman the main window
 
bool association
 

Detailed Description

The Association class Association inherit Entite Association is a relation between at least two entities.

Definition at line 9 of file association.h.

Constructor & Destructor Documentation

Association::Association ( MainWindow mum,
QString  nom,
qreal  x,
qreal  y,
QGraphicsItem *  parent,
QCustomGraphicsScene laScene,
QStringList  listeChamps,
bool  isAssoc 
)

Association.

Parameters
mumthe mainwindow
nomname of the association it can be a verb but it's better if it's a name
xposition x of the left up corner
yposition y of the upper left corner
parent
laSceneQScene
listeChampsa list of the fields the relation contains
isAssoctrue 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.

Member Function Documentation

void Association::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)

paint association

Parameters
painter
option
widgetPaints the association on the scene

Definition at line 21 of file association.cpp.

QVector< Entite * > Association::vectEntitesAssociees ( )

vectEntitesAssociees

Returns
a vector with adresses of all linked entities

Definition at line 99 of file association.cpp.


The documentation for this class was generated from the following files: