|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
52 enum {
Type = UserType + 1107 };
59 QString
name()
const override {
return(
QObject::tr(
"texte",
"element part name")); }
60 QString
xmlName()
const override {
return(QString(
"text")); }
61 void fromXml(
const QDomElement &)
override;
62 const QDomElement
toXml(QDomDocument &)
const override;
69 void setProperty(
const char *
name,
const QVariant &value)
override {QGraphicsTextItem::setProperty(
name, value);}
70 QVariant
property(
const char *
name)
const override {
return QGraphicsTextItem::property(
name);}
92 QVariant
itemChange(GraphicsItemChange,
const QVariant &)
override;
void setRotation(qreal angle)
Definition: parttext.h:63
qreal realSize() const
Definition: parttext.h:72
Definition: elementprimitivedecorator.h:41
~PartText() override
Destructeur.
Definition: parttext.cpp:61
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *) override
Definition: parttext.cpp:170
@ Type
Definition: parttext.h:52
qreal real_size
Definition: parttext.h:32
Definition: texteditor.h:32
QString text
Definition: parttext.h:34
QRectF boundingRect() const override
Definition: parttext.cpp:194
void fontChanged(const QFont &font)
qreal saved_font_size_
Definition: parttext.h:100
void startEdition()
Definition: parttext.cpp:330
void setProperty(const char *name, const QVariant &value) override
Definition: parttext.h:69
void setRealSize(qreal rs)
Definition: parttext.h:73
virtual QUndoStack & undoStack() const
Definition: customelementpart.cpp:42
void keyPressEvent(QKeyEvent *) override
PartText::keyPressEvent Used to handle the escape key when the event is delivered to the field,...
Definition: parttext.cpp:157
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
Definition: parttext.cpp:264
qreal real_font_size_
Definition: parttext.h:98
QVariant property(const char *name) const override
Definition: parttext.h:70
virtual void updateCurrentPartEditor() const
Definition: customelementpart.cpp:30
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
Definition: parttext.cpp:274
void setEditable(bool)
Definition: parttext.cpp:315
qreal correctAngle(const qreal &)
Definition: qet.cpp:545
void setPlainText(const QString &text)
Definition: parttext.cpp:250
void endEdition()
Definition: parttext.cpp:339
void setFont(const QFont &font)
Definition: parttext.cpp:257
void setDefaultTextColor(const QColor &color)
Definition: parttext.cpp:243
QPointF m_origine_pos
Definition: parttext.h:102
void adjustItemPosition(int=0)
Definition: parttext.cpp:302
QFont font
Definition: parttext.h:35
QVariant itemChange(GraphicsItemChange, const QVariant &) override
Definition: parttext.cpp:182
QGraphicsItem * decorator_
Definition: parttext.h:101
PartText(QETElementEditor *, QGraphicsItem *=nullptr)
Definition: parttext.cpp:30
bool isUseless() const override
Definition: parttext.cpp:205
QString name() const override
Definition: parttext.h:59
void focusOutEvent(QFocusEvent *) override
PartText::focusOutEvent.
Definition: parttext.cpp:145
void fromXml(const QDomElement &) override
Definition: parttext.cpp:68
QPointF margin() const
Definition: parttext.cpp:114
void handleUserTransformation(const QRectF &, const QRectF &) override
Definition: parttext.cpp:232
void focusInEvent(QFocusEvent *) override
PartText::focusInEvent.
Definition: parttext.cpp:134
int type() const override
Definition: parttext.h:58
QColor color
Definition: parttext.h:33
QString xmlName() const override
Definition: parttext.h:60
The CustomElementPart class This abstract class represents a primitive of the visual representation o...
Definition: customelementpart.h:40
virtual ElementScene * elementScene() const
Definition: customelementpart.cpp:37
QList< QPointF > mapPoints(const QRectF &, const QRectF &, const QList< QPointF > &)
Definition: customelementpart.cpp:69
static QFont diagramTextsFont(qreal=-1.0)
QETApp::diagramTextsFont The font to use By default the font is "sans Serif" and size 9.
Definition: qetapp.cpp:1111
void colorChanged(const QColor &color)
void plainTextChanged(const QString &text)
Definition: parttext.h:30
The QPropertyUndoCommand class This undo command manage QProperty of a QObject. This undo command can...
Definition: qpropertyundocommand.h:34
const QDomElement toXml(QDomDocument &) const override
Definition: parttext.cpp:98
QPointF saved_point_
Definition: parttext.h:99
QRectF sceneGeometricRect() const override
Definition: parttext.cpp:215
PartText(const PartText &)
QIcon tr
Definition: qeticons.cpp:206
void startUserTransformation(const QRectF &) override
Definition: parttext.cpp:223
QString previous_text
Definition: parttext.h:97
Definition: qetelementeditor.h:33
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
Definition: parttext.cpp:281