20#ifndef LIBREPCB_EDITOR_CMDDRAGSELECTEDSCHEMATICITEMS_H
21#define LIBREPCB_EDITOR_CMDDRAGSELECTEDSCHEMATICITEMS_H
26#include "../../undocommandgroup.h"
44class CmdSchematicBusJunctionEdit;
45class CmdSchematicBusLabelEdit;
46class CmdSchematicNetLabelEdit;
47class CmdSchematicNetPointEdit;
48class CmdSymbolInstanceEdit;
49class CmdSymbolInstanceTextsReset;
51class SchematicGraphicsScene;
71 void rotate(
const Angle& angle,
bool aroundCurrentPosition)
noexcept;
72 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:81
The CmdDragSelectedSchematicItems class.
Definition cmddragselectedschematicitems.h:60
void mirror(Qt::Orientation orientation, bool aroundCurrentPosition) noexcept
Definition cmddragselectedschematicitems.cpp:266
QList< CmdSchematicBusLabelEdit * > mBusLabelEditCmds
Definition cmddragselectedschematicitems.h:98
int mItemCount
Definition cmddragselectedschematicitems.h:85
Point mDeltaPos
Definition cmddragselectedschematicitems.h:87
Schematic & mSchematic
Definition cmddragselectedschematicitems.h:84
QList< CmdSchematicNetLabelEdit * > mNetLabelEditCmds
Definition cmddragselectedschematicitems.h:100
QList< CmdSchematicNetPointEdit * > mNetPointEditCmds
Definition cmddragselectedschematicitems.h:99
QList< CmdSchematicBusJunctionEdit * > mBusJunctionEditCmds
Definition cmddragselectedschematicitems.h:97
Angle mDeltaAngle
Definition cmddragselectedschematicitems.h:89
QList< CmdSymbolInstanceEdit * > mSymbolEditCmds
Definition cmddragselectedschematicitems.h:95
bool mTextsReset
Definition cmddragselectedschematicitems.h:92
~CmdDragSelectedSchematicItems() noexcept
Definition cmddragselectedschematicitems.cpp:157
virtual void performPostExecution() noexcept override
Perform custom actions after modifying the undo stack state.
Definition cmddragselectedschematicitems.cpp:366
QList< CmdSymbolInstanceTextsReset * > mSymbolTextsResetCmds
Definition cmddragselectedschematicitems.h:96
QList< CmdPolygonEdit * > mPolygonEditCmds
Definition cmddragselectedschematicitems.h:101
void resetAllTexts() noexcept
Definition cmddragselectedschematicitems.cpp:193
bool mSnappedToGrid
Definition cmddragselectedschematicitems.h:90
void snapToGrid() noexcept
Definition cmddragselectedschematicitems.cpp:164
QList< CmdImageEdit * > mImageEditCmds
Definition cmddragselectedschematicitems.h:103
QList< CmdTextEdit * > mTextEditCmds
Definition cmddragselectedschematicitems.h:102
void setCurrentPosition(const Point &pos) noexcept
Definition cmddragselectedschematicitems.cpp:197
Point mStartPos
Definition cmddragselectedschematicitems.h:86
virtual bool performExecute() override
Execute the command the first time.
Definition cmddragselectedschematicitems.cpp:304
bool mMirrored
Definition cmddragselectedschematicitems.h:91
void rotate(const Angle &angle, bool aroundCurrentPosition) noexcept
Definition cmddragselectedschematicitems.cpp:232
Point mCenterPos
Definition cmddragselectedschematicitems.h:88
The SchematicGraphicsScene class.
Definition schematicgraphicsscene.h:76
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