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
customgraphicsview.h
1 #ifndef CUSTOMGRAPHICSVIEW_H
2 #define CUSTOMGRAPHICSVIEW_H
3 
4 #include <QGraphicsView>
5 #include <QMouseEvent>
6 #include <QDragEnterEvent>
7 #include <QDragMoveEvent>
8 #include <QDropEvent>
9 #include <QObject>
10 #include "entite.h"
11 
18 {
19  Q_OBJECT
20 public:
26  customGraphicsView(QWidget * parent):QGraphicsView(parent){};
32  void dragEnterEvent(QDragEnterEvent *event);
38  void dragMoveEvent(QDragMoveEvent *event);
44  void dropEvent(QDropEvent *event);
49  QString delimiteur;
50 //this class emits signals that are plugged into slots
51 signals:
60  void ilYADesTablesAAjouter(QPoint);
66  void supprimerTable(QString nomTable);
67 public slots:
72  void zoomIn();
77  void zoomOut();
78 };
79 #endif // CUSTOMGRAPHICSVIEW_H
void zoomIn()
zoomIn Zoom In items are biggest
customGraphicsView(QWidget *parent)
customGraphicsView
void ilYADesTablesAAjouter(QPoint)
ilYADesTablesAAjouter
void dropEvent(QDropEvent *event)
dropEvent
void dragEnterEvent(QDragEnterEvent *event)
dragEnterEvent
void supprimerTable(QString nomTable)
supprimerTable
QString delimiteur
delimiteur used to separate informations in the mimedata
void jointureRequise(Entite *, Entite *)
jointureRequise User wants to link two Objects.
void zoomOut()
zoomOut Zoom out items are smaller
void dragMoveEvent(QDragMoveEvent *event)
dragMoveEvent
The Entite class Entity is an object we have to deal with.
Definition: entite.h:20
The customGraphicsView class I had to create my own class to deal with drag and drop I use drag and d...