20#ifndef LIBREPCB_EDITOR_CMDADDCOMPONENTTOCIRCUIT_H
21#define LIBREPCB_EDITOR_CMDADDCOMPONENTTOCIRCUIT_H
26#include "../../undocommandgroup.h"
39class ComponentInstance;
45class CmdComponentInstanceAdd;
59 const Uuid& symbolVariant,
60 const tl::optional<ComponentAssemblyOptionList>& options)
noexcept;
The ComponentInstance class.
Definition: componentinstance.h:54
The Project class represents a whole (opened) project with all its content.
Definition: project.h:71
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 CmdAddComponentToCircuit class.
Definition: cmdaddcomponenttocircuit.h:54
~CmdAddComponentToCircuit() noexcept
Definition: cmdaddcomponenttocircuit.cpp:61
tl::optional< ComponentAssemblyOptionList > mAssemblyOptions
Definition: cmdaddcomponenttocircuit.h:79
CmdAddComponentToCircuit(Workspace &workspace, Project &project, const Uuid &component, const Uuid &symbolVariant, const tl::optional< ComponentAssemblyOptionList > &options) noexcept
Definition: cmdaddcomponenttocircuit.cpp:48
Uuid mComponentUuid
Definition: cmdaddcomponenttocircuit.h:77
Uuid mSymbVarUuid
Definition: cmdaddcomponenttocircuit.h:78
CmdComponentInstanceAdd * mCmdAddToCircuit
Definition: cmdaddcomponenttocircuit.h:82
ComponentInstance * getComponentInstance() const noexcept
Definition: cmdaddcomponenttocircuit.cpp:68
Project & mProject
Definition: cmdaddcomponenttocircuit.h:76
Workspace & mWorkspace
Definition: cmdaddcomponenttocircuit.h:75
bool performExecute() override
Execute the command the first time.
Definition: cmdaddcomponenttocircuit.cpp:78
The CmdComponentInstanceAdd class.
Definition: cmdcomponentinstanceadd.h:51
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