mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-14 20:33:05 +02:00
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@94 bfdf4180-ca20-0410-9c96-a3a8aa849046
31 lines
633 B
C++
31 lines
633 B
C++
#ifndef TEXT_EDITOR_H
|
|
#define TEXT_EDITOR_H
|
|
#include <QtGui>
|
|
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.
|
|
*/
|
|
class TextEditor : public QWidget {
|
|
Q_OBJECT
|
|
// Constructeurs, destructeur
|
|
public:
|
|
TextEditor(PartText *, QWidget * = 0);
|
|
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();
|
|
void updateForm();
|
|
};
|
|
#endif
|