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
property.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 "mainwindow.h"
10 
11 class Entite;
12 class MainWindow;
17 class Property : public QGraphicsTextItem
18 {
19  Q_OBJECT
20 private:
21  MainWindow * maman;
22 
23 public:
24  enum { Type = FIELD};
25  int type() const
26  {
27  // Enable the use of qgraphicsitem_cast with this item.
28  return Type;
29  }
30  //constructeur
42  Property(MainWindow* mum ,bool,QGraphicsScene* pScene,QString pName="'something'",QString pType="", QString pRole="",QString pTaille="",QGraphicsItem* pParent=0);
43  //destructeur
44  ~Property();
45  //son nom
50  QString nom;
51  //en dehors des tables
52  bool freeField;
53  //table dans laquelle il est NULL si pas de table
59  //
64  QString sonType;
65  //son role
70  QString role;
75  QString taille;
76  //quelques méthodes
77  //menu contextuel
83  void contextMenuEvent(QGraphicsSceneMouseEvent *event);
88  QString getNomComplet(){return nom;}
89 
90  void dropEvent( QGraphicsSceneDragDropEvent* event);
91  void dragEnterEvent( QGraphicsSceneDragDropEvent* event);
92  void dragMoveEvent(QGraphicsSceneDragDropEvent *event);
97  QString toSql();
102  void emmettreSelected(){emit jeSuisSelectionne(this);}
103  signals:
104  void jeSuisSelectionne(Property *);
105 };
106 
107 #endif // PROPERTY_H
QString toSql()
toSql
Definition: property.cpp:97
QString sonType
sonType his type ex varchar(25) ou integer
Definition: property.h:64
Entite * lEntite
lEntite object wich contains it
Definition: property.h:58
QString role
role his role ex father our chief ...
Definition: property.h:70
QString getNomComplet()
getNomComplet
Definition: property.h:88
QString taille
taille whenever field type need size
Definition: property.h:75
The Property class property is a field it can be placed into entity or relation.
Definition: field.h:13
void emmettreSelected()
emmettreSelected emit signal wich is used by application when field is selected
Definition: property.h:102
QString nom
nom his name example weight
Definition: property.h:50
The Entite class Entity is an object we have to deal with.
Definition: entite.h:20
The MainWindow class main code of application.
Definition: mainwindow.h:20