20#ifndef LIBREPCB_EDITOR_CMDHOLEEDIT_H
21#define LIBREPCB_EDITOR_CMDHOLEEDIT_H
26#include "../undocommand.h"
65 void rotate(const
Angle& angle, const
Point& center,
bool immediate) noexcept;
66 void mirror(Qt::Orientation orientation, const
Point& center,
67 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:119
void setStopMaskConfig(const MaskConfig &config) noexcept
Definition: cmdholeedit.cpp:95
void translate(const Point &deltaPos, bool immediate) noexcept
Definition: cmdholeedit.cpp:64
CmdHoleEdit(const CmdHoleEdit &other)=delete
NonEmptyPath mNewPath
Definition: cmdholeedit.h:93
void performUndo() override
Undo the command.
Definition: cmdholeedit.cpp:113
PositiveLength mNewDiameter
Definition: cmdholeedit.h:95
PositiveLength mOldDiameter
Definition: cmdholeedit.h:94
void setDiameter(const PositiveLength &diameter, bool immediate) noexcept
Definition: cmdholeedit.cpp:88
void snapToGrid(const PositiveLength &gridInterval, bool immediate) noexcept
Definition: cmdholeedit.cpp:69
NonEmptyPath mOldPath
Definition: cmdholeedit.h:92
~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:82
bool performExecute() override
Execute the command the first time.
Definition: cmdholeedit.cpp:104
MaskConfig mNewStopMaskConfig
Definition: cmdholeedit.h:97
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition: cmdholeedit.cpp:76
Hole & mHole
Definition: cmdholeedit.h:89
MaskConfig mOldStopMaskConfig
Definition: cmdholeedit.h:96
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:221