QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
RotateElementsCommand Class Reference

The RotateSelectionInESCommand class Rotate the selected items in the element editor. More...

#include <editorcommands.h>

Inheritance diagram for RotateElementsCommand:
Inheritance graph
Collaboration diagram for RotateElementsCommand:
Collaboration graph

Public Member Functions

 RotateElementsCommand (ElementScene *scene, QUndoCommand *parent=nullptr)
void undo () override
 RotateElementsCommand::undo.
void redo () override
 RotateElementsCommand::redo.
Public Member Functions inherited from ElementEditionCommand
 ElementEditionCommand (ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr)
 ElementEditionCommand::ElementEditionCommand Constructs an ElementEditionCommand, thus embedding the provided scene and view.
 ElementEditionCommand (const QString &, ElementScene *=nullptr, ElementView *=nullptr, QUndoCommand *=nullptr)
 ElementEditionCommand::ElementEditionCommand Constructs an ElementEditionCommand, thus embedding the provided scene and view.
 ~ElementEditionCommand () override
ElementSceneelementScene () const
void setElementScene (ElementScene *)
ElementViewelementView () const
void setElementView (ElementView *)

Private Attributes

ElementScenem_scene =nullptr
QList< QGraphicsItem * > m_items

Additional Inherited Members

Protected Attributes inherited from ElementEditionCommand
ElementScenem_scene
 Element editor/view/scene the command should take place on.
ElementViewm_view

Detailed Description

The RotateSelectionInESCommand class Rotate the selected items in the element editor.

Constructor & Destructor Documentation

◆ RotateElementsCommand()

RotateElementsCommand::RotateElementsCommand ( ElementScene * scene,
QUndoCommand * parent = nullptr )
Here is the call graph for this function:

Member Function Documentation

◆ redo()

void RotateElementsCommand::redo ( )
override

RotateElementsCommand::redo.

Here is the call graph for this function:

◆ undo()

void RotateElementsCommand::undo ( )
override

RotateElementsCommand::undo.

Here is the call graph for this function:

Member Data Documentation

◆ m_items

QList<QGraphicsItem*> RotateElementsCommand::m_items
private

◆ m_scene

ElementScene* RotateElementsCommand::m_scene =nullptr
private

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