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

The FlipElementsCommand class Flip the selected parts vertically (top <-> bottom) across the horizontal line through the center of the selection, so the selection keeps its place in the scene. More...

#include <editorcommands.h>

Inheritance diagram for FlipElementsCommand:
Inheritance graph
Collaboration diagram for FlipElementsCommand:
Collaboration graph

Public Member Functions

 FlipElementsCommand (ElementScene *scene, QUndoCommand *parent=nullptr)
void undo () override
 FlipElementsCommand::undo.
void redo () override
 FlipElementsCommand::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
qreal m_axis_y = 0

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 FlipElementsCommand class Flip the selected parts vertically (top <-> bottom) across the horizontal line through the center of the selection, so the selection keeps its place in the scene.

Constructor & Destructor Documentation

◆ FlipElementsCommand()

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

Member Function Documentation

◆ redo()

void FlipElementsCommand::redo ( )
override

FlipElementsCommand::redo.

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

◆ undo()

void FlipElementsCommand::undo ( )
override

FlipElementsCommand::undo.

Here is the call graph for this function:

Member Data Documentation

◆ m_axis_y

qreal FlipElementsCommand::m_axis_y = 0
private

◆ m_items

QList<QGraphicsItem*> FlipElementsCommand::m_items
private

◆ m_scene

ElementScene* FlipElementsCommand::m_scene =nullptr
private

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