QElectroTech  0.70
Public Member Functions | Private Attributes | List of all members
RotateSelectionCommand Class Reference

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

Diagramm_diagram =nullptr
 
QList< QPointer< ConductorTextItem > > m_cond_text
 
QHash< ConductorTextItem *, bool > m_rotate_by_user
 
QList< QPropertyUndoCommand * > m_undo
 

Detailed Description

The RotateSelectionCommand class Rotate the selected items in the given diagram.

Definition at line 32 of file rotateselectioncommand.h.

Constructor & Destructor Documentation

◆ RotateSelectionCommand()

RotateSelectionCommand::RotateSelectionCommand ( Diagram diagram,
qreal  angle = 90,
QUndoCommand *  parent = nullptr 
)

Member Function Documentation

◆ isValid()

bool RotateSelectionCommand::isValid ( )

RotateSelectionCommand::isValid.

Returns
true if this command rotate a least one item.

Definition at line 117 of file rotateselectioncommand.cpp.

Referenced by QETDiagramEditor::selectionGroupTriggered().

◆ redo()

void RotateSelectionCommand::redo ( )
override

◆ undo()

void RotateSelectionCommand::undo ( )
override

Member Data Documentation

◆ m_cond_text

QList<QPointer<ConductorTextItem> > RotateSelectionCommand::m_cond_text
private

Definition at line 44 of file rotateselectioncommand.h.

Referenced by redo(), and undo().

◆ m_diagram

Diagram* RotateSelectionCommand::m_diagram =nullptr
private

Definition at line 42 of file rotateselectioncommand.h.

Referenced by redo(), RotateSelectionCommand(), and undo().

◆ m_rotate_by_user

QHash<ConductorTextItem *, bool> RotateSelectionCommand::m_rotate_by_user
private

Definition at line 45 of file rotateselectioncommand.h.

Referenced by redo(), and undo().

◆ m_undo

QList<QPropertyUndoCommand*> RotateSelectionCommand::m_undo
private

Definition at line 46 of file rotateselectioncommand.h.

Referenced by RotateSelectionCommand().


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