mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Ajout du fichier Doxyfile pour parametrer la generation de la documentation git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@191 bfdf4180-ca20-0410-9c96-a3a8aa849046
42 lines
834 B
C++
42 lines
834 B
C++
#ifndef POLYGON_EDITOR_H
|
|
#define POLYGON_EDITOR_H
|
|
#include "elementitemeditor.h"
|
|
class PartPolygon;
|
|
/**
|
|
Cette classe represente le widget d'edition d'un polygone dans l'editeur
|
|
d'element.
|
|
*/
|
|
class PolygonEditor : public ElementItemEditor {
|
|
|
|
Q_OBJECT
|
|
|
|
// constructeurs, destructeur
|
|
public:
|
|
PolygonEditor(QETElementEditor *, PartPolygon *, QWidget * = 0);
|
|
virtual ~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
|