20#ifndef LIBREPCB_EDITOR_CMDCOMPONENTSYMBOLVARIANTITEMEDIT_H
21#define LIBREPCB_EDITOR_CMDCOMPONENTSYMBOLVARIANTITEMEDIT_H
26#include "../../cmd/cmdlistelementinsert.h"
27#include "../../cmd/cmdlistelementremove.h"
28#include "../../cmd/cmdlistelementsswap.h"
29#include "../../undocommand.h"
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
The ComponentSymbolVariantItem class represents one symbol of a component symbol variant.
Definition componentsymbolvariantitem.h:54
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition uuid.h:56
The CmdComponentSymbolVariantItemEdit class.
Definition cmdcomponentsymbolvariantitemedit.h:48
void performRedo() override
Redo the command.
Definition cmdcomponentsymbolvariantitemedit.cpp:123
void setPinSignalMap(const ComponentPinSignalMap &map) noexcept
Definition cmdcomponentsymbolvariantitemedit.cpp:92
Angle mNewSymbolRot
Definition cmdcomponentsymbolvariantitemedit.h:88
CmdComponentSymbolVariantItemEdit(const CmdComponentSymbolVariantItemEdit &other)=delete
CmdComponentSymbolVariantItemEdit()=delete
Point mOldSymbolPos
Definition cmdcomponentsymbolvariantitemedit.h:85
void setIsRequired(bool required) noexcept
Definition cmdcomponentsymbolvariantitemedit.cpp:81
ComponentPinSignalMap mOldPinSignalMap
Definition cmdcomponentsymbolvariantitemedit.h:93
bool mOldIsRequired
Definition cmdcomponentsymbolvariantitemedit.h:89
Angle mOldSymbolRot
Definition cmdcomponentsymbolvariantitemedit.h:87
void performUndo() override
Undo the command.
Definition cmdcomponentsymbolvariantitemedit.cpp:114
ComponentSymbolVariantItem & mItem
Definition cmdcomponentsymbolvariantitemedit.h:81
Point mNewSymbolPos
Definition cmdcomponentsymbolvariantitemedit.h:86
ComponentPinSignalMap mNewPinSignalMap
Definition cmdcomponentsymbolvariantitemedit.h:94
~CmdComponentSymbolVariantItemEdit() noexcept
Definition cmdcomponentsymbolvariantitemedit.cpp:56
ComponentSymbolVariantItemSuffix mOldSuffix
Definition cmdcomponentsymbolvariantitemedit.h:91
bool mNewIsRequired
Definition cmdcomponentsymbolvariantitemedit.h:90
void setSymbolPosition(const Point &pos) noexcept
Definition cmdcomponentsymbolvariantitemedit.cpp:69
void setSuffix(const ComponentSymbolVariantItemSuffix &suffix) noexcept
Definition cmdcomponentsymbolvariantitemedit.cpp:86
Uuid mOldSymbolUuid
Definition cmdcomponentsymbolvariantitemedit.h:83
void setSymbolRotation(const Angle &rot) noexcept
Definition cmdcomponentsymbolvariantitemedit.cpp:75
bool performExecute() override
Execute the command the first time.
Definition cmdcomponentsymbolvariantitemedit.cpp:102
Uuid mNewSymbolUuid
Definition cmdcomponentsymbolvariantitemedit.h:84
ComponentSymbolVariantItemSuffix mNewSuffix
Definition cmdcomponentsymbolvariantitemedit.h:92
void setSymbolUuid(const Uuid &uuid) noexcept
Definition cmdcomponentsymbolvariantitemedit.cpp:63
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
CmdListElementsSwap< ComponentSymbolVariantItem, ComponentSymbolVariantItemListNameProvider, ComponentSymbolVariantItem::Event > CmdComponentSymbolVariantItemsSwap
Definition cmdcomponentsymbolvariantitemedit.h:112
CmdListElementInsert< ComponentSymbolVariantItem, ComponentSymbolVariantItemListNameProvider, ComponentSymbolVariantItem::Event > CmdComponentSymbolVariantItemInsert
Definition cmdcomponentsymbolvariantitemedit.h:104
CmdListElementRemove< ComponentSymbolVariantItem, ComponentSymbolVariantItemListNameProvider, ComponentSymbolVariantItem::Event > CmdComponentSymbolVariantItemRemove
Definition cmdcomponentsymbolvariantitemedit.h:108
Definition occmodel.cpp:76
type_safe::constrained_type< QString, ComponentSymbolVariantItemSuffixConstraint, ComponentSymbolVariantItemSuffixVerifier > ComponentSymbolVariantItemSuffix
Definition componentsymbolvariantitemsuffix.h:88
Definition componentsymbolvariantitem.h:144