diff --git a/elementperso.cpp b/elementperso.cpp index fb4cce1ef..dcb81343d 100644 --- a/elementperso.cpp +++ b/elementperso.cpp @@ -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 diff --git a/elementperso.h b/elementperso.h index 47a04bf2e..1b82e9b38 100644 --- a/elementperso.h +++ b/elementperso.h @@ -1,8 +1,8 @@ #ifndef ELEMENTPERSO_H #define ELEMENTPERSO_H - #include "elementfixe.h" + #include "fixedelement.h" #include - class ElementPerso : public ElementFixe { + class ElementPerso : public FixedElement { public: ElementPerso(QString &, QGraphicsItem * = 0, Diagram * = 0, int * = NULL); virtual int nbTerminals() const; diff --git a/elementfixe.cpp b/fixedelement.cpp similarity index 90% rename from elementfixe.cpp rename to fixedelement.cpp index dc6286fbc..e7e6328b3 100644 --- a/elementfixe.cpp +++ b/fixedelement.cpp @@ -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 &table_id_adr) { +bool FixedElement::fromXml(QDomElement &e, QHash &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 diff --git a/elementfixe.h b/fixedelement.h similarity index 80% rename from elementfixe.h rename to fixedelement.h index 84b76412f..55ca20957 100644 --- a/elementfixe.h +++ b/fixedelement.h @@ -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&); diff --git a/qelectrotech.pro b/qelectrotech.pro index f6b2136fc..393d6b162 100644 --- a/qelectrotech.pro +++ b/qelectrotech.pro @@ -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 \