2007-06-30 17:41:07 +00:00
|
|
|
#ifndef LINE_EDITOR_H
|
|
|
|
#define LINE_EDITOR_H
|
|
|
|
#include <QtGui>
|
2007-08-25 03:43:05 +00:00
|
|
|
#include "elementitemeditor.h"
|
2007-06-30 17:41:07 +00:00
|
|
|
class PartLine;
|
2007-08-25 03:43:05 +00:00
|
|
|
class LineEditor : public ElementItemEditor {
|
2007-06-30 17:41:07 +00:00
|
|
|
Q_OBJECT
|
|
|
|
//constructeurs, destructeur
|
|
|
|
public:
|
2007-08-25 03:43:05 +00:00
|
|
|
LineEditor(QETElementEditor *, PartLine *, QWidget * = 0);
|
2007-06-30 17:41:07 +00:00
|
|
|
~LineEditor();
|
|
|
|
private:
|
|
|
|
LineEditor(const LineEditor &);
|
|
|
|
|
|
|
|
// attributs
|
|
|
|
private:
|
|
|
|
PartLine *part;
|
|
|
|
QLineEdit *x1, *y1, *x2, *y2;
|
|
|
|
|
|
|
|
// methodes
|
|
|
|
public slots:
|
|
|
|
void updateLine();
|
2007-08-25 03:43:05 +00:00
|
|
|
void updateLineX1();
|
|
|
|
void updateLineY1();
|
|
|
|
void updateLineX2();
|
|
|
|
void updateLineY2();
|
2007-06-30 17:41:07 +00:00
|
|
|
void updateForm();
|
2007-08-25 03:43:05 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void activeConnections(bool);
|
2007-06-30 17:41:07 +00:00
|
|
|
};
|
|
|
|
#endif
|