20#ifndef LIBREPCB_EDITOR_CMDDEVICEINSTANCEADD_H
21#define LIBREPCB_EDITOR_CMDDEVICEINSTANCEADD_H
26#include "../../undocommand.h"
39class ComponentInstance;
The BI_Device class.
Definition: bi_device.h:57
The CmdDeviceInstanceAdd class.
Definition: cmddeviceinstanceadd.h:51
void performRedo() override
Redo the command.
Definition: cmddeviceinstanceadd.cpp:60
void performUndo() override
Undo the command.
Definition: cmddeviceinstanceadd.cpp:56
CmdDeviceInstanceAdd(BI_Device &device) noexcept
Definition: cmddeviceinstanceadd.cpp:40
~CmdDeviceInstanceAdd() noexcept
Definition: cmddeviceinstanceadd.cpp:44
BI_Device & mDeviceInstance
Definition: cmddeviceinstanceadd.h:68
bool performExecute() override
Execute the command the first time.
Definition: cmddeviceinstanceadd.cpp:51
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77