mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 02:10:52 +01:00
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@99 bfdf4180-ca20-0410-9c96-a3a8aa849046
33 lines
735 B
C++
33 lines
735 B
C++
#ifndef TEXTFIELD_EDITOR_H
|
|
#define TEXTFIELD_EDITOR_H
|
|
#include <QtGui>
|
|
class PartTextField;
|
|
/**
|
|
Cette classe represente un editeur de champ de texte
|
|
Elle permet d'editer a travers une interface graphique les
|
|
proprietes d'un champ de texte : taille de la police, texte par
|
|
defaut et position.
|
|
*/
|
|
class TextFieldEditor : public QWidget {
|
|
Q_OBJECT
|
|
// Constructeurs, destructeur
|
|
public:
|
|
TextFieldEditor(PartTextField *, QWidget * = 0);
|
|
virtual ~TextFieldEditor();
|
|
private:
|
|
TextFieldEditor(const TextFieldEditor &);
|
|
|
|
// attributs
|
|
private:
|
|
PartTextField *part;
|
|
QLineEdit *qle_x, *qle_y, *qle_text;
|
|
QSpinBox *font_size;
|
|
QCheckBox *rotate;
|
|
|
|
// methodes
|
|
public slots:
|
|
void updateTextField();
|
|
void updateForm();
|
|
};
|
|
#endif
|