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