20#ifndef LIBREPCB_EDITOR_CMDREPLACEDEVICE_H
21#define LIBREPCB_EDITOR_CMDREPLACEDEVICE_H
26#include "../../undocommandgroup.h"
54 const Uuid& newDeviceUuid,
55 const tl::optional<Uuid>& newFootprintUuid)
noexcept;
The BI_Device class.
Definition: bi_device.h:57
The Board class represents a PCB of a project and is always part of a circuit.
Definition: board.h:73
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
The Workspace class represents a workspace with all its data (library, projects, settings,...
Definition: workspace.h:54
The CmdReplaceDevice class.
Definition: cmdreplacedevice.h:50
~CmdReplaceDevice() noexcept
Definition: cmdreplacedevice.cpp:64
Board & mBoard
Definition: cmdreplacedevice.h:68
CmdReplaceDevice(Workspace &workspace, Board &board, BI_Device &device, const Uuid &newDeviceUuid, const tl::optional< Uuid > &newFootprintUuid) noexcept
Definition: cmdreplacedevice.cpp:52
Uuid mNewDeviceUuid
Definition: cmdreplacedevice.h:70
Workspace & mWorkspace
Definition: cmdreplacedevice.h:67
BI_Device & mDeviceInstance
Definition: cmdreplacedevice.h:69
bool performExecute() override
Execute the command the first time.
Definition: cmdreplacedevice.cpp:71
tl::optional< Uuid > mNewFootprintUuid
Definition: cmdreplacedevice.h:71
The UndoCommandGroup class makes it possible to pack multiple undo commands together (it acts as a pa...
Definition: undocommandgroup.h:44
Definition: occmodel.cpp:77