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:127
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:56
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:263
QString getSelectedSymbolNameTr() const noexcept
Definition symbolchooserdialog.cpp:111
std::unique_ptr< Symbol > mSelectedSymbol
Definition symbolchooserdialog.h:100
void setSelectedSymbol(const FilePath &fp) noexcept
Definition symbolchooserdialog.cpp:226
void searchSymbols(const QString &input)
Definition symbolchooserdialog.cpp:165
SymbolChooserDialog()=delete
std::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:140
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 std::optional< Uuid > &uuid) noexcept
Definition symbolchooserdialog.cpp:190
void searchEditTextChanged(const QString &text) noexcept
Definition symbolchooserdialog.cpp:126
std::optional< Uuid > getSelectedSymbolUuid() const noexcept
Definition symbolchooserdialog.cpp:105
SymbolChooserDialog(const SymbolChooserDialog &other)=delete
QScopedPointer< GraphicsScene > mPreviewScene
Definition symbolchooserdialog.h:97
void listSymbols_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous) noexcept
Definition symbolchooserdialog.cpp:147
QString getSelectedSymbolDescriptionTr() const noexcept
Definition symbolchooserdialog.cpp:116
bool mCategorySelected
Definition symbolchooserdialog.h:98
void listSymbols_itemDoubleClicked(QListWidgetItem *item) noexcept
Definition symbolchooserdialog.cpp:157
void accept() noexcept override
Definition symbolchooserdialog.cpp:254
The SymbolGraphicsItem class.
Definition symbolgraphicsitem.h:56
Definition occmodel.cpp:76