The MoveConductorsTextsCommand class This command moves text items related to conductors on a particular diagram.
More...
#include <diagramcommands.h>
Inherits QUndoCommand.
The MoveConductorsTextsCommand class This command moves text items related to conductors on a particular diagram.
◆ MoveConductorsTextsCommand() [1/2]
MoveConductorsTextsCommand::MoveConductorsTextsCommand |
( |
Diagram * |
diagram, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
◆ ~MoveConductorsTextsCommand()
MoveConductorsTextsCommand::~MoveConductorsTextsCommand |
( |
| ) |
|
|
override |
◆ MoveConductorsTextsCommand() [2/2]
◆ addTextMovement()
void MoveConductorsTextsCommand::addTextMovement |
( |
ConductorTextItem * |
text_item, |
|
|
const QPointF & |
old_pos, |
|
|
const QPointF & |
new_pos, |
|
|
bool |
already_moved = false |
|
) |
| |
|
virtual |
MoveConductorsTextsCommand::addTextMovement Ajout un mouvement de champ de texte a cet objet.
- Parameters
-
text_item | Champ de texte deplace ; si celui-ci est deja connu de l'objet d'annulation, il sera ignore |
old_pos | Position du champ de texte avant le mouvement |
new_pos | Position du champ de texte apres le mouvement |
already_moved | true si le champ de texte etait deja a une position personnalisee par l'utilisateur, false sinon |
◆ redo()
void MoveConductorsTextsCommand::redo |
( |
| ) |
|
|
override |
◆ regenerateTextLabel()
void MoveConductorsTextsCommand::regenerateTextLabel |
( |
| ) |
|
|
private |
◆ undo()
void MoveConductorsTextsCommand::undo |
( |
| ) |
|
|
override |
◆ diagram
Diagram* MoveConductorsTextsCommand::diagram |
|
private |
diagram the movement takes place on.
◆ first_redo
bool MoveConductorsTextsCommand::first_redo |
|
private |
prevent the first call to redo()
◆ texts_to_move_
QHash<ConductorTextItem *, QPair<QPointF, bool> > MoveConductorsTextsCommand::texts_to_move_ |
|
private |
The documentation for this class was generated from the following files: