20#ifndef LIBREPCB_EDITOR_CMDZONEEDIT_H
21#define LIBREPCB_EDITOR_CMDZONEEDIT_H
26#include "../undocommand.h"
58 void setRules(
Zone::Rules rules,
bool immediate) noexcept;
62 void rotate(const
Angle& angle, const
Point& center,
bool immediate) noexcept;
64 bool immediate) noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The Path class represents a list of vertices connected by straight lines or circular arc segments.
Definition: path.h:58
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The Zone class.
Definition: zone.h:43
The CmdListElementInsert class.
Definition: cmdlistelementinsert.h:46
The CmdListElementRemove class.
Definition: cmdlistelementremove.h:46
The CmdListElementsSwap class.
Definition: cmdlistelementsswap.h:46
The CmdZoneEdit class.
Definition: cmdzoneedit.h:48
void performRedo() override
Redo the command.
Definition: cmdzoneedit.cpp:121
void mirrorLayers(bool immediate) noexcept
Definition: cmdzoneedit.cpp:95
CmdZoneEdit(const CmdZoneEdit &other)=delete
void translate(const Point &deltaPos, bool immediate) noexcept
Definition: cmdzoneedit.cpp:76
void setLayers(Zone::Layers layers, bool immediate) noexcept
Definition: cmdzoneedit.cpp:58
Zone::Layers mNewLayers
Definition: cmdzoneedit.h:89
void performUndo() override
Undo the command.
Definition: cmdzoneedit.cpp:115
void setOutline(const Path &path, bool immediate) noexcept
Definition: cmdzoneedit.cpp:70
void mirrorGeometry(Qt::Orientation orientation, const Point ¢er, bool immediate) noexcept
Definition: cmdzoneedit.cpp:90
void setRules(Zone::Rules rules, bool immediate) noexcept
Definition: cmdzoneedit.cpp:64
~CmdZoneEdit() noexcept
Definition: cmdzoneedit.cpp:48
Path mOldOutline
Definition: cmdzoneedit.h:92
Zone::Rules mNewRules
Definition: cmdzoneedit.h:91
void snapToGrid(const PositiveLength &gridInterval, bool immediate) noexcept
Definition: cmdzoneedit.cpp:80
Zone::Layers mOldLayers
Definition: cmdzoneedit.h:88
Zone & mZone
Definition: cmdzoneedit.h:85
Path mNewOutline
Definition: cmdzoneedit.h:93
bool performExecute() override
Execute the command the first time.
Definition: cmdzoneedit.cpp:106
Zone::Rules mOldRules
Definition: cmdzoneedit.h:90
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition: cmdzoneedit.cpp:85
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