2007-06-30 17:41:07 +00:00
|
|
|
#ifndef TERMINAL_EDITOR_H
|
|
|
|
#define TERMINAL_EDITOR_H
|
|
|
|
#include <QtGui>
|
2007-08-25 03:43:05 +00:00
|
|
|
#include "elementitemeditor.h"
|
2007-06-30 17:41:07 +00:00
|
|
|
class PartTerminal;
|
|
|
|
/**
|
|
|
|
Cette classe represente un editeur de borne.
|
|
|
|
Elle permet d'editer a travers une interface graphique les
|
2007-08-18 04:42:39 +00:00
|
|
|
proprietes d'une borne d'element.
|
2007-06-30 17:41:07 +00:00
|
|
|
*/
|
2007-08-25 03:43:05 +00:00
|
|
|
class TerminalEditor : public ElementItemEditor {
|
2007-06-30 17:41:07 +00:00
|
|
|
Q_OBJECT
|
|
|
|
// Constructeurs, destructeur
|
|
|
|
public:
|
2007-08-25 03:43:05 +00:00
|
|
|
TerminalEditor(QETElementEditor *, PartTerminal *, QWidget * = 0);
|
2007-06-30 17:41:07 +00:00
|
|
|
virtual ~TerminalEditor();
|
|
|
|
private:
|
|
|
|
TerminalEditor(const TerminalEditor &);
|
|
|
|
|
|
|
|
// attributs
|
|
|
|
private:
|
|
|
|
PartTerminal *part;
|
|
|
|
QLineEdit *qle_x, *qle_y;
|
|
|
|
QComboBox *orientation;
|
|
|
|
|
|
|
|
// methodes
|
|
|
|
public slots:
|
|
|
|
void updateTerminal();
|
2007-08-25 03:43:05 +00:00
|
|
|
void updateTerminalX();
|
|
|
|
void updateTerminalY();
|
|
|
|
void updateTerminalO();
|
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
|