20 #ifndef LIBREPCB_EDITOR_CMDDEVICEEDIT_H 21 #define LIBREPCB_EDITOR_CMDDEVICEEDIT_H 26 #include "../../undocommand.h" void performRedo() override
Redo the command.
Definition: cmddeviceedit.cpp:82
The CmdDeviceEdit class.
Definition: cmddeviceedit.h:48
void setComponentUuid(const Uuid &uuid) noexcept
Definition: cmddeviceedit.cpp:55
CmdDeviceEdit & operator=(const CmdDeviceEdit &rhs)=delete
Definition: occmodel.cpp:77
The Device class represents an instance of a component (a "real" component)
Definition: device.h:55
void setPackageUuid(const Uuid &uuid) noexcept
Definition: cmddeviceedit.cpp:60
Uuid mOldComponentUuid
Definition: cmddeviceedit.h:76
void performUndo() override
Undo the command.
Definition: cmddeviceedit.cpp:77
bool performExecute() override
Execute the command the first time.
Definition: cmddeviceedit.cpp:69
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Device & mDevice
Definition: cmddeviceedit.h:74
Uuid mNewComponentUuid
Definition: cmddeviceedit.h:77
~CmdDeviceEdit() noexcept
Definition: cmddeviceedit.cpp:48
Uuid mNewPackageUuid
Definition: cmddeviceedit.h:79
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
Uuid mOldPackageUuid
Definition: cmddeviceedit.h:78