SILICON
Loading...
Searching...
No Matches
RotateItemCommand Class Reference

#include <undoCommands.hpp>

Inheritance diagram for RotateItemCommand:
Collaboration diagram for RotateItemCommand:

Public Member Functions

 RotateItemCommand (GraphicalComponent *component, qreal oldRotation, qreal newRotation, QUndoCommand *parent=nullptr)
void undo () override
void redo () override

Private Attributes

DiagramScene * scene
std::string documentPath
uint64_t uiId
qreal oldRotation
qreal newRotation
bool skipInitialRedo = true

Detailed Description

Definition at line 172 of file undoCommands.hpp.

Constructor & Destructor Documentation

◆ RotateItemCommand()

RotateItemCommand ( GraphicalComponent * component,
qreal oldRotation,
qreal newRotation,
QUndoCommand * parent = nullptr )
explicit

Definition at line 247 of file undoCommands.cpp.

Member Function Documentation

◆ redo()

void redo ( )
override

Definition at line 273 of file undoCommands.cpp.

◆ undo()

void undo ( )
override

Definition at line 260 of file undoCommands.cpp.

Member Data Documentation

◆ documentPath

std::string documentPath
private

Definition at line 182 of file undoCommands.hpp.

◆ newRotation

qreal newRotation
private

Definition at line 185 of file undoCommands.hpp.

◆ oldRotation

qreal oldRotation
private

Definition at line 184 of file undoCommands.hpp.

◆ scene

DiagramScene* scene
private

Definition at line 181 of file undoCommands.hpp.

◆ skipInitialRedo

bool skipInitialRedo = true
private

Definition at line 186 of file undoCommands.hpp.

◆ uiId

uint64_t uiId
private

Definition at line 183 of file undoCommands.hpp.


The documentation for this class was generated from the following files: