LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 treeCategories_currentItemChanged (const QModelIndex &current, const QModelIndex &previous) noexcept
 
void listSymbols_currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous) noexcept
 
void listSymbols_itemDoubleClicked (QListWidgetItem *item) noexcept
 
void setSelectedCategory (const tl::optional< Uuid > &uuid) noexcept
 
void setSelectedSymbol (const FilePath &fp) noexcept
 
void accept () noexceptoverride
 
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
< SymbolGraphicsItem
mGraphicsItem
 

Detailed Description

The SymbolChooserDialog class.

Author
ubruhin
Date
2017-03-19

Constructor & Destructor Documentation

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

+ Here is the call graph for this function:

~SymbolChooserDialog ( )
noexcept

+ Here is the call graph for this function:

Member Function Documentation

tl::optional< Uuid > getSelectedSymbolUuid ( ) const
noexcept

+ Here is the caller graph for this function:

QString getSelectedSymbolNameTr ( ) const
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QString getSelectedSymbolDescriptionTr ( ) const
noexcept

+ Here is the call graph for this function:

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

+ Here is the caller graph for this function:

void listSymbols_itemDoubleClicked ( QListWidgetItem *  item)
privatenoexcept

+ 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 setSelectedSymbol ( const FilePath fp)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

const workspace::Workspace& mWorkspace
private
const IF_GraphicsLayerProvider& mLayerProvider
private
QScopedPointer<Ui::SymbolChooserDialog> mUi
private
QScopedPointer<QAbstractItemModel> mCategoryTreeModel
private
QScopedPointer<GraphicsScene> mPreviewScene
private
tl::optional<Uuid> mSelectedCategoryUuid
private
QScopedPointer<Symbol> mSelectedSymbol
private
QScopedPointer<SymbolGraphicsItem> mGraphicsItem
private

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