QElectroTech
0.8-dev
|
#include <elementtextsmover.h>
Public Member Functions | |
ElementTextsMover () | |
ElementTextsMover::ElementTextsMover. More... | |
bool | isReady () const |
ElementTextsMover::isReady. More... | |
int | beginMovement (Diagram *diagram, QGraphicsItem *driver_item=nullptr) |
ElementTextsMover::beginMovement Begin a movement. More... | |
void | continueMovement (QGraphicsSceneMouseEvent *event) |
void | endMovement () |
ElementTextsMover::endMovement Finish the movement by pushing an undo command to the parent diagram of text item. More... | |
Private Member Functions | |
ElementTextsMover (const ElementTextsMover &) | |
QString | undoText () const |
Private Attributes | |
bool | m_movement_running = false |
Diagram * | m_diagram = nullptr |
QGraphicsItem * | m_movement_driver = nullptr |
QHash< DiagramTextItem *, QPointF > | m_texts_hash |
QHash< QGraphicsItemGroup *, QPointF > | m_grps_hash |
QHash< QGraphicsItem *, QPointF > | m_items_hash |
int | m_text_count = 0 |
int | m_group_count = 0 |
This class manages the interactive movement of element text items on a particular diagram.
ElementTextsMover::ElementTextsMover | ( | ) |
|
private |
int ElementTextsMover::beginMovement | ( | Diagram * | diagram, |
QGraphicsItem * | driver_item = nullptr |
||
) |
ElementTextsMover::beginMovement Begin a movement.
diagram | : diagram where the movement is apply |
driver_item | : item moved by the mouse |
void ElementTextsMover::continueMovement | ( | QGraphicsSceneMouseEvent * | event | ) |
void ElementTextsMover::endMovement | ( | ) |
ElementTextsMover::endMovement Finish the movement by pushing an undo command to the parent diagram of text item.
bool ElementTextsMover::isReady | ( | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |