#ifndef TEXTEDITOR_H
#define TEXTEDITOR_H
#include <QLabel>

class texteditor : public QLabel
{
	Q_OBJECT
	public:
		texteditor(QWidget * parent);
		int textx;
		int texty;
		int oldx;
		int oldy;
		int oldmx;
		int oldmy;
		int isdragging;
		int alignement;
		QPoint posdep;
		QPoint posend;
		QString current_text;
		QPixmap img2fond;
		QFont myfont;
		QColor mycolor;
		int size;
		int leading;
		int fheight;
		int opacity;
		int size_dia_x;
		int size_dia_y;
		QColor backcolor;
		QSize myrect;
	public:
		void setMyText(QString);
	private:
	protected:
		void mousePressEvent ( QMouseEvent * event );
		void mouseReleaseEvent ( QMouseEvent * event );
		void mouseMoveEvent ( QMouseEvent * event );
		void paintEvent(QPaintEvent *);
};
#endif
