QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
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>

Inherits QUndoCommand.

Collaboration diagram for RotateSelectionCommand:
Collaboration graph

Public Member Functions

 RotateSelectionCommand (Diagram *diagram, qreal angle=90, QUndoCommand *parent=nullptr)
 
void undo () override
 RotateSelectionCommand::undo.
 
void redo () override
 RotateSelectionCommand::redo.
 
bool isValid ()
 RotateSelectionCommand::isValid.
 

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.

Constructor & Destructor Documentation

◆ RotateSelectionCommand()

RotateSelectionCommand::RotateSelectionCommand ( Diagram diagram,
qreal  angle = 90,
QUndoCommand *  parent = nullptr 
)
Here is the call graph for this function:

Member Function Documentation

◆ isValid()

bool RotateSelectionCommand::isValid ( )

RotateSelectionCommand::isValid.

Returns
true if this command rotate a least one item.
Here is the caller graph for this function:

◆ redo()

void RotateSelectionCommand::redo ( )
override

RotateSelectionCommand::redo.

Here is the call graph for this function:

◆ undo()

void RotateSelectionCommand::undo ( )
override

RotateSelectionCommand::undo.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_cond_text

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

◆ m_diagram

Diagram* RotateSelectionCommand::m_diagram =nullptr
private

◆ m_rotate_by_user

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

◆ m_undo

QList<QPropertyUndoCommand*> RotateSelectionCommand::m_undo
private

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