20#ifndef LIBREPCB_EDITOR_CMDDEVICEINSTANCEREMOVE_H
21#define LIBREPCB_EDITOR_CMDDEVICEINSTANCEREMOVE_H
26#include "../../undocommand.h"
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 CmdDeviceInstanceRemove class.
Definition: cmddeviceinstanceremove.h:47
void performRedo() override
Redo the command.
Definition: cmddeviceinstanceremove.cpp:63
BI_Device & mDevice
Definition: cmddeviceinstanceremove.h:69
void performUndo() override
Undo the command.
Definition: cmddeviceinstanceremove.cpp:59
~CmdDeviceInstanceRemove() noexcept
Definition: cmddeviceinstanceremove.cpp:46
CmdDeviceInstanceRemove(BI_Device &dev) noexcept
Definition: cmddeviceinstanceremove.cpp:40
Board & mBoard
Definition: cmddeviceinstanceremove.h:68
bool performExecute() override
Execute the command the first time.
Definition: cmddeviceinstanceremove.cpp:53
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77