20#ifndef LIBREPCB_EDITOR_CMDDRAGSELECTEDSCHEMATICITEMS_H
21#define LIBREPCB_EDITOR_CMDDRAGSELECTEDSCHEMATICITEMS_H
26#include "../../undocommandgroup.h"
43class CmdSchematicNetLabelEdit;
44class CmdSchematicNetPointEdit;
45class CmdSymbolInstanceEdit;
46class CmdSymbolInstanceTextsReset;
48class SchematicGraphicsScene;
68 void rotate(
const Angle& angle,
bool aroundCurrentPosition)
noexcept;
69 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:76
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
The Schematic class represents one schematic page of a project and is always part of a circuit.
Definition schematic.h:74
The CmdDragSelectedSchematicItems class.
Definition cmddragselectedschematicitems.h:57
void mirror(Qt::Orientation orientation, bool aroundCurrentPosition) noexcept
Definition cmddragselectedschematicitems.cpp:207
int mItemCount
Definition cmddragselectedschematicitems.h:82
Point mDeltaPos
Definition cmddragselectedschematicitems.h:84
Schematic & mSchematic
Definition cmddragselectedschematicitems.h:81
QList< CmdSchematicNetLabelEdit * > mNetLabelEditCmds
Definition cmddragselectedschematicitems.h:95
QList< CmdSchematicNetPointEdit * > mNetPointEditCmds
Definition cmddragselectedschematicitems.h:94
Angle mDeltaAngle
Definition cmddragselectedschematicitems.h:86
QList< CmdSymbolInstanceEdit * > mSymbolEditCmds
Definition cmddragselectedschematicitems.h:92
bool mTextsReset
Definition cmddragselectedschematicitems.h:89
~CmdDragSelectedSchematicItems() noexcept
Definition cmddragselectedschematicitems.cpp:125
virtual void performPostExecution() noexcept override
Perform custom actions after modifying the undo stack state.
Definition cmddragselectedschematicitems.cpp:283
QList< CmdSymbolInstanceTextsReset * > mSymbolTextsResetCmds
Definition cmddragselectedschematicitems.h:93
QList< CmdPolygonEdit * > mPolygonEditCmds
Definition cmddragselectedschematicitems.h:96
void resetAllTexts() noexcept
Definition cmddragselectedschematicitems.cpp:152
bool mSnappedToGrid
Definition cmddragselectedschematicitems.h:87
void snapToGrid() noexcept
Definition cmddragselectedschematicitems.cpp:132
QList< CmdTextEdit * > mTextEditCmds
Definition cmddragselectedschematicitems.h:97
void setCurrentPosition(const Point &pos) noexcept
Definition cmddragselectedschematicitems.cpp:156
Point mStartPos
Definition cmddragselectedschematicitems.h:83
virtual bool performExecute() override
Execute the command the first time.
Definition cmddragselectedschematicitems.cpp:236
bool mMirrored
Definition cmddragselectedschematicitems.h:88
void rotate(const Angle &angle, bool aroundCurrentPosition) noexcept
Definition cmddragselectedschematicitems.cpp:182
Point mCenterPos
Definition cmddragselectedschematicitems.h:85
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