|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef ELEMENT_TEXTS_MOVER_H
19 #define ELEMENT_TEXTS_MOVER_H
27 class QGraphicsItemGroup;
28 class QGraphicsSceneMouseEvent;
void enableAnimation(bool animate=true)
QPropertyUndoCommand::enableAnimation True to enable animation.
Definition: qpropertyundocommand.cpp:92
void continueMovement(QGraphicsSceneMouseEvent *event)
Definition: elementtextsmover.cpp:82
QHash< QGraphicsItem *, QPointF > m_items_hash
Definition: elementtextsmover.h:56
QHash< QGraphicsItemGroup *, QPointF > m_grps_hash
Definition: elementtextsmover.h:55
QGraphicsItem * m_movement_driver
Definition: elementtextsmover.h:53
Diagram * m_diagram
Definition: elementtextsmover.h:52
int m_group_count
Definition: elementtextsmover.h:58
The Diagram class This class represents an electric diagram. It manages its various child elements,...
Definition: diagram.h:56
@ Type
Definition: dynamicelementtextitem.h:61
int beginMovement(Diagram *diagram, QGraphicsItem *driver_item=nullptr)
ElementTextsMover::beginMovement Begin a movement.
Definition: elementtextsmover.cpp:46
ElementTextsMover(const ElementTextsMover &)
void endMovement()
ElementTextsMover::endMovement Finish the movement by pushing an undo command to the parent diagram o...
Definition: elementtextsmover.cpp:107
QHash< DiagramTextItem *, QPointF > m_texts_hash
Definition: elementtextsmover.h:54
bool m_movement_running
Definition: elementtextsmover.h:51
int m_text_count
Definition: elementtextsmover.h:57
Definition: elementtextsmover.h:35
bool isReady() const
ElementTextsMover::isReady.
Definition: elementtextsmover.cpp:35
QUndoStack & undoStack()
Diagram::undoStack.
Definition: diagram.h:397
Definition: diagramtextitem.h:34
The ElementTextItemGroup class This class represent a group of element text Texts in the group can be...
Definition: elementtextitemgroup.h:36
ElementTextsMover()
ElementTextsMover::ElementTextsMover.
Definition: elementtextsmover.cpp:28
static QPointF snapToGrid(const QPointF &p)
Diagram::snapToGrid Return a nearest snap point of p.
Definition: diagram.cpp:2240
The QPropertyUndoCommand class This undo command manage QProperty of a QObject. This undo command can...
Definition: qpropertyundocommand.h:34
QIcon tr
Definition: qeticons.cpp:206
QString undoText() const
Definition: elementtextsmover.cpp:134