LibrePCB Developers Documentation
UnplacedComponentsDock Class Referencefinal

The UnplacedComponentsDock class. More...

#include <unplacedcomponentsdock.h>

Inherits QDockWidget.

+ Collaboration diagram for UnplacedComponentsDock:

Signals

void unplacedComponentsCountChanged (int count)
 
void addDeviceTriggered (ComponentInstance &cmp, const Uuid &deviceUuid, Uuid footprintUuid)
 

Public Member Functions

 UnplacedComponentsDock (ProjectEditor &editor)
 
 ~UnplacedComponentsDock ()
 
int getUnplacedComponentsCount () const noexcept
 
void setBoard (Board *board)
 

Private Slots

void on_lstUnplacedComponents_currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous)
 
void on_cbxSelectedDevice_currentIndexChanged (int index)
 
void on_cbxSelectedFootprint_currentIndexChanged (int index)
 
void on_btnAdd_clicked ()
 
void on_pushButton_clicked ()
 
void on_btnAddAll_clicked ()
 

Private Member Functions

 UnplacedComponentsDock ()
 
 UnplacedComponentsDock (const UnplacedComponentsDock &other)
 
UnplacedComponentsDockoperator= (const UnplacedComponentsDock &rhs)
 
void updateComponentsList () noexcept
 
void setSelectedComponentInstance (ComponentInstance *cmp) noexcept
 
void setSelectedDeviceAndPackage (const library::Device *device, const library::Package *package) noexcept
 
void setSelectedFootprintUuid (const tl::optional< Uuid > &uuid) noexcept
 
void beginUndoCmdGroup () noexcept
 
void addNextDeviceToCmdGroup (ComponentInstance &cmp, const Uuid &deviceUuid, const tl::optional< Uuid > &footprintUuid) noexcept
 
void commitUndoCmdGroup () noexcept
 
void addDeviceManually (ComponentInstance &cmp, const Uuid &deviceUuid, Uuid footprintUuid) noexcept
 

Private Attributes

ProjectEditormProjectEditor
 
ProjectmProject
 
BoardmBoard
 
Ui::UnplacedComponentsDock * mUi
 
QScopedPointer< DefaultGraphicsLayerProvidermGraphicsLayerProvider
 
GraphicsScenemFootprintPreviewGraphicsScene
 
library::FootprintPreviewGraphicsItemmFootprintPreviewGraphicsItem
 
ComponentInstancemSelectedComponent
 
const library::DevicemSelectedDevice
 
const library::PackagemSelectedPackage
 
tl::optional< UuidmSelectedFootprintUuid
 
QMetaObject::Connection mCircuitConnection1
 
QMetaObject::Connection mCircuitConnection2
 
QMetaObject::Connection mBoardConnection1
 
QMetaObject::Connection mBoardConnection2
 
Point mNextPosition
 
bool mDisableListUpdate
 
QHash< Uuid, UuidmLastDeviceOfComponent
 
QHash< Uuid, tl::optional< Uuid > > mLastFootprintOfDevice
 
QScopedPointer< UndoCommandGroupmCurrentUndoCmdGroup
 

Detailed Description

Constructor & Destructor Documentation

◆ UnplacedComponentsDock() [1/3]

UnplacedComponentsDock ( ProjectEditor editor)
explicit
+ Here is the call graph for this function:

◆ ~UnplacedComponentsDock()

+ Here is the call graph for this function:

◆ UnplacedComponentsDock() [2/3]

◆ UnplacedComponentsDock() [3/3]

UnplacedComponentsDock ( const UnplacedComponentsDock other)
private

Member Function Documentation

◆ getUnplacedComponentsCount()

int getUnplacedComponentsCount ( ) const
noexcept
+ Here is the caller graph for this function:

◆ setBoard()

void setBoard ( Board board)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unplacedComponentsCountChanged

void unplacedComponentsCountChanged ( int  count)
signal
+ Here is the caller graph for this function:

◆ addDeviceTriggered

void addDeviceTriggered ( ComponentInstance cmp,
const Uuid deviceUuid,
Uuid  footprintUuid 
)
signal
+ Here is the caller graph for this function:

