20#ifndef LIBREPCB_EDITOR_CMDDRAGSELECTEDSCHEMATICITEMS_H
21#define LIBREPCB_EDITOR_CMDDRAGSELECTEDSCHEMATICITEMS_H
26#include "../../undocommandgroup.h"
40class CmdSchematicNetLabelEdit;
41class CmdSchematicNetPointEdit;
42class CmdSymbolInstanceEdit;
43class CmdSymbolInstanceTextsReset;
45class SchematicGraphicsScene;
64 void rotate(
const Angle& angle,
bool aroundCurrentPosition)
noexcept;
65 void mirror(Qt::Orientation orientation,
bool aroundCurrentPosition)
noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The CmdDragSelectedSchematicItems class.
Definition: cmddragselectedschematicitems.h:54
void mirror(Qt::Orientation orientation, bool aroundCurrentPosition) noexcept
Definition: cmddragselectedschematicitems.cpp:187
int mItemCount
Definition: cmddragselectedschematicitems.h:78
Point mDeltaPos
Definition: cmddragselectedschematicitems.h:80
QList< CmdSchematicNetLabelEdit * > mNetLabelEditCmds
Definition: cmddragselectedschematicitems.h:90
SchematicGraphicsScene & mScene
Definition: cmddragselectedschematicitems.h:77
QList< CmdSchematicNetPointEdit * > mNetPointEditCmds
Definition: cmddragselectedschematicitems.h:89
Angle mDeltaAngle
Definition: cmddragselectedschematicitems.h:82
QList< CmdSymbolInstanceEdit * > mSymbolEditCmds
Definition: cmddragselectedschematicitems.h:87
bool mTextsReset
Definition: cmddragselectedschematicitems.h:84
~CmdDragSelectedSchematicItems() noexcept
Definition: cmddragselectedschematicitems.cpp:124
virtual void performPostExecution() noexcept override
Perform custom actions after modifying the undo stack state.
Definition: cmddragselectedschematicitems.cpp:264
QList< CmdSymbolInstanceTextsReset * > mSymbolTextsResetCmds
Definition: cmddragselectedschematicitems.h:88
QList< CmdPolygonEdit * > mPolygonEditCmds
Definition: cmddragselectedschematicitems.h:91
void resetAllTexts() noexcept
Definition: cmddragselectedschematicitems.cpp:131
QList< CmdTextEdit * > mTextEditCmds
Definition: cmddragselectedschematicitems.h:92
CmdDragSelectedSchematicItems(SchematicGraphicsScene &scene, const Point &startPos=Point()) noexcept
Definition: cmddragselectedschematicitems.cpp:56
void setCurrentPosition(const Point &pos) noexcept
Definition: cmddragselectedschematicitems.cpp:135
Point mStartPos
Definition: cmddragselectedschematicitems.h:79
virtual bool performExecute() override
Execute the command the first time.
Definition: cmddragselectedschematicitems.cpp:217
bool mMirrored
Definition: cmddragselectedschematicitems.h:83
void rotate(const Angle &angle, bool aroundCurrentPosition) noexcept
Definition: cmddragselectedschematicitems.cpp:161
Point mCenterPos
Definition: cmddragselectedschematicitems.h:81
The SchematicGraphicsScene class.
Definition: schematicgraphicsscene.h:67
The UndoCommandGroup class makes it possible to pack multiple undo commands together (it acts as a pa...
Definition: undocommandgroup.h:44
Definition: occmodel.cpp:77