20#ifndef LIBREPCB_EDITOR_NEWELEMENTWIZARDPAGE_COPYFROM_H
21#define LIBREPCB_EDITOR_NEWELEMENTWIZARDPAGE_COPYFROM_H
36class LibraryBaseElement;
41class NewElementWizardPage_CopyFrom;
60 QWidget* parent = 0) noexcept;
66 int nextId() const noexcept override;
74 const QModelIndex& previous) noexcept;
77 QListWidgetItem* previous) noexcept;
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:129
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
The NewElementWizardContext class.
Definition: newelementwizardcontext.h:58
The NewElementWizardPage_CopyFrom class.
Definition: newelementwizardpage_copyfrom.h:51
void setCategoryTreeModel(QAbstractItemModel *model) noexcept
Definition: newelementwizardpage_copyfrom.cpp:179
QScopedPointer< Ui::NewElementWizardPage_CopyFrom > mUi
Definition: newelementwizardpage_copyfrom.h:90
int nextId() const noexcept override
Definition: newelementwizardpage_copyfrom.cpp:92
void initializePage() noexcept override
Definition: newelementwizardpage_copyfrom.cpp:262
QSet< Uuid > getElementsByCategory(const tl::optional< Uuid > &category) const
Definition: newelementwizardpage_copyfrom.cpp:209
void cleanupPage() noexcept override
Definition: newelementwizardpage_copyfrom.cpp:317
bool mIsComplete
Definition: newelementwizardpage_copyfrom.h:94
NewElementWizardContext & mContext
Definition: newelementwizardpage_copyfrom.h:89
tl::optional< Uuid > mSelectedCategoryUuid
Definition: newelementwizardpage_copyfrom.h:93
QScopedPointer< QAbstractItemModel > mCategoryTreeModel
Definition: newelementwizardpage_copyfrom.h:91
FilePath getCategoryFilePath(const tl::optional< Uuid > &category) const
Definition: newelementwizardpage_copyfrom.cpp:189
NewElementWizardPage_CopyFrom()=delete
bool isComplete() const noexcept override
Definition: newelementwizardpage_copyfrom.cpp:88
bool validatePage() noexcept override
Definition: newelementwizardpage_copyfrom.cpp:83
void setSelectedCategory(const tl::optional< Uuid > &uuid) noexcept
Definition: newelementwizardpage_copyfrom.cpp:133
void setSelectedElement(const FilePath &fp) noexcept
Definition: newelementwizardpage_copyfrom.cpp:164
bool mIsCategoryElement
Definition: newelementwizardpage_copyfrom.h:92
void treeView_currentItemChanged(const QModelIndex ¤t, const QModelIndex &previous) noexcept
Definition: newelementwizardpage_copyfrom.cpp:100
void treeView_doubleClicked(const QModelIndex &item) noexcept
Definition: newelementwizardpage_copyfrom.cpp:107
void listWidget_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous) noexcept
Definition: newelementwizardpage_copyfrom.cpp:113
void getElementMetadata(const Uuid &uuid, FilePath &fp, QString &name) const
Definition: newelementwizardpage_copyfrom.cpp:229
NewElementWizardPage_CopyFrom(const NewElementWizardPage_CopyFrom &other)=delete
void listWidget_itemDoubleClicked(QListWidgetItem *item) noexcept
Definition: newelementwizardpage_copyfrom.cpp:124
Definition: occmodel.cpp:77