20 #ifndef LIBREPCB_LIBRARY_CMDSYMBOLPINEDIT_H 21 #define LIBREPCB_LIBRARY_CMDSYMBOLPINEDIT_H 26 #include "../symbolpin.h" 60 void rotate(
const Angle& angle,
const Point& center,
bool immediate) noexcept;
61 void mirror(Qt::Orientation orientation,
const Point& center,
62 bool immediate) noexcept;
102 #endif // LIBREPCB_LIBRARY_CMDSYMBOLPINEDIT_H UnsignedLength mOldLength
Definition: cmdsymbolpinedit.h:87
void mirror(Qt::Orientation orientation, const Point ¢er, bool immediate) noexcept
Definition: cmdsymbolpinedit.cpp:114
Point mNewPos
Definition: cmdsymbolpinedit.h:90
Definition: airwiresbuilder.cpp:32
Point mOldPos
Definition: cmdsymbolpinedit.h:89
Angle mOldRotation
Definition: cmdsymbolpinedit.h:91
void performRedo() override
Redo the command.
Definition: cmdsymbolpinedit.cpp:150
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition: cmdsymbolpinedit.cpp:103
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
void snapToGrid(const PositiveLength &gridInterval, bool immediate) noexcept
Definition: cmdsymbolpinedit.cpp:91
CmdSymbolPinEdit & operator=(const CmdSymbolPinEdit &rhs)=delete
Angle mNewRotation
Definition: cmdsymbolpinedit.h:92
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5...
Definition: point.h:78
SymbolPin & mPin
Definition: cmdsymbolpinedit.h:82
void setName(const CircuitIdentifier &name, bool immediate) noexcept
Definition: cmdsymbolpinedit.cpp:64
type_safe::constrained_type< QString, CircuitIdentifierConstraint, CircuitIdentifierVerifier > CircuitIdentifier
Definition: circuitidentifier.h:91
CircuitIdentifier mNewName
Definition: cmdsymbolpinedit.h:86
void performUndo() override
Undo the command.
Definition: cmdsymbolpinedit.cpp:143
The CmdSymbolPinEdit class.
Definition: cmdsymbolpinedit.h:45
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:47
CmdSymbolPinEdit()=delete
void setPosition(const Point &pos, bool immediate) noexcept
Definition: cmdsymbolpinedit.cpp:78
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:792
UnsignedLength mNewLength
Definition: cmdsymbolpinedit.h:88
bool performExecute() override
Execute the command the first time.
Definition: cmdsymbolpinedit.cpp:133
The SymbolPin class represents one pin of a symbol.
Definition: symbolpin.h:54
void setRotation(const Angle &angle, bool immediate) noexcept
Definition: cmdsymbolpinedit.cpp:96
void setLength(const UnsignedLength &length, bool immediate) noexcept
Definition: cmdsymbolpinedit.cpp:71
CircuitIdentifier mOldName
Definition: cmdsymbolpinedit.h:85
void translate(const Point &deltaPos, bool immediate) noexcept
Definition: cmdsymbolpinedit.cpp:84
~CmdSymbolPinEdit() noexcept
Definition: cmdsymbolpinedit.cpp:50
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:672