LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ComponentChooserDialog Class Referencefinal

The ComponentChooserDialog class. More...

#include <componentchooserdialog.h>

Inherits QDialog.

+ Collaboration diagram for ComponentChooserDialog:

Public Member Functions

 ComponentChooserDialog ()=delete
 
 ComponentChooserDialog (const ComponentChooserDialog &other)=delete
 
 ComponentChooserDialog (const workspace::Workspace &ws, const IF_GraphicsLayerProvider *layerProvider, QWidget *parent=nullptr) noexcept
 
 ~ComponentChooserDialog () noexcept
 
const tl::optional< Uuid > & getSelectedComponentUuid () const noexcept
 
ComponentChooserDialogoperator= (const ComponentChooserDialog &rhs)=delete
 

Private Member Functions

void treeCategories_currentItemChanged (const QModelIndex &current, const QModelIndex &previous) noexcept
 
void listComponents_currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous) noexcept
 
void listComponents_itemDoubleClicked (QListWidgetItem *item) noexcept
 
void setSelectedCategory (const tl::optional< Uuid > &uuid) noexcept
 
void setSelectedComponent (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::ComponentChooserDialog > 
mUi
 
QScopedPointer
< QAbstractItemModel > 
mCategoryTreeModel
 
tl::optional< UuidmSelectedCategoryUuid
 
tl::optional< UuidmSelectedComponentUuid
 
FilePath mComponentFilePath
 
QScopedPointer< ComponentmComponent
 
QScopedPointer< GraphicsScenemGraphicsScene
 
QList< std::shared_ptr< Symbol > > mSymbols
 
QList< std::shared_ptr
< SymbolPreviewGraphicsItem > > 
mSymbolGraphicsItems
 

Detailed Description

The ComponentChooserDialog class.

Author
ubruhin
Date
2017-03-25

Constructor & Destructor Documentation

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

+ Here is the call graph for this function:

~ComponentChooserDialog ( )
noexcept

+ Here is the call graph for this function:

Member Function Documentation

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

+ Here is the caller graph for this function:

ComponentChooserDialog& operator= ( const ComponentChooserDialog 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 listComponents_currentItemChanged ( QListWidgetItem *  current,
QListWidgetItem *  previous 
)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void listComponents_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 setSelectedComponent ( 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::ComponentChooserDialog> mUi
private
QScopedPointer<QAbstractItemModel> mCategoryTreeModel
private
tl::optional<Uuid> mSelectedCategoryUuid
private
tl::optional<Uuid> mSelectedComponentUuid
private
FilePath mComponentFilePath
private
QScopedPointer<Component> mComponent
private
QScopedPointer<GraphicsScene> mGraphicsScene
private
QList<std::shared_ptr<Symbol> > mSymbols
private
QList<std::shared_ptr<SymbolPreviewGraphicsItem> > mSymbolGraphicsItems
private

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