20#ifndef LIBREPCB_EDITOR_SYMBOLCHOOSERDIALOG_H
21#define LIBREPCB_EDITOR_SYMBOLCHOOSERDIALOG_H
45class IF_GraphicsLayerProvider;
46class SymbolGraphicsItem;
49class SymbolChooserDialog;
68 QWidget* parent =
nullptr) noexcept;
82 const QModelIndex& previous) noexcept;
84 QListWidgetItem* previous) noexcept;
89 void accept() noexcept override;
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:129
The Symbol class represents the part of a component which is added to schematics.
Definition: symbol.h:55
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
The Workspace class represents a workspace with all its data (library, projects, settings,...
Definition: workspace.h:54
The GraphicsScene class.
Definition: graphicsscene.h:45
The IF_GraphicsLayerProvider class defines an interface for classes which provide layers.
Definition: graphicslayer.h:111
The SymbolChooserDialog class.
Definition: symbolchooserdialog.h:59
const QStringList & localeOrder() const noexcept
Definition: symbolchooserdialog.cpp:262
QString getSelectedSymbolNameTr() const noexcept
Definition: symbolchooserdialog.cpp:110
std::unique_ptr< Symbol > mSelectedSymbol
Definition: symbolchooserdialog.h:100
void setSelectedSymbol(const FilePath &fp) noexcept
Definition: symbolchooserdialog.cpp:225
void searchSymbols(const QString &input)
Definition: symbolchooserdialog.cpp:164
SymbolChooserDialog()=delete
tl::optional< Uuid > mSelectedCategoryUuid
Definition: symbolchooserdialog.h:99
QScopedPointer< QAbstractItemModel > mCategoryTreeModel
Definition: symbolchooserdialog.h:96
void treeCategories_currentItemChanged(const QModelIndex ¤t, const QModelIndex &previous) noexcept
Definition: symbolchooserdialog.cpp:139
QScopedPointer< SymbolGraphicsItem > mGraphicsItem
Definition: symbolchooserdialog.h:101
const Workspace & mWorkspace
Definition: symbolchooserdialog.h:93
QScopedPointer< Ui::SymbolChooserDialog > mUi
Definition: symbolchooserdialog.h:95
const IF_GraphicsLayerProvider & mLayerProvider
Definition: symbolchooserdialog.h:94
void setSelectedCategory(const tl::optional< Uuid > &uuid) noexcept
Definition: symbolchooserdialog.cpp:189
void searchEditTextChanged(const QString &text) noexcept
Definition: symbolchooserdialog.cpp:125
SymbolChooserDialog(const SymbolChooserDialog &other)=delete
QScopedPointer< GraphicsScene > mPreviewScene
Definition: symbolchooserdialog.h:97
tl::optional< Uuid > getSelectedSymbolUuid() const noexcept
Definition: symbolchooserdialog.cpp:105
void listSymbols_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous) noexcept
Definition: symbolchooserdialog.cpp:146
QString getSelectedSymbolDescriptionTr() const noexcept
Definition: symbolchooserdialog.cpp:115
bool mCategorySelected
Definition: symbolchooserdialog.h:98
void listSymbols_itemDoubleClicked(QListWidgetItem *item) noexcept
Definition: symbolchooserdialog.cpp:156
void accept() noexcept override
Definition: symbolchooserdialog.cpp:253
The SymbolGraphicsItem class.
Definition: symbolgraphicsitem.h:56
Definition: occmodel.cpp:77