Classe "ElementFixe" renommee en "FixedElement"

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@47 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-01-30 21:49:42 +00:00
parent 9d14e21360
commit 29d35a2007
5 changed files with 12 additions and 12 deletions

View File

@@ -20,7 +20,7 @@
- 7 : L'analyse d'un element XML decrivant une partie du dessin de l'element a echoue
- 8 : Aucune partie du dessin n'a pu etre chargee
*/
ElementPerso::ElementPerso(QString &nom_fichier, QGraphicsItem *qgi, Diagram *s, int *etat) : ElementFixe(qgi, s) {
ElementPerso::ElementPerso(QString &nom_fichier, QGraphicsItem *qgi, Diagram *s, int *etat) : FixedElement(qgi, s) {
nomfichier = nom_fichier;
nb_terminals = 0;
// pessimisme inside : par defaut, ca foire

View File

@@ -1,8 +1,8 @@
#ifndef ELEMENTPERSO_H
#define ELEMENTPERSO_H
#include "elementfixe.h"
#include "fixedelement.h"
#include <QtGui>
class ElementPerso : public ElementFixe {
class ElementPerso : public FixedElement {
public:
ElementPerso(QString &, QGraphicsItem * = 0, Diagram * = 0, int * = NULL);
virtual int nbTerminals() const;

View File

@@ -1,21 +1,21 @@
#include "elementfixe.h"
#include "fixedelement.h"
/**
Constructeur
*/
ElementFixe::ElementFixe(QGraphicsItem *parent, Diagram *scene) : Element(parent, scene) {
FixedElement::FixedElement(QGraphicsItem *parent, Diagram *scene) : Element(parent, scene) {
}
/**
@return Le nombre minimal de bornes que l'element peut avoir
*/
int ElementFixe::nbTerminalsMin() const {
int FixedElement::nbTerminalsMin() const {
return(nbTerminals());
}
/**
@return Le nombre maximal de bornes que l'element peut avoir
*/
int ElementFixe::nbTerminalsMax() const {
int FixedElement::nbTerminalsMax() const {
return(nbTerminals());
}
@@ -26,7 +26,7 @@ int ElementFixe::nbTerminalsMax() const {
@return true si l'import a reussi, false sinon
*/
bool ElementFixe::fromXml(QDomElement &e, QHash<int, Terminal *> &table_id_adr) {
bool FixedElement::fromXml(QDomElement &e, QHash<int, Terminal *> &table_id_adr) {
/*
les bornes vont maintenant etre recensees pour associer leurs id à leur adresse reelle
ce recensement servira lors de la mise en place des fils

View File

@@ -1,9 +1,9 @@
#ifndef ELEMENTFIXE_H
#define ELEMENTFIXE_H
#include "element.h"
class ElementFixe : public Element {
class FixedElement : public Element {
public:
ElementFixe(QGraphicsItem * = 0, Diagram * = 0);
FixedElement(QGraphicsItem * = 0, Diagram * = 0);
int nbTerminalsMin() const;
int nbTerminalsMax() const;
virtual bool fromXml(QDomElement &, QHash<int, Terminal *>&);

View File

@@ -13,7 +13,7 @@ HEADERS += aboutqet.h \
terminal.h \
conducer.h \
element.h \
elementfixe.h \
fixedelement.h \
elementperso.h \
exportdialog.h \
panelappareils.h \
@@ -25,7 +25,7 @@ SOURCES += aboutqet.cpp \
terminal.cpp \
conducer.cpp \
element.cpp \
elementfixe.cpp \
fixedelement.cpp \
elementperso.cpp \
exportdialog.cpp \
main.cpp \