20#ifndef LIBREPCB_EDITOR_CMDDRAGSELECTEDBOARDITEMS_H
21#define LIBREPCB_EDITOR_CMDDRAGSELECTEDBOARDITEMS_H
26#include "../../undocommandgroup.h"
39class BoardGraphicsScene;
40class CmdBoardHoleEdit;
41class CmdBoardNetLineEdit;
42class CmdBoardNetPointEdit;
43class CmdBoardPlaneEdit;
44class CmdBoardPolygonEdit;
45class CmdBoardStrokeTextEdit;
47class CmdBoardZoneEdit;
48class CmdDeviceInstanceEdit;
49class CmdDeviceStrokeTextsReset;
62 bool includeLockedItems,
63 bool includeNetLines =
false,
86 const
bool gridIncrement = true) noexcept;
87 void rotate(const
Angle& angle,
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 BoardGraphicsScene class.
Definition: boardgraphicsscene.h:77
The CmdBoardHoleEdit class.
Definition: cmdboardholeedit.h:49
The CmdBoardNetLineEdit class.
Definition: cmdboardnetlineedit.h:48
The CmdBoardNetPointEdit class.
Definition: cmdboardnetpointedit.h:48
The CmdBoardPlaneEdit class.
Definition: cmdboardplaneedit.h:50
The CmdBoardPolygonEdit class.
Definition: cmdboardpolygonedit.h:49
The CmdBoardStrokeTextEdit class.
Definition: cmdboardstroketextedit.h:48
The CmdBoardViaEdit class.
Definition: cmdboardviaedit.h:49
The CmdBoardZoneEdit class.
Definition: cmdboardzoneedit.h:49
The CmdDeviceInstanceEdit class.
Definition: cmddeviceinstanceedit.h:52
The CmdDeviceStrokeTextsReset class.
Definition: cmddevicestroketextsreset.h:46
The CmdDragSelectedBoardItems class.
Definition: cmddragselectedboarditems.h:58
int mItemCount
Definition: cmddragselectedboarditems.h:97
Point mDeltaPos
Definition: cmddragselectedboarditems.h:99
QList< CmdBoardStrokeTextEdit * > mStrokeTextEditCmds
Definition: cmddragselectedboarditems.h:116
QList< CmdBoardPlaneEdit * > mPlaneEditCmds
Definition: cmddragselectedboarditems.h:113
bool hasPolygonsSelected() const noexcept
Definition: cmddragselectedboarditems.h:72
bool hasStrokeTextsSelected() const noexcept
Definition: cmddragselectedboarditems.h:75
CmdDragSelectedBoardItems(BoardGraphicsScene &scene, bool includeLockedItems, bool includeNetLines=false, const Point &startPos=Point()) noexcept
Definition: cmddragselectedboarditems.cpp:61
BoardGraphicsScene & mScene
Definition: cmddragselectedboarditems.h:96
Angle mDeltaAngle
Definition: cmddragselectedboarditems.h:101
QList< CmdBoardHoleEdit * > mHoleEditCmds
Definition: cmddragselectedboarditems.h:117
QList< CmdBoardNetPointEdit * > mNetPointEditCmds
Definition: cmddragselectedboarditems.h:111
UnsignedLength getMedianLineWidth() const noexcept
Definition: cmddragselectedboarditems.cpp:183
bool mTextsReset
Definition: cmddragselectedboarditems.h:105
~CmdDragSelectedBoardItems() noexcept
Definition: cmddragselectedboarditems.cpp:176
void resetAllTexts() noexcept
Definition: cmddragselectedboarditems.cpp:273
QList< CmdBoardViaEdit * > mViaEditCmds
Definition: cmddragselectedboarditems.h:110
bool mSnappedToGrid
Definition: cmddragselectedboarditems.h:102
void snapToGrid() noexcept
Definition: cmddragselectedboarditems.cpp:202
bool hasAnythingSelected() const noexcept
Definition: cmddragselectedboarditems.h:68
QList< CmdBoardPolygonEdit * > mPolygonEditCmds
Definition: cmddragselectedboarditems.h:115
bool hasTracesSelected() const noexcept
Definition: cmddragselectedboarditems.h:69
void setLineWidth(const UnsignedLength &width) noexcept
Definition: cmddragselectedboarditems.cpp:257
void setCurrentPosition(const Point &pos, const bool gridIncrement=true) noexcept
Definition: cmddragselectedboarditems.cpp:277
QList< CmdBoardZoneEdit * > mZoneEditCmds
Definition: cmddragselectedboarditems.h:114
Point mStartPos
Definition: cmddragselectedboarditems.h:98
bool performExecute() override
Execute the command the first time.
Definition: cmddragselectedboarditems.cpp:361
bool mLockedChanged
Definition: cmddragselectedboarditems.h:103
bool mLineWidthChanged
Definition: cmddragselectedboarditems.h:104
void setLocked(bool locked) noexcept
Definition: cmddragselectedboarditems.cpp:235
QList< CmdDeviceInstanceEdit * > mDeviceEditCmds
Definition: cmddragselectedboarditems.h:108
void rotate(const Angle &angle, bool aroundCurrentPosition) noexcept
Definition: cmddragselectedboarditems.cpp:318
QList< CmdDeviceStrokeTextsReset * > mDeviceStrokeTextsResetCmds
Definition: cmddragselectedboarditems.h:109
QList< CmdBoardNetLineEdit * > mNetLineEditCmds
Definition: cmddragselectedboarditems.h:112
Point mCenterPos
Definition: cmddragselectedboarditems.h:100
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
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:696