LibrePCB Developers Documentation
PackageChooserDialog Class Referencefinal

The PackageChooserDialog class. More...

#include <packagechooserdialog.h>

Inherits QDialog.

+ Collaboration diagram for PackageChooserDialog:

Public Member Functions

 PackageChooserDialog ()=delete
 
 PackageChooserDialog (const PackageChooserDialog &other)=delete
 
 PackageChooserDialog (const Workspace &ws, const IF_GraphicsLayerProvider *layerProvider, QWidget *parent=nullptr) noexcept
 
 ~PackageChooserDialog () noexcept
 
const tl::optional< Uuid > & getSelectedPackageUuid () const noexcept
 
PackageChooserDialogoperator= (const PackageChooserDialog &rhs)=delete
 

Private Member Functions

void searchEditTextChanged (const QString &text) noexcept
 
void treeCategories_currentItemChanged (const QModelIndex &current, const QModelIndex &previous) noexcept
 
void listPackages_currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous) noexcept
 
void listPackages_itemDoubleClicked (QListWidgetItem *item) noexcept
 
void searchPackages (const QString &input)
 
void setSelectedCategory (const tl::optional< Uuid > &uuid) noexcept
 
void setSelectedPackage (const tl::optional< Uuid > &uuid) noexcept
 
void updatePreview (const FilePath &fp) noexcept
 
void accept () noexcept override
 
const QStringList & localeOrder () const noexcept
 

Private Attributes

const WorkspacemWorkspace
 
const IF_GraphicsLayerProvidermLayerProvider
 
QScopedPointer< Ui::PackageChooserDialog > mUi
 
QScopedPointer< QAbstractItemModel > mCategoryTreeModel
 
bool mCategorySelected
 
tl::optional< UuidmSelectedCategoryUuid
 
tl::optional< UuidmSelectedPackageUuid
 
std::unique_ptr< PackagemPackage
 
QScopedPointer< GraphicsScenemGraphicsScene
 
QScopedPointer< FootprintGraphicsItemmGraphicsItem
 

Detailed Description

Constructor & Destructor Documentation

◆ PackageChooserDialog() [1/3]

◆ PackageChooserDialog() [2/3]

PackageChooserDialog ( const PackageChooserDialog other)
delete

◆ PackageChooserDialog() [3/3]

PackageChooserDialog ( const Workspace ws,
const IF_GraphicsLayerProvider layerProvider,
QWidget *  parent = nullptr 
)
noexcept
+ Here is the call graph for this function:

◆ ~PackageChooserDialog()

~PackageChooserDialog ( )
noexcept
+ Here is the call graph for this function:

Member Function Documentation

◆ getSelectedPackageUuid()

const tl::optional< Uuid > & getSelectedPackageUuid ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ operator=()

PackageChooserDialog & operator= ( const PackageChooserDialog rhs)
delete

◆ searchEditTextChanged()

void searchEditTextChanged ( const QString &  text)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ treeCategories_currentItemChanged()

void treeCategories_currentItemChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ listPackages_currentItemChanged()

void listPackages_currentItemChanged ( QListWidgetItem *  current,
QListWidgetItem *  previous 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ listPackages_itemDoubleClicked()

void listPackages_itemDoubleClicked ( QListWidgetItem *  item)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ searchPackages()

void searchPackages ( const QString &  input)
private
+ Here is the call graph for this function:

◆ setSelectedCategory()

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

◆ setSelectedPackage()

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

◆ updatePreview()

void updatePreview ( const FilePath fp)
privatenoexcept
+ Here is the call graph for this function:

◆ accept()

void accept ( )
overrideprivatenoexcept

◆ localeOrder()

const QStringList & localeOrder ( ) const
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mWorkspace

const Workspace& mWorkspace
private

◆ mLayerProvider

const IF_GraphicsLayerProvider* mLayerProvider
private

◆ mUi

QScopedPointer<Ui::PackageChooserDialog> mUi
private

◆ mCategoryTreeModel

QScopedPointer<QAbstractItemModel> mCategoryTreeModel
private

◆ mCategorySelected

bool mCategorySelected
private

◆ mSelectedCategoryUuid

tl::optional<Uuid> mSelectedCategoryUuid
private

◆ mSelectedPackageUuid

tl::optional<Uuid> mSelectedPackageUuid
private

◆ mPackage

std::unique_ptr<Package> mPackage
private

◆ mGraphicsScene

QScopedPointer<GraphicsScene> mGraphicsScene
private

◆ mGraphicsItem

QScopedPointer<FootprintGraphicsItem> mGraphicsItem
private

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