LibrePCB Developers Documentation
SymbolChooserDialog Class Referencefinal

The SymbolChooserDialog class. More...

#include <symbolchooserdialog.h>

Inherits QDialog.

+ Collaboration diagram for SymbolChooserDialog:

Public Member Functions

 SymbolChooserDialog ()=delete
 
 SymbolChooserDialog (const SymbolChooserDialog &other)=delete
 
 SymbolChooserDialog (const workspace::Workspace &ws, const IF_GraphicsLayerProvider &layerProvider, QWidget *parent=nullptr) noexcept
 
 ~SymbolChooserDialog () noexcept
 
tl::optional< UuidgetSelectedSymbolUuid () const noexcept
 
QString getSelectedSymbolNameTr () const noexcept
 
QString getSelectedSymbolDescriptionTr () const noexcept
 
SymbolChooserDialogoperator= (const SymbolChooserDialog &rhs)=delete
 

Private Member Functions

void searchEditTextChanged (const QString &text) noexcept
 
void treeCategories_currentItemChanged (const QModelIndex &current, const QModelIndex &previous) noexcept
 
void listSymbols_currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous) noexcept
 
void listSymbols_itemDoubleClicked (QListWidgetItem *item) noexcept
 
void searchSymbols (const QString &input)
 
void setSelectedCategory (const tl::optional< Uuid > &uuid) noexcept
 
void setSelectedSymbol (const FilePath &fp) noexcept
 
void accept () noexcept override
 
const QStringList & localeOrder () const noexcept
 

Private Attributes

const workspace::WorkspacemWorkspace
 
const IF_GraphicsLayerProvidermLayerProvider
 
QScopedPointer< Ui::SymbolChooserDialog > mUi
 
QScopedPointer< QAbstractItemModel > mCategoryTreeModel
 
QScopedPointer< GraphicsScenemPreviewScene
 
tl::optional< UuidmSelectedCategoryUuid
 
QScopedPointer< SymbolmSelectedSymbol
 
QScopedPointer< SymbolGraphicsItemmGraphicsItem
 

Detailed Description

Constructor & Destructor Documentation

◆ SymbolChooserDialog() [1/3]

SymbolChooserDialog ( )
delete

◆ SymbolChooserDialog() [2/3]

SymbolChooserDialog ( const SymbolChooserDialog other)
delete

◆ SymbolChooserDialog() [3/3]

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

◆ ~SymbolChooserDialog()

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

Member Function Documentation

◆ getSelectedSymbolUuid()

tl::optional< Uuid > getSelectedSymbolUuid ( ) const
noexcept
+ Here is the caller graph for this function:

◆ getSelectedSymbolNameTr()

QString getSelectedSymbolNameTr ( ) const
noexcept
+ Here is the call graph for this function:

◆ getSelectedSymbolDescriptionTr()

QString getSelectedSymbolDescriptionTr ( ) const
noexcept
+ Here is the call graph for this function:

◆ operator=()

SymbolChooserDialog& operator= ( const SymbolChooserDialog 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:

◆ listSymbols_currentItemChanged()

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

◆ listSymbols_itemDoubleClicked()

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

◆ searchSymbols()

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

◆ setSelectedCategory()

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

◆ setSelectedSymbol()

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

◆ accept()

void accept ( )
overrideprivatenoexcept
+ Here is the caller graph for this function:

◆ 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::Workspace& mWorkspace
private

◆ mLayerProvider

const IF_GraphicsLayerProvider& mLayerProvider
private

◆ mUi

QScopedPointer<Ui::SymbolChooserDialog> mUi
private

◆ mCategoryTreeModel

QScopedPointer<QAbstractItemModel> mCategoryTreeModel
private

◆ mPreviewScene

QScopedPointer<GraphicsScene> mPreviewScene
private

◆ mSelectedCategoryUuid

tl::optional<Uuid> mSelectedCategoryUuid
private

◆ mSelectedSymbol

QScopedPointer<Symbol> mSelectedSymbol
private

◆ mGraphicsItem

QScopedPointer<SymbolGraphicsItem> mGraphicsItem
private

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