20#ifndef LIBREPCB_EDITOR_UNPLACEDCOMPONENTSDOCK_H
21#define LIBREPCB_EDITOR_UNPLACEDCOMPONENTSDOCK_H
38class ComponentInstance;
46class DefaultGraphicsLayerProvider;
47class FootprintGraphicsItem;
52class UnplacedComponentsDock;
87 QWidget* parent =
nullptr) noexcept;
108 QListWidgetItem* previous) noexcept;
114 bool packageOwned) noexcept;
120 const
tl::optional<
Uuid>& libCmpUuidFilter) noexcept;
133 const
Uuid& libPkgUuid) const noexcept;
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 Package class represents a package of a component (including footprint and 3D model)
Definition: package.h:59
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
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 DefaultGraphicsLayerProvider class.
Definition: defaultgraphicslayerprovider.h:46
The GraphicsScene class.
Definition: graphicsscene.h:45
The ProjectEditor class.
Definition: projecteditor.h:66
The UnplacedComponentsDock class.
Definition: unplacedcomponentsdock.h:62
QList< DeviceMetadata > mCurrentDevices
Definition: unplacedcomponentsdock.h:146
bool mDisableListUpdate
Definition: unplacedcomponentsdock.h:142
tl::optional< Uuid > getSuggestedFootprint(const Uuid &libPkgUuid) const noexcept
Definition: unplacedcomponentsdock.cpp:634
tl::optional< Uuid > mSelectedFootprintUuid
Definition: unplacedcomponentsdock.h:153
Package * mSelectedPackage
Definition: unplacedcomponentsdock.h:151
void setSelectedComponentInstance(ComponentInstance *cmp) noexcept
Definition: unplacedcomponentsdock.cpp:316
Point mNextPosition
Definition: unplacedcomponentsdock.h:143
UnplacedComponentsDock()=delete
void setSelectedFootprintUuid(const tl::optional< Uuid > &uuid) noexcept
Definition: unplacedcomponentsdock.cpp:392
QScopedPointer< DefaultGraphicsLayerProvider > mGraphicsLayerProvider
Definition: unplacedcomponentsdock.h:156
void setBoard(Board *board)
Definition: unplacedcomponentsdock.cpp:170
int getUnplacedComponentsCount() const noexcept
Definition: unplacedcomponentsdock.cpp:162
Board * mBoard
Definition: unplacedcomponentsdock.h:138
ProjectEditor & mProjectEditor
Definition: unplacedcomponentsdock.h:136
void addAllDevicesToBoard() noexcept
Definition: unplacedcomponentsdock.cpp:444
ComponentInstance * mSelectedComponent
Definition: unplacedcomponentsdock.h:149
bool mSelectedPackageOwned
Definition: unplacedcomponentsdock.h:152
void addSelectedDeviceToBoard() noexcept
Definition: unplacedcomponentsdock.cpp:418
QHash< Uuid, Uuid > mLastFootprintOfPackage
Definition: unplacedcomponentsdock.h:145
void currentFootprintIndexChanged(int index) noexcept
Definition: unplacedcomponentsdock.cpp:306
Project & mProject
Definition: unplacedcomponentsdock.h:137
QScopedPointer< GraphicsScene > mPreviewGraphicsScene
Definition: unplacedcomponentsdock.h:157
void currentComponentListItemChanged(QListWidgetItem *current, QListWidgetItem *previous) noexcept
Definition: unplacedcomponentsdock.cpp:254
std::pair< QList< DeviceMetadata >, int > getAvailableDevices(ComponentInstance &cmp) const noexcept
Get all available devices for a specific component instance.
Definition: unplacedcomponentsdock.cpp:498
void autoAddDevicesToBoard(const tl::optional< Uuid > &libCmpUuidFilter) noexcept
Definition: unplacedcomponentsdock.cpp:452
void setSelectedDeviceAndPackage(const tl::optional< Uuid > &deviceUuid, Package *package, bool packageOwned) noexcept
Definition: unplacedcomponentsdock.cpp:349
void currentDeviceIndexChanged(int index) noexcept
Definition: unplacedcomponentsdock.cpp:268
void unplacedComponentsCountChanged(int count)
void updateComponentsList() noexcept
Definition: unplacedcomponentsdock.cpp:196
void addSimilarDevicesToBoard() noexcept
Definition: unplacedcomponentsdock.cpp:431
QHash< Uuid, Uuid > mLastDeviceOfComponent
Definition: unplacedcomponentsdock.h:144
void addDeviceTriggered(ComponentInstance &cmp, const Uuid &deviceUuid, Uuid footprintUuid)
tl::optional< Uuid > mSelectedDeviceUuid
Definition: unplacedcomponentsdock.h:150
QScopedPointer< FootprintGraphicsItem > mPreviewGraphicsItem
Definition: unplacedcomponentsdock.h:158
QScopedPointer< Ui::UnplacedComponentsDock > mUi
Definition: unplacedcomponentsdock.h:139
Definition: occmodel.cpp:77