20#ifndef LIBREPCB_EDITOR_COMPONENTCHOOSERDIALOG_H
21#define LIBREPCB_EDITOR_COMPONENTCHOOSERDIALOG_H
46class IF_GraphicsLayerProvider;
47class SymbolGraphicsItem;
50class ComponentChooserDialog;
69 QWidget* parent =
nullptr) noexcept;
83 const QModelIndex& previous)
noexcept;
85 QListWidgetItem* previous)
noexcept;
91 void accept() noexcept override;
The Component class represents a "generic" device in the library.
Definition: component.h:73
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 ComponentChooserDialog class.
Definition: componentchooserdialog.h:60
const QStringList & localeOrder() const noexcept
Definition: componentchooserdialog.cpp:289
ComponentChooserDialog(const ComponentChooserDialog &other)=delete
void listComponents_itemDoubleClicked(QListWidgetItem *item) noexcept
Definition: componentchooserdialog.cpp:139
void listComponents_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous) noexcept
Definition: componentchooserdialog.cpp:128
QList< std::shared_ptr< SymbolGraphicsItem > > mSymbolGraphicsItems
Definition: componentchooserdialog.h:107
QScopedPointer< GraphicsScene > mGraphicsScene
Definition: componentchooserdialog.h:105
ComponentChooserDialog & operator=(const ComponentChooserDialog &rhs)=delete
tl::optional< Uuid > mSelectedComponentUuid
Definition: componentchooserdialog.h:101
ComponentChooserDialog()=delete
tl::optional< Uuid > mSelectedCategoryUuid
Definition: componentchooserdialog.h:100
QScopedPointer< QAbstractItemModel > mCategoryTreeModel
Definition: componentchooserdialog.h:98
void treeCategories_currentItemChanged(const QModelIndex ¤t, const QModelIndex &previous) noexcept
Definition: componentchooserdialog.cpp:121
void searchComponents(const QString &input)
Definition: componentchooserdialog.cpp:148
const Workspace & mWorkspace
Definition: componentchooserdialog.h:95
void setSelectedComponent(const tl::optional< Uuid > &uuid) noexcept
Definition: componentchooserdialog.cpp:209
void setSelectedCategory(const tl::optional< Uuid > &uuid) noexcept
Definition: componentchooserdialog.cpp:173
const tl::optional< Uuid > & getSelectedComponentUuid() const noexcept
Definition: componentchooserdialog.h:73
void updatePreview(const FilePath &fp) noexcept
Definition: componentchooserdialog.cpp:232
std::shared_ptr< Component > mComponent
Definition: componentchooserdialog.h:104
void searchEditTextChanged(const QString &text) noexcept
Definition: componentchooserdialog.cpp:106
QList< std::shared_ptr< Symbol > > mSymbols
Definition: componentchooserdialog.h:106
bool mCategorySelected
Definition: componentchooserdialog.h:99
const IF_GraphicsLayerProvider * mLayerProvider
Definition: componentchooserdialog.h:96
QScopedPointer< Ui::ComponentChooserDialog > mUi
Definition: componentchooserdialog.h:97
void accept() noexcept override
Definition: componentchooserdialog.cpp:280
The GraphicsScene class.
Definition: graphicsscene.h:45
The IF_GraphicsLayerProvider class defines an interface for classes which provide layers.
Definition: graphicslayer.h:111
The SymbolGraphicsItem class.
Definition: symbolgraphicsitem.h:56
Definition: occmodel.cpp:77