20#ifndef LIBREPCB_EDITOR_CMDPACKAGEPADEDIT_H
21#define LIBREPCB_EDITOR_CMDPACKAGEPADEDIT_H
26#include "../../cmd/cmdlistelementinsert.h"
27#include "../../cmd/cmdlistelementremove.h"
28#include "../../cmd/cmdlistelementsswap.h"
29#include "../../undocommand.h"
The PackagePad class represents one logical pad of a package.
Definition packagepad.h:47
The CmdListElementInsert class.
Definition cmdlistelementinsert.h:46
The CmdListElementRemove class.
Definition cmdlistelementremove.h:46
The CmdListElementsSwap class.
Definition cmdlistelementsswap.h:46
The CmdPackagePadEdit class.
Definition cmdpackagepadedit.h:48
void performRedo() override
Redo the command.
Definition cmdpackagepadedit.cpp:71
PackagePad & mPad
Definition cmdpackagepadedit.h:77
CircuitIdentifier mOldName
Definition cmdpackagepadedit.h:80
CmdPackagePadEdit(const CmdPackagePadEdit &other)=delete
void performUndo() override
Undo the command.
Definition cmdpackagepadedit.cpp:67
~CmdPackagePadEdit() noexcept
Definition cmdpackagepadedit.cpp:44
void setName(const CircuitIdentifier &name) noexcept
Definition cmdpackagepadedit.cpp:51
bool performExecute() override
Execute the command the first time.
Definition cmdpackagepadedit.cpp:60
CmdPackagePadEdit()=delete
CircuitIdentifier mNewName
Definition cmdpackagepadedit.h:81
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
CmdListElementsSwap< PackagePad, PackagePadListNameProvider, PackagePad::Event > CmdPackagePadsSwap
Definition cmdpackagepadedit.h:96
CmdListElementRemove< PackagePad, PackagePadListNameProvider, PackagePad::Event > CmdPackagePadRemove
Definition cmdpackagepadedit.h:93
CmdListElementInsert< PackagePad, PackagePadListNameProvider, PackagePad::Event > CmdPackagePadInsert
Definition cmdpackagepadedit.h:90
Definition occmodel.cpp:76
type_safe::constrained_type< QString, CircuitIdentifierConstraint, CircuitIdentifierVerifier > CircuitIdentifier
Definition circuitidentifier.h:95
Definition packagepad.h:98