Files
qelectrotech-source-mirror/editor/polygoneditor.h
xavierqet 853827f25c Gestion du "Clean State" dans l'editeur
Correction d'un bug avec les polygones.
Amelioration du mode lecture seule.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@107 bfdf4180-ca20-0410-9c96-a3a8aa849046
2007-08-25 15:46:09 +00:00

39 lines
767 B
C++

#ifndef POLYGON_EDITOR_H
#define POLYGON_EDITOR_H
#include "elementitemeditor.h"
class PartPolygon;
class PolygonEditor : public ElementItemEditor {
Q_OBJECT
// constructeurs, destructeur
public:
PolygonEditor(QETElementEditor *, PartPolygon *, QWidget * = 0);
~PolygonEditor() {
qDebug() << "~PolygonEditor()";
}
private:
PolygonEditor(const PolygonEditor &);
// attributs
private:
PartPolygon *part;
QTreeWidget points_list;
QCheckBox close_polygon;
// methodes
private:
QVector<QPointF> getPointsFromTree();
public slots:
void updatePolygon();
void updatePolygonPoints();
void updatePolygonClosedState();
void updateForm();
void validColumn(QTreeWidgetItem *qtwi, int column);
private:
void activeConnections(bool);
};
#endif