20#include "../../qetapp.h"
53 enum {
Type = UserType + 1107 };
60 QString
name()
const override {
return(QObject::tr(
"texte",
"element part name")); }
61 QString
xmlName()
const override {
return(QString(
"text")); }
62 void fromXml(
const QDomElement &)
override;
63 const QDomElement
toXml(QDomDocument &)
const override;
70 void setProperty(
const char *
name,
const QVariant &value)
override {QGraphicsTextItem::setProperty(
name, value);}
71 QVariant
property(
const char *
name)
const override {
return QGraphicsTextItem::property(
name);}
93 QVariant
itemChange(GraphicsItemChange,
const QVariant &)
override;
The CustomElementPart class This abstract class represents a primitive of the visual representation o...
Definition customelementpart.h:40
Definition elementprimitivedecorator.h:42
void startEdition()
Definition parttext.cpp:337
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
Definition parttext.cpp:281
QString xmlName() const override
Definition parttext.h:61
void keyPressEvent(QKeyEvent *) override
PartText::keyPressEvent Used to handle the escape key when the event is delivered to the field,...
Definition parttext.cpp:161
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
Definition parttext.cpp:271
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *) override
Definition parttext.cpp:174
void endEdition()
Definition parttext.cpp:347
void setProperty(const char *name, const QVariant &value) override
Definition parttext.h:70
@ Type
Definition parttext.h:53
void fontChanged(const QFont &font)
int type() const override
Definition parttext.h:59
void setRotation(qreal angle)
Definition parttext.h:64
bool isUseless() const override
Definition parttext.cpp:210
QPointF m_origine_pos
Definition parttext.h:103
void adjustItemPosition(int=0)
Definition parttext.cpp:309
QVariant property(const char *name) const override
Definition parttext.h:71
void handleUserTransformation(const QRectF &, const QRectF &) override
Definition parttext.cpp:239
void setRealSize(qreal rs)
Definition parttext.h:74
QVariant itemChange(GraphicsItemChange, const QVariant &) override
Definition parttext.cpp:186
void setPlainText(const QString &text)
Definition parttext.cpp:257
QString text
Definition parttext.h:35
QGraphicsItem * decorator_
Definition parttext.h:102
void plainTextChanged(const QString &text)
qreal real_font_size_
Definition parttext.h:99
void focusInEvent(QFocusEvent *) override
PartText::focusInEvent.
Definition parttext.cpp:138
QFont font
Definition parttext.h:36
QRectF boundingRect() const override
Definition parttext.cpp:198
void setEditable(bool)
Definition parttext.cpp:322
QString previous_text
Definition parttext.h:98
qreal realSize() const
Definition parttext.h:73
void startUserTransformation(const QRectF &) override
Definition parttext.cpp:230
void setDefaultTextColor(const QColor &color)
Definition parttext.cpp:250
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
Definition parttext.cpp:288
qreal saved_font_size_
Definition parttext.h:101
void setFont(const QFont &font)
Definition parttext.cpp:264
QColor color
Definition parttext.h:34
QPointF margin() const
Definition parttext.cpp:117
void focusOutEvent(QFocusEvent *) override
PartText::focusOutEvent.
Definition parttext.cpp:149
qreal real_size
Definition parttext.h:33
QPointF saved_point_
Definition parttext.h:100
const QDomElement toXml(QDomDocument &) const override
Definition parttext.cpp:100
void fromXml(const QDomElement &) override
Definition parttext.cpp:70
QRectF sceneGeometricRect() const override
Definition parttext.cpp:221
QString name() const override
Definition parttext.h:60
void colorChanged(const QColor &color)
Definition qetelementeditor.h:39
Definition texteditor.h:34
qreal correctAngle(const qreal &, const bool &positive=false)
Definition qet.cpp:582