mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-27 07:39:58 +02:00
Import initial
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
30
elementperso.h
Normal file
30
elementperso.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef ELEMENTPERSO_H
|
||||
#define ELEMENTPERSO_H
|
||||
#include "elementfixe.h"
|
||||
#include <QtGui>
|
||||
class ElementPerso : public ElementFixe {
|
||||
public:
|
||||
ElementPerso(QString &, QGraphicsItem * = 0, Schema * = 0, int * = NULL);
|
||||
virtual int nbBornes() const;
|
||||
virtual void paint(QPainter *, const QStyleOptionGraphicsItem *);
|
||||
QString typeId() { return(nomfichier); }
|
||||
QString fichier() { return(nomfichier); }
|
||||
bool isNull() { return(elmt_etat != 0); }
|
||||
int etat() { return(elmt_etat); }
|
||||
QString nom() { return(priv_nom); }
|
||||
|
||||
private:
|
||||
int elmt_etat; // contient le code d'erreur si l'instanciation a echoue ou 0 si l'instanciation s'est bien passe
|
||||
QString priv_nom;
|
||||
QString nomfichier;
|
||||
QPicture dessin;
|
||||
bool parseElement(QDomElement &, QPainter &, Schema *);
|
||||
bool parseLigne(QDomElement &, QPainter &);
|
||||
bool parseCercle(QDomElement &, QPainter &);
|
||||
bool parsePolygone(QDomElement &, QPainter &);
|
||||
bool parseBorne(QDomElement &, Schema *);
|
||||
void setQPainterAntiAliasing(QPainter *, bool);
|
||||
int attributeIsAnInteger(QDomElement &, QString, int * = NULL);
|
||||
int nb_bornes;
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user