20#ifndef LIBREPCB_EDITOR_CMDADDSYMBOLTOSCHEMATIC_H
21#define LIBREPCB_EDITOR_CMDADDSYMBOLTOSCHEMATIC_H
26#include "../../undocommandgroup.h"
39class ComponentInstance;
59 const Uuid& symbolItem,
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The ComponentInstance class.
Definition: componentinstance.h:54
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The SI_Symbol class.
Definition: si_symbol.h:54
The Schematic class represents one schematic page of a project and is always part of a circuit.
Definition: schematic.h:74
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 CmdAddSymbolToSchematic class.
Definition: cmdaddsymboltoschematic.h:54
Angle mAngle
Definition: cmdaddsymboltoschematic.h:81
Schematic & mSchematic
Definition: cmdaddsymboltoschematic.h:77
Uuid mSymbolItemUuid
Definition: cmdaddsymboltoschematic.h:79
ComponentInstance & mComponentInstance
Definition: cmdaddsymboltoschematic.h:78
SI_Symbol * mSymbolInstance
Definition: cmdaddsymboltoschematic.h:83
CmdAddSymbolToSchematic(Workspace &workspace, Schematic &schematic, ComponentInstance &cmpInstance, const Uuid &symbolItem, const Point &position=Point(), const Angle &angle=Angle()) noexcept
Definition: cmdaddsymboltoschematic.cpp:52
~CmdAddSymbolToSchematic() noexcept
Definition: cmdaddsymboltoschematic.cpp:65
Workspace & mWorkspace
Definition: cmdaddsymboltoschematic.h:76
SI_Symbol * getSymbolInstance() const noexcept
Definition: cmdaddsymboltoschematic.h:65
bool performExecute() override
Execute the command the first time.
Definition: cmdaddsymboltoschematic.cpp:72
Point mPosition
Definition: cmdaddsymboltoschematic.h:80
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