|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef CONDUCTOR_TEXT_ITEM_H
19 #define CONDUCTOR_TEXT_ITEM_H
42 enum {
Type = UserType + 1006 };
44 void fromXml(
const QDomElement &)
override;
50 virtual void setPos(
const QPointF &pos);
51 virtual void setPos(qreal x, qreal y);
QPointF before_mov_pos_
Definition: conductortextitem.h:66
virtual bool wasMovedByUser() const
Definition: conductortextitem.cpp:84
virtual QPainterPath nearShape() const
Conductor::nearShape.
Definition: conductor.cpp:904
ConductorTextItem(Conductor *=nullptr)
Definition: conductortextitem.cpp:27
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
DiagramTextItem::mousePressEvent.
Definition: diagramtextitem.cpp:319
virtual void forceRotateByUser(bool)
ConductorTextItem::forceRotateByUser.
Definition: conductortextitem.cpp:117
bool m_mouse_hover
Definition: diagramtextitem.h:110
~ConductorTextItem() override
Definition: conductortextitem.cpp:52
virtual void setPos(const QPointF &pos)
ConductorTextItem::setPos.
Definition: conductortextitem.cpp:130
Diagram * diagram() const
DiagramTextItem::diagram.
Definition: diagramtextitem.cpp:63
bool moved_by_user_
Definition: conductortextitem.h:64
Conductor * parentConductor() const
Definition: conductortextitem.cpp:59
QPointF m_mouse_to_origin_movement
Definition: diagramtextitem.h:119
QRectF boundingRect() const override
Conductor::boundingRect.
Definition: conductor.cpp:878
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
ConductorTextItem::mouseReleaseEvent.
Definition: conductortextitem.cpp:199
@ Alert
Definition: conductor.h:65
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
ConductorTextItem::mouseMoveEvent.
Definition: conductortextitem.cpp:174
void fromXml(const QDomElement &) override
ConductorTextItem::fromXml Read the properties stored in the xml element given in parameter.
Definition: conductortextitem.cpp:68
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
The MoveConductorsTextsCommand class This command moves text items related to conductors on a particu...
Definition: diagramcommands.h:172
int type() const override
Definition: conductortextitem.h:45
void hoverLeaveEvent(QGraphicsSceneHoverEvent *) override
Definition: conductortextitem.cpp:246
Definition: diagramtextitem.h:34
void hoverMoveEvent(QGraphicsSceneHoverEvent *) override
Definition: conductortextitem.cpp:257
void hoverEnterEvent(QGraphicsSceneHoverEvent *) override
Definition: conductortextitem.cpp:232
static QPointF snapToGrid(const QPointF &p)
Diagram::snapToGrid Return a nearest snap point of p.
Definition: diagram.cpp:2240
@ None
Definition: conductor.h:65
virtual void forceMovedByUser(bool)
Definition: conductortextitem.cpp:101
bool rotate_by_user_
Definition: conductortextitem.h:65
@ Type
Definition: conductortextitem.h:42
Conductor * parent_conductor_
Definition: conductortextitem.h:63
Definition: conductor.h:43
Definition: conductortextitem.h:30
virtual bool wasRotateByUser() const
ConductorTextItem::wasRotateByUser.
Definition: conductortextitem.cpp:92
ConductorTextItem(const ConductorTextItem &)
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
ConductorTextItem::mousePressEvent.
Definition: conductortextitem.cpp:165
@ Normal
Definition: conductor.h:65