20#ifndef LIBREPCB_EDITOR_CMDADDDEVICETOBOARD_H
21#define LIBREPCB_EDITOR_CMDADDDEVICETOBOARD_H
26#include "../../undocommandgroup.h"
41class ComponentInstance;
59 const std::optional<Uuid>& footprintUuid,
60 const std::optional<Uuid>& preferredModelUuid,
63 bool mirror =
false)
noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
The BI_Device class.
Definition bi_device.h:57
The Board class represents a PCB of a project and is always part of a circuit.
Definition board.h:73
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:78
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition uuid.h:56
The Workspace class represents a workspace with all its data (library, projects, settings,...
Definition workspace.h:54
The CmdAddDeviceToBoard class.
Definition cmdadddevicetoboard.h:54
ComponentInstance & mComponentInstance
Definition cmdadddevicetoboard.h:80
std::optional< Uuid > mPreferredModelUuid
Definition cmdadddevicetoboard.h:83
bool mMirror
Definition cmdadddevicetoboard.h:86
Board & mBoard
Definition cmdadddevicetoboard.h:79
BI_Device * getDeviceInstance() const noexcept
Definition cmdadddevicetoboard.h:67
std::optional< Uuid > mFootprintUuid
Definition cmdadddevicetoboard.h:82
BI_Device * mDeviceInstance
Definition cmdadddevicetoboard.h:89
Angle mRotation
Definition cmdadddevicetoboard.h:85
Workspace & mWorkspace
Definition cmdadddevicetoboard.h:78
~CmdAddDeviceToBoard() noexcept
Definition cmdadddevicetoboard.cpp:73
Uuid mDeviceUuid
Definition cmdadddevicetoboard.h:81
bool performExecute() override
Execute the command the first time.
Definition cmdadddevicetoboard.cpp:80
Point mPosition
Definition cmdadddevicetoboard.h:84
The UndoCommandGroup class makes it possible to pack multiple undo commands together (it acts as a pa...
Definition undocommandgroup.h:44
Definition occmodel.cpp:76