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
Lien Class Reference

The Lien class a link is betwwen to objects it contains a line a role text cardinality ... More...

#include <lien.h>

Inheritance diagram for Lien:
Inheritance graph
Collaboration diagram for Lien:
Collaboration graph

Public Types

enum  { Type = LIEN }
 

Public Member Functions

int type () const
 
 Lien (Entite *qg1, Entite *qg2, QGraphicsItem *parent, QString typ="Natural", QString relationName="", QString pRole="")
 Lien. More...
 
void contextMenuEvent (QGraphicsSceneMouseEvent *event)
 contextMenuEvent More...
 
bool estRelieA (Lien *autreLien)
 estRelieA More...
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)
 paint More...
 
QRectF boundingRect () const
 boundingRect More...
 

Public Attributes

QGraphicsLineItem * line
 line the line
 
Entitet1
 t1 first object
 
Entitet2
 t2 second object
 
QGraphicsSimpleTextItem * cardinalite1
 cardinalite1 example:0,1 or 1,1 or 0,n
 
QGraphicsSimpleTextItem * cardinalite2
 cardinalite2 example:0,1 or 1,1 or 0,n
 
QGraphicsSimpleTextItem * role
 role if there are several links between two same objects
 
QString texteDuRole
 texteDuRole example: chief
 
QString typeDeJointure
 typeDeJointure cif –1,1–CIF–0,n–> df –0,1–DF–0,n–>or leg --------—
 
QGraphicsEllipseItem * leRond
 leRond Pour les cifs et dfs et entités faibles le rond central
 
QGraphicsTextItemleTexteDuRond
 leTexteDuRond text writen into central disk
 

Detailed Description

The Lien class a link is betwwen to objects it contains a line a role text cardinality ...

Definition at line 17 of file lien.h.

Constructor & Destructor Documentation

Lien::Lien ( Entite qg1,
Entite qg2,
QGraphicsItem *  parent,
QString  typ = "Natural",
QString  relationName = "",
QString  pRole = "" 
)

Lien.

Parameters
qg1
qg2
parent
typ
relationName
pRolethis is constructor

Definition at line 31 of file lien.cpp.

Here is the call graph for this function:

Member Function Documentation

QRectF Lien::boundingRect ( ) const

boundingRect

Returns
his limits

Definition at line 393 of file lien.cpp.

Here is the caller graph for this function:

void Lien::contextMenuEvent ( QGraphicsSceneMouseEvent *  event)

contextMenuEvent

Parameters
eventshow context Menu

Definition at line 482 of file lien.cpp.

Here is the call graph for this function:

bool Lien::estRelieA ( Lien autreLien)

estRelieA

Parameters
autreLien
Returns
true if there is another link with same source or same destination

Definition at line 535 of file lien.cpp.

void Lien::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  ,
QWidget *   
)

paint

Parameters
painterused to paint the link

Definition at line 173 of file lien.cpp.

Here is the call graph for this function:


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