20#ifndef LIBREPCB_EDITOR_CMDBOARDHOLEEDIT_H
21#define LIBREPCB_EDITOR_CMDBOARDHOLEEDIT_H
26#include "../../undocommand.h"
61 void rotate(const
Angle& angle, const
Point& center,
bool immediate) noexcept;
62 void mirror(Qt::Orientation orientation, const
Point& center,
63 bool immediate) noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
The BI_Hole class.
Definition bi_hole.h:46
The BoardHoleData class.
Definition boardholedata.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:78
The CmdBoardHoleEdit class.
Definition cmdboardholeedit.h:49
void performRedo() override
Redo the command.
Definition cmdboardholeedit.cpp:124
BoardHoleData mOldData
Definition cmdboardholeedit.h:83
void setStopMaskConfig(const MaskConfig &config) noexcept
Definition cmdboardholeedit.cpp:98
void translate(const Point &deltaPos, bool immediate) noexcept
Definition cmdboardholeedit.cpp:64
~CmdBoardHoleEdit() noexcept
Definition cmdboardholeedit.cpp:46
void performUndo() override
Undo the command.
Definition cmdboardholeedit.cpp:117
BoardHoleData mNewData
Definition cmdboardholeedit.h:84
void setDiameter(const PositiveLength &diameter, bool immediate) noexcept
Definition cmdboardholeedit.cpp:90
void snapToGrid(const PositiveLength &gridInterval, bool immediate) noexcept
Definition cmdboardholeedit.cpp:70
CmdBoardHoleEdit(const CmdBoardHoleEdit &other)=delete
CmdBoardHoleEdit()=delete
void setPath(const NonEmptyPath &path, bool immediate) noexcept
Definition cmdboardholeedit.cpp:56
void mirror(Qt::Orientation orientation, const Point ¢er, bool immediate) noexcept
Definition cmdboardholeedit.cpp:83
bool performExecute() override
Execute the command the first time.
Definition cmdboardholeedit.cpp:112
void setLocked(bool locked) noexcept
Definition cmdboardholeedit.cpp:103
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition cmdboardholeedit.cpp:77
BI_Hole & mHole
Definition cmdboardholeedit.h:82
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
Definition occmodel.cpp:76
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810
type_safe::constrained_type< Path, NonEmptyPathConstraint, NonEmptyPathVerifier > NonEmptyPath
Definition path.h:231