20#ifndef LIBREPCB_EDITOR_CMDHOLEEDIT_H
21#define LIBREPCB_EDITOR_CMDHOLEEDIT_H
26#include "../undocommand.h"
66 void rotate(const
Angle& angle, const
Point& center,
bool immediate) noexcept;
67 void mirror(Qt::Orientation orientation, const
Point& center,
68 bool immediate) noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The Hole class.
Definition: hole.h:45
The MaskConfig class defines how to add automatic stop mask or solder paste.
Definition: maskconfig.h:45
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The CmdHoleEdit class.
Definition: cmdholeedit.h:53
void performRedo() override
Redo the command.
Definition: cmdholeedit.cpp:125
void setStopMaskConfig(const MaskConfig &config) noexcept
Definition: cmdholeedit.cpp:101
void translate(const Point &deltaPos, bool immediate) noexcept
Definition: cmdholeedit.cpp:70
CmdHoleEdit(const CmdHoleEdit &other)=delete
NonEmptyPath mNewPath
Definition: cmdholeedit.h:94
void setPositionOfFirstVertex(const Point &pos, bool immediate) noexcept
Definition: cmdholeedit.cpp:64
void performUndo() override
Undo the command.
Definition: cmdholeedit.cpp:119
PositiveLength mNewDiameter
Definition: cmdholeedit.h:96
PositiveLength mOldDiameter
Definition: cmdholeedit.h:95
void setDiameter(const PositiveLength &diameter, bool immediate) noexcept
Definition: cmdholeedit.cpp:94
void snapToGrid(const PositiveLength &gridInterval, bool immediate) noexcept
Definition: cmdholeedit.cpp:75
NonEmptyPath mOldPath
Definition: cmdholeedit.h:93
~CmdHoleEdit() noexcept
Definition: cmdholeedit.cpp:48
void setPath(const NonEmptyPath &path, bool immediate) noexcept
Definition: cmdholeedit.cpp:58
void mirror(Qt::Orientation orientation, const Point ¢er, bool immediate) noexcept
Definition: cmdholeedit.cpp:88
bool performExecute() override
Execute the command the first time.
Definition: cmdholeedit.cpp:110
MaskConfig mNewStopMaskConfig
Definition: cmdholeedit.h:98
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition: cmdholeedit.cpp:82
Hole & mHole
Definition: cmdholeedit.h:90
MaskConfig mOldStopMaskConfig
Definition: cmdholeedit.h:97
The CmdListElementInsert class.
Definition: cmdlistelementinsert.h:46
The CmdListElementRemove class.
Definition: cmdlistelementremove.h:46
The CmdListElementsSwap class.
Definition: cmdlistelementsswap.h:46
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:812
type_safe::constrained_type< Path, NonEmptyPathConstraint, NonEmptyPathVerifier > NonEmptyPath
Definition: path.h:222