20#ifndef LIBREPCB_EDITOR_CMDSYMBOLPINEDIT_H
21#define LIBREPCB_EDITOR_CMDSYMBOLPINEDIT_H
26#include "../../cmd/cmdlistelementinsert.h"
27#include "../../cmd/cmdlistelementremove.h"
28#include "../../cmd/cmdlistelementsswap.h"
29#include "../../undocommand.h"
67 void rotate(const
Angle& angle, const
Point& center,
bool immediate) noexcept;
68 void mirror(Qt::Orientation orientation, const
Point& center,
69 bool immediate) noexcept;
The Alignment class.
Definition alignment.h:115
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
The SymbolPin class represents one pin of a symbol.
Definition symbolpin.h:51
The CmdListElementInsert class.
Definition cmdlistelementinsert.h:46
The CmdListElementRemove class.
Definition cmdlistelementremove.h:46
The CmdListElementsSwap class.
Definition cmdlistelementsswap.h:46
The CmdSymbolPinEdit class.
Definition cmdsymbolpinedit.h:48
void performRedo() override
Redo the command.
Definition cmdsymbolpinedit.cpp:195
Alignment mNewNameAlignment
Definition cmdsymbolpinedit.h:107
PositiveLength mNewNameHeight
Definition cmdsymbolpinedit.h:105
void setPosition(const Point &pos, bool immediate) noexcept
Definition cmdsymbolpinedit.cpp:115
void translate(const Point &deltaPos, bool immediate) noexcept
Definition cmdsymbolpinedit.cpp:121
Angle mNewNameRotation
Definition cmdsymbolpinedit.h:103
Point mOldPos
Definition cmdsymbolpinedit.h:96
CircuitIdentifier mOldName
Definition cmdsymbolpinedit.h:92
void setName(const CircuitIdentifier &name, bool immediate) noexcept
Definition cmdsymbolpinedit.cpp:73
PositiveLength mOldNameHeight
Definition cmdsymbolpinedit.h:104
std::shared_ptr< SymbolPin > mPin
Definition cmdsymbolpinedit.h:89
Angle mNewRotation
Definition cmdsymbolpinedit.h:99
void setLength(const UnsignedLength &length, bool immediate) noexcept
Definition cmdsymbolpinedit.cpp:80
~CmdSymbolPinEdit() noexcept
Definition cmdsymbolpinedit.cpp:59
void performUndo() override
Undo the command.
Definition cmdsymbolpinedit.cpp:184
UnsignedLength mOldLength
Definition cmdsymbolpinedit.h:94
Alignment mOldNameAlignment
Definition cmdsymbolpinedit.h:106
Point mOldNamePosition
Definition cmdsymbolpinedit.h:100
CmdSymbolPinEdit()=delete
CmdSymbolPinEdit(const CmdSymbolPinEdit &other)=delete
void setNameHeight(const PositiveLength &height, bool immediate) noexcept
Definition cmdsymbolpinedit.cpp:101
Angle mOldNameRotation
Definition cmdsymbolpinedit.h:102
Point mNewPos
Definition cmdsymbolpinedit.h:97
void snapToGrid(const PositiveLength &gridInterval, bool immediate) noexcept
Definition cmdsymbolpinedit.cpp:128
void mirror(Qt::Orientation orientation, const Point ¢er, bool immediate) noexcept
Definition cmdsymbolpinedit.cpp:151
Point mNewNamePosition
Definition cmdsymbolpinedit.h:101
void setNameRotation(const Angle &rotation, bool immediate) noexcept
Definition cmdsymbolpinedit.cpp:94
bool performExecute() override
Execute the command the first time.
Definition cmdsymbolpinedit.cpp:170
void rotate(const Angle &angle, const Point ¢er, bool immediate) noexcept
Definition cmdsymbolpinedit.cpp:140
void setNameAlignment(const Alignment &align, bool immediate) noexcept
Definition cmdsymbolpinedit.cpp:108
Angle mOldRotation
Definition cmdsymbolpinedit.h:98
void setNamePosition(const Point &position, bool immediate) noexcept
Definition cmdsymbolpinedit.cpp:87
UnsignedLength mNewLength
Definition cmdsymbolpinedit.h:95
CircuitIdentifier mNewName
Definition cmdsymbolpinedit.h:93
void setRotation(const Angle &angle, bool immediate) noexcept
Definition cmdsymbolpinedit.cpp:133
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
CmdListElementsSwap< SymbolPin, SymbolPinListNameProvider, SymbolPin::Event > CmdSymbolPinsSwap
Definition cmdsymbolpinedit.h:121
CmdListElementInsert< SymbolPin, SymbolPinListNameProvider, SymbolPin::Event > CmdSymbolPinInsert
Definition cmdsymbolpinedit.h:116
CmdListElementRemove< SymbolPin, SymbolPinListNameProvider, SymbolPin::Event > CmdSymbolPinRemove
Definition cmdsymbolpinedit.h:119
Definition occmodel.cpp:76
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810
type_safe::constrained_type< QString, CircuitIdentifierConstraint, CircuitIdentifierVerifier > CircuitIdentifier
Definition circuitidentifier.h:95
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694
Definition symbolpin.h:153