QElectroTech
0.70
|
The RotateSelectionCommand class Rotate the selected items in the given diagram. More...
#include <rotateselectioncommand.h>
Public Member Functions | |
RotateSelectionCommand (Diagram *diagram, qreal angle=90, QUndoCommand *parent=nullptr) | |
void | undo () override |
RotateSelectionCommand::undo. More... | |
void | redo () override |
RotateSelectionCommand::redo. More... | |
bool | isValid () |
RotateSelectionCommand::isValid. More... | |
Private Attributes | |
Diagram * | m_diagram =nullptr |
QList< QPointer< ConductorTextItem > > | m_cond_text |
QHash< ConductorTextItem *, bool > | m_rotate_by_user |
QList< QPropertyUndoCommand * > | m_undo |
The RotateSelectionCommand class Rotate the selected items in the given diagram.
Definition at line 32 of file rotateselectioncommand.h.
RotateSelectionCommand::RotateSelectionCommand | ( | Diagram * | diagram, |
qreal | angle = 90 , |
||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 32 of file rotateselectioncommand.cpp.
References Diagram::isReadOnly(), m_diagram, m_undo, QET::Icons::tr, IndependentTextItem::Type, DiagramImageItem::Type, ConductorTextItem::Type, DynamicElementTextItem::Type, Element::Type, and undo().
bool RotateSelectionCommand::isValid | ( | ) |
RotateSelectionCommand::isValid.
Definition at line 117 of file rotateselectioncommand.cpp.
Referenced by QETDiagramEditor::selectionGroupTriggered().
|
override |
Definition at line 101 of file rotateselectioncommand.cpp.
References m_cond_text, m_diagram, m_rotate_by_user, and Diagram::showMe().
|
override |
Definition at line 85 of file rotateselectioncommand.cpp.
References m_cond_text, m_diagram, m_rotate_by_user, and Diagram::showMe().
Referenced by RotateSelectionCommand().
|
private |
Definition at line 44 of file rotateselectioncommand.h.
|
private |
Definition at line 42 of file rotateselectioncommand.h.
Referenced by redo(), RotateSelectionCommand(), and undo().
|
private |
Definition at line 45 of file rotateselectioncommand.h.
|
private |
Definition at line 46 of file rotateselectioncommand.h.
Referenced by RotateSelectionCommand().