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
field.h
1 #ifndef PROPERTY_H
2 #define PROPERTY_H
3 
4 #include <QGraphicsTextItem>
5 #include <QGraphicsPixmapItem>
6 #include <QTextDocument>
7 #include "types.h"
8 #include "entite.h"
9 #include "dialogrelation.h"
10 
11 class Entite;
12 class dialogRelation;
14 {
15  Q_OBJECT
16 private:
17  dialogRelation * maman;
18 
19 public:
20  enum { Type = FIELD};
21  int type() const
22  {
23  // Enable the use of qgraphicsitem_cast with this item.
24  return Type;
25  }
26  //constructeur
27  Property(dialogRelation* mum ,bool,QGraphicsScene* pScene,QString pName="'something'",QGraphicsItem* pParent=0);
28  //destructeur
29  ~Property();
30  //affiche: true si le champ est à afficher
31  bool affiche;
32  //graphisme, visuel
33  QGraphicsPixmapItem * oeil;
34  QGraphicsPixmapItem * iconSort;
35  QGraphicsTextItem * cond;//condition: exemple ='Dupond'
36  QGraphicsLineItem * trait;//trait entre le champ et la condition
37  //son nom
38  QString nomInitial;
39  //son alias
40  QString alias;
41  //en dehors des tables
42  bool freeField;
43  Entite * laTable;//table dans laquelle il est NULL si pas de table
44  enum typeDeTri{noSort,ascSort,descSort} tri;
45  //son numéro dans le tri
46  int numeroDansLeTri;
47  //son numéro dans le select
48  int numeroOrdreDansLeSelect;
49 
50 
51  //quelques méthodes
52  //menu contextuel
53  void contextMenuEvent(QGraphicsSceneMouseEvent *event);
54  QString getNomComplet();
55 
56  QString getTri();//renvoie le numéro d'ordre dans le tri
57  void dropEvent( QGraphicsSceneDragDropEvent* event);
58  void dragEnterEvent( QGraphicsSceneDragDropEvent* event);
59  void dragMoveEvent(QGraphicsSceneDragDropEvent *event);
60  void ajouteCondition(QString texteCondition);
61  void modifieCondition(QString);
62  signals:
63  void jAiChange();
64 };
65 
66 #endif // FIELD_H
The Property class property is a field it can be placed into entity or relation.
Definition: field.h:13
The Entite class Entity is an object we have to deal with.
Definition: entite.h:20