20#ifndef LIBREPCB_EDITOR_CMDCOMPONENTINSTANCEADD_H
21#define LIBREPCB_EDITOR_CMDCOMPONENTINSTANCEADD_H
26#include "../../undocommand.h"
40class 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 Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
The CmdComponentInstanceAdd class.
Definition: cmdcomponentinstanceadd.h:51
void performRedo() override
Redo the command.
Definition: cmdcomponentinstanceadd.cpp:100
Circuit & mCircuit
Definition: cmdcomponentinstanceadd.h:81
void performUndo() override
Undo the command.
Definition: cmdcomponentinstanceadd.cpp:96
Uuid mComponentUuid
Definition: cmdcomponentinstanceadd.h:82
Uuid mSymbVarUuid
Definition: cmdcomponentinstanceadd.h:83
CmdComponentInstanceAdd(Circuit &circuit, const Uuid &cmp, const Uuid &symbVar, const ComponentAssemblyOptionList &options) noexcept
Definition: cmdcomponentinstanceadd.cpp:43
ComponentInstance * getComponentInstance() const noexcept
Definition: cmdcomponentinstanceadd.h:62
ComponentAssemblyOptionList mAssemblyOptions
Definition: cmdcomponentinstanceadd.h:84
ComponentInstance * mComponentInstance
The created component instance.
Definition: cmdcomponentinstanceadd.h:87
~CmdComponentInstanceAdd() noexcept
Definition: cmdcomponentinstanceadd.cpp:64
bool performExecute() override
Execute the command the first time.
Definition: cmdcomponentinstanceadd.cpp:71
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77