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