2007-06-30 17:41:07 +00:00
|
|
|
#ifndef TEXT_EDITOR_H
|
|
|
|
#define TEXT_EDITOR_H
|
|
|
|
#include <QtGui>
|
2007-08-25 03:43:05 +00:00
|
|
|
#include "elementitemeditor.h"
|
2007-06-30 17:41:07 +00:00
|
|
|
class PartText;
|
|
|
|
/**
|
|
|
|
Cette classe represente un editeur de champ de texte non editable
|
|
|
|
Elle permet d'editer a travers une interface graphique les
|
|
|
|
proprietes d'un champ de texte non editable.
|
|
|
|
*/
|
2007-08-25 03:43:05 +00:00
|
|
|
class TextEditor : public ElementItemEditor {
|
2007-06-30 17:41:07 +00:00
|
|
|
Q_OBJECT
|
|
|
|
// Constructeurs, destructeur
|
|
|
|
public:
|
2007-08-25 03:43:05 +00:00
|
|
|
TextEditor(QETElementEditor *, PartText *, QWidget * = 0);
|
2007-06-30 17:41:07 +00:00
|
|
|
virtual ~TextEditor();
|
|
|
|
private:
|
|
|
|
TextEditor(const TextEditor &);
|
|
|
|
|
|
|
|
// attributs
|
|
|
|
private:
|
|
|
|
PartText *part;
|
|
|
|
QLineEdit *qle_x, *qle_y, *qle_text;
|
|
|
|
QSpinBox *font_size;
|
|
|
|
|
|
|
|
// methodes
|
|
|
|
public slots:
|
|
|
|
void updateText();
|
2007-08-25 03:43:05 +00:00
|
|
|
void updateTextX();
|
|
|
|
void updateTextY();
|
|
|
|
void updateTextT();
|
|
|
|
void updateTextS();
|
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
|