◆ on_lstUnplacedComponents_currentItemChanged

void on_lstUnplacedComponents_currentItemChanged ( QListWidgetItem *  current,
QListWidgetItem *  previous 
)
privateslot
+ Here is the call graph for this function:

◆ on_cbxSelectedDevice_currentIndexChanged

void on_cbxSelectedDevice_currentIndexChanged ( int  index)
privateslot
+ Here is the call graph for this function:

◆ on_cbxSelectedFootprint_currentIndexChanged

void on_cbxSelectedFootprint_currentIndexChanged ( int  index)
privateslot
+ Here is the call graph for this function:

◆ on_btnAdd_clicked

void on_btnAdd_clicked ( )
privateslot
+ Here is the call graph for this function:

◆ on_pushButton_clicked

void on_pushButton_clicked ( )
privateslot
+ Here is the call graph for this function:

◆ on_btnAddAll_clicked

void on_btnAddAll_clicked ( )
privateslot
+ Here is the call graph for this function:

◆ operator=()

UnplacedComponentsDock& operator= ( const UnplacedComponentsDock rhs)
private

◆ updateComponentsList()

void updateComponentsList ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSelectedComponentInstance()

void setSelectedComponentInstance ( ComponentInstance cmp)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSelectedDeviceAndPackage()

void setSelectedDeviceAndPackage ( const library::Device device,
const library::Package package 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSelectedFootprintUuid()

void setSelectedFootprintUuid ( const tl::optional< Uuid > &  uuid)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ beginUndoCmdGroup()

void beginUndoCmdGroup ( )
privatenoexcept
+ Here is the caller graph for this function:

◆ addNextDeviceToCmdGroup()

void addNextDeviceToCmdGroup ( ComponentInstance cmp,
const Uuid deviceUuid,
const tl::optional< Uuid > &  footprintUuid 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ commitUndoCmdGroup()

void commitUndoCmdGroup ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addDeviceManually()

void addDeviceManually ( ComponentInstance cmp,
const Uuid deviceUuid,
Uuid  footprintUuid 
)
privatenoexcept
+ Here is the caller graph for this function:

Member Data Documentation

◆ mProjectEditor

ProjectEditor& mProjectEditor
private

◆ mProject

Project& mProject
private

◆ mBoard

Board* mBoard
private

◆ mUi

Ui::UnplacedComponentsDock* mUi
private

◆ mGraphicsLayerProvider

QScopedPointer<DefaultGraphicsLayerProvider> mGraphicsLayerProvider
private

◆ mFootprintPreviewGraphicsScene

GraphicsScene* mFootprintPreviewGraphicsScene
private

◆ mFootprintPreviewGraphicsItem

library::FootprintPreviewGraphicsItem* mFootprintPreviewGraphicsItem
private

◆ mSelectedComponent

ComponentInstance* mSelectedComponent
private

◆ mSelectedDevice

const library::Device* mSelectedDevice
private

◆ mSelectedPackage

const library::Package* mSelectedPackage
private

◆ mSelectedFootprintUuid

tl::optional<Uuid> mSelectedFootprintUuid
private

◆ mCircuitConnection1

QMetaObject::Connection mCircuitConnection1
private

◆ mCircuitConnection2

QMetaObject::Connection mCircuitConnection2
private

◆ mBoardConnection1

QMetaObject::Connection mBoardConnection1
private

◆ mBoardConnection2

QMetaObject::Connection mBoardConnection2
private

◆ mNextPosition

Point mNextPosition
private

◆ mDisableListUpdate

bool mDisableListUpdate
private

◆ mLastDeviceOfComponent

QHash<Uuid, Uuid> mLastDeviceOfComponent
private

◆ mLastFootprintOfDevice

QHash<Uuid, tl::optional<Uuid> > mLastFootprintOfDevice
private

◆ mCurrentUndoCmdGroup

QScopedPointer<UndoCommandGroup> mCurrentUndoCmdGroup
private

The documentation for this class was generated from the following files: