mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@94 bfdf4180-ca20-0410-9c96-a3a8aa849046
36 lines
680 B
C++
36 lines
680 B
C++
#ifndef POLYGON_EDITOR_H
|
|
#define POLYGON_EDITOR_H
|
|
#include <QtGui>
|
|
class PartPolygon;
|
|
class PolygonEditor : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
// constructeurs, destructeur
|
|
public:
|
|
PolygonEditor(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);
|
|
};
|
|
#endif
|