20#ifndef LIBREPCB_EDITOR_CMDCOMPONENTINSTANCEREMOVE_H
21#define LIBREPCB_EDITOR_CMDCOMPONENTINSTANCEREMOVE_H
26#include "../../undocommand.h"
36class ComponentInstance;
The Circuit class represents all electrical connections in a project (drawn in the schematics)
Definition: circuit.h:70
The ComponentInstance class.
Definition: componentinstance.h:54
The CmdComponentInstanceRemove class.
Definition: cmdcomponentinstanceremove.h:47
void performRedo() override
Redo the command.
Definition: cmdcomponentinstanceremove.cpp:64
Circuit & mCircuit
Definition: cmdcomponentinstanceremove.h:68
CmdComponentInstanceRemove(Circuit &circuit, ComponentInstance &cmp) noexcept
Definition: cmdcomponentinstanceremove.cpp:40
ComponentInstance & mComponentInstance
Definition: cmdcomponentinstanceremove.h:69
void performUndo() override
Undo the command.
Definition: cmdcomponentinstanceremove.cpp:60
~CmdComponentInstanceRemove() noexcept
Definition: cmdcomponentinstanceremove.cpp:47
bool performExecute() override
Execute the command the first time.
Definition: cmdcomponentinstanceremove.cpp:54
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77