LibrePCB Developers Documentation
Loading...
Searching...
No Matches
NewElementWizardPage_CopyFrom Class Referencefinal

The NewElementWizardPage_CopyFrom class. More...

#include <newelementwizardpage_copyfrom.h>

Inherits QWizardPage.

+ Collaboration diagram for NewElementWizardPage_CopyFrom:

Public Member Functions

 NewElementWizardPage_CopyFrom ()=delete
 
 NewElementWizardPage_CopyFrom (const NewElementWizardPage_CopyFrom &other)=delete
 
 NewElementWizardPage_CopyFrom (NewElementWizardContext &context, QWidget *parent=0) noexcept
 
 ~NewElementWizardPage_CopyFrom () noexcept
 
bool validatePage () noexcept override
 
bool isComplete () const noexcept override
 
int nextId () const noexcept override
 
NewElementWizardPage_CopyFromoperator= (const NewElementWizardPage_CopyFrom &rhs)=delete
 

Private Member Functions

void treeView_currentItemChanged (const QModelIndex &current, const QModelIndex &previous) noexcept
 
void treeView_doubleClicked (const QModelIndex &item) noexcept
 
void listWidget_currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous) noexcept
 
void listWidget_itemDoubleClicked (QListWidgetItem *item) noexcept
 
void setSelectedCategory (const std::optional< Uuid > &uuid) noexcept
 
void setSelectedElement (const FilePath &fp) noexcept
 
void setCategoryTreeModel (QAbstractItemModel *model) noexcept
 
FilePath getCategoryFilePath (const std::optional< Uuid > &category) const
 
QSet< UuidgetElementsByCategory (const std::optional< Uuid > &category) const
 
void getElementMetadata (const Uuid &uuid, FilePath &fp, QString &name) const
 
void initializePage () noexcept override
 
void cleanupPage () noexcept override
 

Private Attributes

NewElementWizardContextmContext
 
QScopedPointer< Ui::NewElementWizardPage_CopyFrom > mUi
 
QScopedPointer< QAbstractItemModel > mCategoryTreeModel
 
bool mIsCategoryElement
 
std::optional< UuidmSelectedCategoryUuid
 
bool mIsComplete
 

Detailed Description

Constructor & Destructor Documentation

◆ NewElementWizardPage_CopyFrom() [1/3]

◆ NewElementWizardPage_CopyFrom() [2/3]

◆ NewElementWizardPage_CopyFrom() [3/3]

NewElementWizardPage_CopyFrom ( NewElementWizardContext context,
QWidget *  parent = 0 
)
explicitnoexcept
+ Here is the call graph for this function:

◆ ~NewElementWizardPage_CopyFrom()

Member Function Documentation

◆ validatePage()

bool validatePage ( )
overridenoexcept

◆ isComplete()

bool isComplete ( ) const
overridenoexcept

◆ nextId()

int nextId ( ) const
overridenoexcept

◆ operator=()

NewElementWizardPage_CopyFrom & operator= ( const NewElementWizardPage_CopyFrom rhs)
delete

◆ treeView_currentItemChanged()

void treeView_currentItemChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ treeView_doubleClicked()

void treeView_doubleClicked ( const QModelIndex &  item)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ listWidget_currentItemChanged()

void listWidget_currentItemChanged ( QListWidgetItem *  current,
QListWidgetItem *  previous 
)
privatenoexcept
+ Here is the caller graph for this function:

◆ listWidget_itemDoubleClicked()

void listWidget_itemDoubleClicked ( QListWidgetItem *  item)
privatenoexcept
+ Here is the caller graph for this function:

◆ setSelectedCategory()

void setSelectedCategory ( const std::optional< Uuid > &  uuid)
privatenoexcept
+ Here is the call graph for this function:

◆ setSelectedElement()

void setSelectedElement ( const FilePath fp)
privatenoexcept
+ Here is the caller graph for this function:

◆ setCategoryTreeModel()

void setCategoryTreeModel ( QAbstractItemModel *  model)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCategoryFilePath()

FilePath getCategoryFilePath ( const std::optional< Uuid > &  category) const
private
+ Here is the call graph for this function:

◆ getElementsByCategory()

QSet< Uuid > getElementsByCategory ( const std::optional< Uuid > &  category) const
private
+ Here is the call graph for this function:

◆ getElementMetadata()

void getElementMetadata ( const Uuid uuid,
FilePath fp,
QString &  name 
) const
private
+ Here is the call graph for this function:

◆ initializePage()

void initializePage ( )
overrideprivatenoexcept
+ Here is the call graph for this function:

◆ cleanupPage()

void cleanupPage ( )
overrideprivatenoexcept

Member Data Documentation

◆ mContext

NewElementWizardContext& mContext
private

◆ mUi

QScopedPointer<Ui::NewElementWizardPage_CopyFrom> mUi
private

◆ mCategoryTreeModel

QScopedPointer<QAbstractItemModel> mCategoryTreeModel
private

◆ mIsCategoryElement

bool mIsCategoryElement
private

◆ mSelectedCategoryUuid

std::optional<Uuid> mSelectedCategoryUuid
private

◆ mIsComplete

bool mIsComplete
private

The documentation for this class was generated from the following files: