mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-08 14:49:58 +01:00
Element texts group is fully managed by the undo stack
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5124 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
class QGraphicsItem;
|
||||
class DiagramTextItem;
|
||||
class Diagram;
|
||||
class QGraphicsItemGroup;
|
||||
|
||||
/**
|
||||
This class manages the interactive movement of element text items on a
|
||||
@@ -41,11 +42,19 @@ class ElementTextsMover
|
||||
int beginMovement(Diagram *diagram, QGraphicsItem *driver_item = nullptr);
|
||||
void continueMovement(const QPointF &);
|
||||
void endMovement();
|
||||
|
||||
private:
|
||||
QString undoText() const;
|
||||
|
||||
private:
|
||||
bool m_movement_running = false;
|
||||
Diagram *m_diagram = nullptr;
|
||||
QGraphicsItem *m_movement_driver = nullptr;
|
||||
QHash <DiagramTextItem *, QPointF> m_texts_item_H;
|
||||
QHash <DiagramTextItem *, QPointF> m_texts_hash;
|
||||
QHash <QGraphicsItemGroup *, QPointF> m_grps_hash;
|
||||
QHash <QGraphicsItem *, QPointF> m_items_hash;
|
||||
QPointF m_last_pos;
|
||||
int m_text_count = 0,
|
||||
m_group_count = 0;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user