LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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::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 treeCategories_currentItemChanged (const QModelIndex &current, const QModelIndex &previous) noexcept
 
void listPackages_currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous) noexcept
 
void listPackages_itemDoubleClicked (QListWidgetItem *item) noexcept
 
void setSelectedCategory (const tl::optional< Uuid > &uuid) noexcept
 
void setSelectedPackage (const tl::optional< Uuid > &uuid) noexcept
 
void updatePreview () noexcept
 
void accept () noexceptoverride
 
const QStringList & localeOrder () const noexcept
 

Private Attributes

const workspace::WorkspacemWorkspace
 
const IF_GraphicsLayerProvidermLayerProvider
 
QScopedPointer
< Ui::PackageChooserDialog > 
mUi
 
QScopedPointer
< QAbstractItemModel > 
mCategoryTreeModel
 
tl::optional< UuidmSelectedCategoryUuid
 
tl::optional< UuidmSelectedPackageUuid
 
FilePath mPackageFilePath
 
QScopedPointer< PackagemPackage
 
QScopedPointer< GraphicsScenemGraphicsScene
 
QScopedPointer
< FootprintPreviewGraphicsItem
mGraphicsItem
 

Detailed Description

The PackageChooserDialog class.

Author
ubruhin
Date
2017-03-25

Constructor & Destructor Documentation

PackageChooserDialog ( const PackageChooserDialog other)
delete
PackageChooserDialog ( const workspace::Workspace ws,
const IF_GraphicsLayerProvider layerProvider,
QWidget *  parent = nullptr 
)
noexcept

+ Here is the call graph for this function:

~PackageChooserDialog ( )
noexcept

+ Here is the call graph for this function:

Member Function Documentation

const tl::optional<Uuid>& getSelectedPackageUuid ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

PackageChooserDialog& operator= ( const PackageChooserDialog rhs)
delete
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:

void listPackages_currentItemChanged ( QListWidgetItem *  current,
QListWidgetItem *  previous 
)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void listPackages_itemDoubleClicked ( QListWidgetItem *  item)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void setSelectedCategory ( const tl::optional< Uuid > &  uuid)
privatenoexcept

+ Here is the call graph for this function:

void setSelectedPackage ( const tl::optional< Uuid > &  uuid)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void updatePreview ( )
privatenoexcept

+ Here is the call graph for this function:

void accept ( )
overrideprivatenoexcept
const QStringList & localeOrder ( ) const
privatenoexcept

+ Here is the call graph for this function:

Member Data Documentation

const workspace::Workspace& mWorkspace
private
const IF_GraphicsLayerProvider* mLayerProvider
private
QScopedPointer<Ui::PackageChooserDialog> mUi
private
QScopedPointer<QAbstractItemModel> mCategoryTreeModel
private
tl::optional<Uuid> mSelectedCategoryUuid
private
tl::optional<Uuid> mSelectedPackageUuid
private
FilePath mPackageFilePath
private
QScopedPointer<Package> mPackage
private
QScopedPointer<GraphicsScene> mGraphicsScene
private
QScopedPointer<FootprintPreviewGraphicsItem> mGraphicsItem
private

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