The MoveElementsCommand class This command moves some content on a particular diagram.
More...
#include <diagramcommands.h>
Inherits QUndoCommand.
The MoveElementsCommand class This command moves some content on a particular diagram.
◆ MoveElementsCommand() [1/2]
MoveElementsCommand::MoveElementsCommand |
( |
Diagram * |
dia, |
|
|
const DiagramContent & |
diagram_content, |
|
|
const QPointF & |
m, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
◆ ~MoveElementsCommand()
MoveElementsCommand::~MoveElementsCommand |
( |
| ) |
|
|
override |
◆ MoveElementsCommand() [2/2]
◆ move()
void MoveElementsCommand::move |
( |
const QPointF & |
actual_movement | ) |
|
|
virtual |
◆ redo()
void MoveElementsCommand::redo |
( |
| ) |
|
|
override |
◆ setupAnimation()
void MoveElementsCommand::setupAnimation |
( |
QObject * |
target, |
|
|
const QByteArray & |
propertyName, |
|
|
const QVariant & |
start, |
|
|
const QVariant & |
end |
|
) |
| |
|
private |
MoveElementsCommand::setupAnimation Set up the animation for this undo command.
- Parameters
-
target | object to anim |
propertyName | property to animate |
start | value at start |
end | value at end |
◆ undo()
void MoveElementsCommand::undo |
( |
| ) |
|
|
override |
◆ content_to_move
◆ diagram
Diagram* MoveElementsCommand::diagram |
|
private |
diagram the movement takes place on.
◆ first_redo
bool MoveElementsCommand::first_redo |
|
private |
prevent the first call to redo()
◆ m_anim_group
QParallelAnimationGroup* MoveElementsCommand::m_anim_group |
|
private |
◆ movement
QPointF MoveElementsCommand::movement |
|
private |
The documentation for this class was generated from the following files: