20 #ifndef LIBREPCB_EDITOR_CMDCIRCLEEDIT_H 21 #define LIBREPCB_EDITOR_CMDCIRCLEEDIT_H 26 #include "../undocommand.h" 62 void setIsFilled(
bool filled,
bool immediate) noexcept;
68 void rotate(
const Angle& angle,
const Point& center,
bool immediate) noexcept;
70 bool immediate) noexcept;
UnsignedLength mNewLineWidth
Definition: cmdcircleedit.h:97
bool mOldIsGrabArea
Definition: cmdcircleedit.h:100
void mirrorLayer(bool immediate) noexcept
Definition: cmdcircleedit.cpp:134
The CmdListElementRemove class.
Definition: cmdlistelementremove.h:46
void setIsGrabArea(bool grabArea, bool immediate) noexcept
Definition: cmdcircleedit.cpp:85
Definition: occmodel.cpp:77
The Layer class provides all supported geometry layers.
Definition: layer.h:40
const Layer * mNewLayer
Definition: cmdcircleedit.h:95
void mirrorGeometry(Qt::Orientation orientation, const Point ¢er, bool immediate) noexcept
Definition: cmdcircleedit.cpp:124
void setIsFilled(bool filled, bool immediate) noexcept
Definition: cmdcircleedit.cpp:79
void setLayer(const Layer &layer, bool immediate) noexcept
Definition: cmdcircleedit.cpp:66
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
PositiveLength mNewDiameter
Definition: cmdcircleedit.h:103
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5...
Definition: point.h:79
The CmdListElementInsert class.
Definition: cmdlistelementinsert.h:46
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Circle & mCircle
Definition: cmdcircleedit.h:91
bool mNewIsFilled
Definition: cmdcircleedit.h:99
The Circle class.
Definition: circle.h:46
Point mOldCenter
Definition: cmdcircleedit.h:104
The CmdListElementsSwap class.
Definition: cmdlistelementsswap.h:46
void performRedo() override
Redo the command.
Definition: cmdcircleedit.cpp:163
Point mNewCenter
Definition: cmdcircleedit.h:105
The CmdCircleEdit class.
Definition: cmdcircleedit.h:51
bool mOldIsFilled
Definition: cmdcircleedit.h:98
PositiveLength mOldDiameter
Definition: cmdcircleedit.h:102
void performUndo() override
Undo the command.
Definition: cmdcircleedit.cpp:154
void snapToGrid(const PositiveLength &gridInterval, bool immediate) noexcept
Definition: cmdcircleedit.cpp:110
void setDiameter(const PositiveLength &dia, bool immediate) noexcept
Definition: cmdcircleedit.cpp:91
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:812
UnsignedLength mOldLineWidth
Definition: cmdcircleedit.h:96
bool performExecute() override
Execute the command the first time.
Definition: cmdcircleedit.cpp:142
void setCenter(const Point &pos, bool immediate) noexcept
Definition: cmdcircleedit.cpp:98
CmdCircleEdit & operator=(const CmdCircleEdit &rhs)=delete
void setLineWidth(const UnsignedLength &width, bool immediate) noexcept
Definition: cmdcircleedit.cpp:72
const Layer * mOldLayer
Definition: cmdcircleedit.h:94
~CmdCircleEdit() noexcept
Definition: cmdcircleedit.cpp:56
void translate(const Point &deltaPos, bool immediate) noexcept
Definition: cmdcircleedit.cpp:104
bool mNewIsGrabArea
Definition: cmdcircleedit.h:101
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition: cmdcircleedit.cpp:115
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:696