20#ifndef LIBREPCB_EDITOR_PACKAGECHOOSERDIALOG_H
21#define LIBREPCB_EDITOR_PACKAGECHOOSERDIALOG_H
44class FootprintGraphicsItem;
46class IF_GraphicsLayerProvider;
49class PackageChooserDialog;
68 QWidget* parent =
nullptr) noexcept;
82 const QModelIndex& previous)
noexcept;
84 QListWidgetItem* previous)
noexcept;
90 void accept() noexcept override;
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:129
The Package class represents a package of a component (including footprint and 3D model)
Definition: package.h:59
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 PackageChooserDialog class.
Definition: packagechooserdialog.h:59
const QStringList & localeOrder() const noexcept
Definition: packagechooserdialog.cpp:261
PackageChooserDialog(const PackageChooserDialog &other)=delete
PackageChooserDialog & operator=(const PackageChooserDialog &rhs)=delete
void setSelectedPackage(const tl::optional< Uuid > &uuid) noexcept
Definition: packagechooserdialog.cpp:206
tl::optional< Uuid > mSelectedPackageUuid
Definition: packagechooserdialog.h:100
const tl::optional< Uuid > & getSelectedPackageUuid() const noexcept
Definition: packagechooserdialog.h:72
void listPackages_itemDoubleClicked(QListWidgetItem *item) noexcept
Definition: packagechooserdialog.cpp:137
QScopedPointer< GraphicsScene > mGraphicsScene
Definition: packagechooserdialog.h:104
QScopedPointer< FootprintGraphicsItem > mGraphicsItem
Definition: packagechooserdialog.h:105
tl::optional< Uuid > mSelectedCategoryUuid
Definition: packagechooserdialog.h:99
QScopedPointer< QAbstractItemModel > mCategoryTreeModel
Definition: packagechooserdialog.h:97
void treeCategories_currentItemChanged(const QModelIndex ¤t, const QModelIndex &previous) noexcept
Definition: packagechooserdialog.cpp:119
const Workspace & mWorkspace
Definition: packagechooserdialog.h:94
void setSelectedCategory(const tl::optional< Uuid > &uuid) noexcept
Definition: packagechooserdialog.cpp:171
void updatePreview(const FilePath &fp) noexcept
Definition: packagechooserdialog.cpp:229
void searchPackages(const QString &input)
Definition: packagechooserdialog.cpp:146
void searchEditTextChanged(const QString &text) noexcept
Definition: packagechooserdialog.cpp:105
std::unique_ptr< Package > mPackage
Definition: packagechooserdialog.h:103
QScopedPointer< Ui::PackageChooserDialog > mUi
Definition: packagechooserdialog.h:96
bool mCategorySelected
Definition: packagechooserdialog.h:98
const IF_GraphicsLayerProvider * mLayerProvider
Definition: packagechooserdialog.h:95
PackageChooserDialog()=delete
void listPackages_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous) noexcept
Definition: packagechooserdialog.cpp:126
void accept() noexcept override
Definition: packagechooserdialog.cpp:252
Definition: occmodel.cpp:77