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
std::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:78
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:56
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
Package * mSelectedPackage
Definition unplacedcomponentsdock.h:151
void setSelectedComponentInstance(ComponentInstance *cmp) noexcept
Definition unplacedcomponentsdock.cpp:315
Point mNextPosition
Definition unplacedcomponentsdock.h:143
UnplacedComponentsDock()=delete
void setSelectedDeviceAndPackage(const std::optional< Uuid > &deviceUuid, Package *package, bool packageOwned) noexcept
Definition unplacedcomponentsdock.cpp:348
std::optional< Uuid > mSelectedDeviceUuid
Definition unplacedcomponentsdock.h:150
QScopedPointer< DefaultGraphicsLayerProvider > mGraphicsLayerProvider
Definition unplacedcomponentsdock.h:156
std::optional< Uuid > getSuggestedFootprint(const Uuid &libPkgUuid) const noexcept
Definition unplacedcomponentsdock.cpp:633
void setBoard(Board *board)
Definition unplacedcomponentsdock.cpp:169
int getUnplacedComponentsCount() const noexcept
Definition unplacedcomponentsdock.cpp:161
Board * mBoard
Definition unplacedcomponentsdock.h:138
ProjectEditor & mProjectEditor
Definition unplacedcomponentsdock.h:136
void addAllDevicesToBoard() noexcept
Definition unplacedcomponentsdock.cpp:443
ComponentInstance * mSelectedComponent
Definition unplacedcomponentsdock.h:149
void setSelectedFootprintUuid(const std::optional< Uuid > &uuid) noexcept
Definition unplacedcomponentsdock.cpp:391
void autoAddDevicesToBoard(const std::optional< Uuid > &libCmpUuidFilter) noexcept
Definition unplacedcomponentsdock.cpp:451
bool mSelectedPackageOwned
Definition unplacedcomponentsdock.h:152
std::optional< Uuid > mSelectedFootprintUuid
Definition unplacedcomponentsdock.h:153
void addSelectedDeviceToBoard() noexcept
Definition unplacedcomponentsdock.cpp:417
QHash< Uuid, Uuid > mLastFootprintOfPackage
Definition unplacedcomponentsdock.h:145
void currentFootprintIndexChanged(int index) noexcept
Definition unplacedcomponentsdock.cpp:305
Project & mProject
Definition unplacedcomponentsdock.h:137
QScopedPointer< GraphicsScene > mPreviewGraphicsScene
Definition unplacedcomponentsdock.h:157
void currentComponentListItemChanged(QListWidgetItem *current, QListWidgetItem *previous) noexcept
Definition unplacedcomponentsdock.cpp:253
std::pair< QList< DeviceMetadata >, int > getAvailableDevices(ComponentInstance &cmp) const noexcept
Get all available devices for a specific component instance.
Definition unplacedcomponentsdock.cpp:497
void currentDeviceIndexChanged(int index) noexcept
Definition unplacedcomponentsdock.cpp:267
void unplacedComponentsCountChanged(int count)
void updateComponentsList() noexcept
Definition unplacedcomponentsdock.cpp:195
void addSimilarDevicesToBoard() noexcept
Definition unplacedcomponentsdock.cpp:430
QHash< Uuid, Uuid > mLastDeviceOfComponent
Definition unplacedcomponentsdock.h:144
void addDeviceTriggered(ComponentInstance &cmp, const Uuid &deviceUuid, Uuid footprintUuid)
QScopedPointer< FootprintGraphicsItem > mPreviewGraphicsItem
Definition unplacedcomponentsdock.h:158
QScopedPointer< Ui::UnplacedComponentsDock > mUi
Definition unplacedcomponentsdock.h:139
Definition occmodel.cpp:76