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
mainwindow.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #include <QMainWindow>
5 #include "qcustomgraphicsscene.h"
6 #include <QWidget>
7 #include "entite.h"
8 #include "lien.h"
9 class Entite;
10 class Lien;
11 class Property;
12 
13 namespace Ui {
14 class MainWindow;
15 }
20 class MainWindow : public QMainWindow
21 {
22  Q_OBJECT
23 private:
28  QCustomGraphicsScene * maScene;
33  bool saved;
38  QString fileName;
39 
40 protected:
47  void closeEvent(QCloseEvent *event);
48 public:
49  explicit MainWindow(QWidget *parent = 0);
50  ~MainWindow();
55  QVector <Lien*> vectLiens;
60  QVector <Entite *> vectTable;
65  int prochainX;
71  QCustomGraphicsScene* getScene(){return maScene;}
72  Ui::MainWindow *ui;
77  void effaceTout();
78 public slots:
85  void tableSupprimer(Entite * laTableASupprimer,bool demanderConfirmation=true);
96  void jointure(Entite*,Entite*);
102  Entite* getEntiteByName(QString nom);
108  void supprimerLien(Lien * leLien);
114  void ajouteTable(Entite* t);
124  void tableAjouterChamp(Entite * lEntite,QString nomDuChamp="property name",QString typeDuChamp="Son type", QString roleDuChamp="Son rôle dans l'objet",QString tailleDuChamp="");
130  void setFileName(QString fn);
136  void editProperty(Property *laPropriete);
142  void selectionne(Entite *lEntite);
147  void selectionne(Property*);
163 private slots:
168  void on_action_quitter_triggered();
173  void on_action_Add_Entity_triggered();
174 
175  void on_pushButtonAddObject_clicked();
176 
177  void on_action_Object_list_triggered(bool checked);
178 
179  void on_pushButtonAddProperty_clicked();
180 
181  void on_tableWidgetProperties_cellChanged(int row, int column);
182 
183  void on_lineEditObjectName_textChanged(const QString &arg1);
188  void on_actionLink_triggered();
193  void on_actionMove_triggered();
198  void on_actionSave_triggered();
203  void on_action_Open_triggered();
208  void on_actionZoom_Best_triggered();
213  void on_actionZoom_2_triggered();
218  void on_actionZoom_triggered();
224  void on_action_sql_triggered(bool checked);
229  void on_actionAbout_Qt_triggered();
234  void on_action_About_triggered();
235  void on_action_Properties_triggered(bool checked);
240  void setSaved(bool);
245  void on_tableWidgetProperties_itemSelectionChanged();
250  void on_actionNew_Document_triggered();
255  void on_listWidgetObjects_itemSelectionChanged();
256 };
257 
258 #endif // MAINWINDOW_H
void setFileName(QString fn)
setFileName
Definition: mainwindow.cpp:149
The QCustomGraphicsScene class This class is designed to deal with mouse events.
QCustomGraphicsScene * getScene()
getScene
Definition: mainwindow.h:71
void selectionne(Entite *lEntite)
selectionne
Definition: mainwindow.cpp:154
QVector< Entite * > vectTable
vectTable all entities and relations
Definition: mainwindow.h:60
void tableAjouterChamp(Entite *lEntite, QString nomDuChamp="property name", QString typeDuChamp="Son type", QString roleDuChamp="Son rôle dans l'objet", QString tailleDuChamp="")
tableAjouterChamp
Definition: mainwindow.cpp:134
void supprimerLien(Lien *leLien)
supprimerLien
Definition: mainwindow.cpp:426
void activeDesactiveInputTaille()
activeDesactiveInputTaille Somme fields need size as varchar
Definition: mainwindow.cpp:695
The Lien class a link is betwwen to objects it contains a line a role text cardinality ...
Definition: lien.h:17
void on_listWidgetObjects_itemActivated(QListWidgetItem *item)
on_listWidgetObjects_itemActivated
Definition: mainwindow.cpp:221
void on_pushButtonModifyProperty_clicked()
on_pushButtonModifyProperty_clicked whenever modify property is called
Definition: mainwindow.cpp:242
void closeEvent(QCloseEvent *event)
closeEvent
Definition: mainwindow.cpp:96
int prochainX
prochainX when adding entity it will be drawn there left distance from beginning
Definition: mainwindow.h:65
MainWindow(QWidget *parent=0)
MainWindow::MainWindow.
Definition: mainwindow.cpp:23
void effaceTout()
effaceTout remove all from vectors and scene
Definition: mainwindow.cpp:61
The Property class property is a field it can be placed into entity or relation.
Definition: field.h:13
void jointure(Entite *, Entite *)
jointure jointure demandée entre deux tables de la scene
Definition: mainwindow.cpp:389
Entite * getEntiteByName(QString nom)
getEntiteByName
Definition: mainwindow.cpp:608
void editProperty(Property *laPropriete)
editProperty
Definition: mainwindow.cpp:173
void ajouteTable(Entite *t)
ajouteTable
Definition: mainwindow.cpp:124
void tableSupprimer(Entite *laTableASupprimer, bool demanderConfirmation=true)
tableSupprimer
Definition: mainwindow.cpp:332
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
QVector< Lien * > vectLiens
vectLiens all links
Definition: mainwindow.h:55
void activeDesactiveBoutonApply()
activeDesactiveBoutonApply enable or disable apply button regarding ok application state ...
Definition: mainwindow.cpp:683