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

The MainWindow class main code of application. More...

#include <mainwindow.h>

Inheritance diagram for MainWindow:
Inheritance graph
Collaboration diagram for MainWindow:
Collaboration graph

Public Slots

void tableSupprimer (Entite *laTableASupprimer, bool demanderConfirmation=true)
 tableSupprimer More...
 
void on_listWidgetObjects_itemActivated (QListWidgetItem *item)
 on_listWidgetObjects_itemActivated More...
 
void jointure (Entite *, Entite *)
 jointure jointure demandée entre deux tables de la scene
 
EntitegetEntiteByName (QString nom)
 getEntiteByName More...
 
void supprimerLien (Lien *leLien)
 supprimerLien More...
 
void ajouteTable (Entite *t)
 ajouteTable More...
 
void tableAjouterChamp (Entite *lEntite, QString nomDuChamp="property name", QString typeDuChamp="Son type", QString roleDuChamp="Son rôle dans l'objet", QString tailleDuChamp="")
 tableAjouterChamp More...
 
void setFileName (QString fn)
 setFileName More...
 
void editProperty (Property *laPropriete)
 editProperty More...
 
void selectionne (Entite *lEntite)
 selectionne More...
 
void selectionne (Property *)
 selectionne used to programatically select a field
 
void on_pushButtonModifyProperty_clicked ()
 on_pushButtonModifyProperty_clicked whenever modify property is called
 
void activeDesactiveBoutonApply ()
 activeDesactiveBoutonApply enable or disable apply button regarding ok application state
 
void activeDesactiveInputTaille ()
 activeDesactiveInputTaille Somme fields need size as varchar
 

Public Member Functions

 MainWindow (QWidget *parent=0)
 MainWindow::MainWindow. More...
 
QCustomGraphicsScenegetScene ()
 getScene More...
 
void effaceTout ()
 effaceTout remove all from vectors and scene
 

Public Attributes

QVector< Lien * > vectLiens
 vectLiens all links
 
QVector< Entite * > vectTable
 vectTable all entities and relations
 
int prochainX
 prochainX when adding entity it will be drawn there left distance from beginning
 
Ui::MainWindow * ui
 

Protected Member Functions

void closeEvent (QCloseEvent *event)
 closeEvent More...
 

Detailed Description

The MainWindow class main code of application.

Definition at line 20 of file mainwindow.h.

Constructor & Destructor Documentation

MainWindow::MainWindow ( QWidget *  parent = 0)
explicit

MainWindow::MainWindow.

Parameters
parentle constructeur

Definition at line 23 of file mainwindow.cpp.

Here is the call graph for this function:

Member Function Documentation

void MainWindow::ajouteTable ( Entite t)
slot

ajouteTable

Parameters
tadd object to scene

Definition at line 124 of file mainwindow.cpp.

Here is the caller graph for this function:

void MainWindow::closeEvent ( QCloseEvent *  event)
protected

closeEvent

MainWindow::closeEvent.

Parameters
eventsurcharge du closeEvent pour proposer de sauver si besoin needed to ask user to save his work whenever necessary
eventsurcharge du closeEvent pour ne fermer que lorsque l'utilisateur confirme vouloir quitter l'application

Definition at line 96 of file mainwindow.cpp.

void MainWindow::editProperty ( Property laPropriete)
slot

editProperty

Parameters
laProprieteto modify field name or field type

Definition at line 173 of file mainwindow.cpp.

Entite * MainWindow::getEntiteByName ( QString  nom)
slot

getEntiteByName

Parameters
nom
Returns
Entity whose name is nom

Definition at line 608 of file mainwindow.cpp.

Here is the caller graph for this function:

QCustomGraphicsScene* MainWindow::getScene ( )
inline

getScene

Returns
accessor for scene

Definition at line 71 of file mainwindow.h.

Here is the caller graph for this function:

void MainWindow::on_listWidgetObjects_itemActivated ( QListWidgetItem item)
slot

on_listWidgetObjects_itemActivated

MainWindow::on_listWidgetObjects_itemActivated.

Parameters
itemwhen an object is selected in the list
itemSélection d'un objet dans la liste On affiche ses propriétés dans la tableWidget

Definition at line 221 of file mainwindow.cpp.

Here is the caller graph for this function:

void MainWindow::selectionne ( Entite lEntite)
slot

selectionne

Parameters
lEntiteused to programatically select an entity

Definition at line 154 of file mainwindow.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MainWindow::setFileName ( QString  fn)
slot

setFileName

Parameters
fnaccessor for filename (opened file)

Definition at line 149 of file mainwindow.cpp.

Here is the caller graph for this function:

void MainWindow::supprimerLien ( Lien leLien)
slot

supprimerLien

Parameters
leLienremove a link

Definition at line 426 of file mainwindow.cpp.

Here is the caller graph for this function:

void MainWindow::tableAjouterChamp ( Entite lEntite,
QString  nomDuChamp = "property name",
QString  typeDuChamp = "Son type",
QString  roleDuChamp = "Son rôle dans l'objet",
QString  tailleDuChamp = "" 
)
slot

tableAjouterChamp

Parameters
lEntite
nomDuChamp
typeDuChamp
roleDuChamp
tailleDuChampadd field to object

Definition at line 134 of file mainwindow.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void MainWindow::tableSupprimer ( Entite laTableASupprimer,
bool  demanderConfirmation = true 
)
slot

tableSupprimer

Parameters
laTableASupprimer
demanderConfirmationto delete an object from scene

Definition at line 332 of file mainwindow.cpp.

Here is the caller graph for this function:


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