LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 () noexceptoverride
 
bool isComplete () const noexceptoverride
 
int nextId () const noexceptoverride
 
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 tl::optional< Uuid > &uuid) noexcept
 
void setSelectedElement (const FilePath &fp) noexcept
 
void setCategoryTreeModel (QAbstractItemModel *model) noexcept
 
FilePath getCategoryFilePath (const tl::optional< Uuid > &category) const
 
QSet< UuidgetElementsByCategory (const tl::optional< Uuid > &category) const
 
void getElementMetadata (const Uuid &uuid, FilePath &fp, QString &name) const
 
void initializePage () noexceptoverride
 
void cleanupPage () noexceptoverride
 

Private Attributes

NewElementWizardContextmContext
 
QScopedPointer
< Ui::NewElementWizardPage_CopyFrom > 
mUi
 
QScopedPointer
< QAbstractItemModel > 
mCategoryTreeModel
 
bool mIsCategoryElement
 
tl::optional< UuidmSelectedCategoryUuid
 
QScopedPointer
< LibraryBaseElement
mSelectedElement
 

Detailed Description

The NewElementWizardPage_CopyFrom class.

Author
ubruhin
Date
2017-03-23
Todo:

All names/descriptions/keywords other than en_US are not yet copied.

All categories other than the first one are not yet copied.

Constructor & Destructor Documentation

NewElementWizardPage_CopyFrom ( NewElementWizardContext context,
QWidget *  parent = 0 
)
explicitnoexcept

+ Here is the call graph for this function:

Member Function Documentation

bool validatePage ( )
overridenoexcept

+ Here is the call graph for this function:

bool isComplete ( ) const
overridenoexcept
int nextId ( ) const
overridenoexcept
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:

void treeView_doubleClicked ( const QModelIndex &  item)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void listWidget_currentItemChanged ( QListWidgetItem *  current,
QListWidgetItem *  previous 
)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void listWidget_itemDoubleClicked ( QListWidgetItem *  item)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void setSelectedCategory ( const tl::optional< Uuid > &  uuid)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void setSelectedElement ( const FilePath fp)
privatenoexcept

+ Here is the caller graph for this function:

void setCategoryTreeModel ( QAbstractItemModel *  model)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

FilePath getCategoryFilePath ( const tl::optional< Uuid > &  category) const
private

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QSet< Uuid > getElementsByCategory ( const tl::optional< Uuid > &  category) const
private

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void getElementMetadata ( const Uuid uuid,
FilePath fp,
QString &  name 
) const
private

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void initializePage ( )
overrideprivatenoexcept

+ Here is the call graph for this function:

void cleanupPage ( )
overrideprivatenoexcept

Member Data Documentation

NewElementWizardContext& mContext
private
QScopedPointer<Ui::NewElementWizardPage_CopyFrom> mUi
private
QScopedPointer<QAbstractItemModel> mCategoryTreeModel
private
bool mIsCategoryElement
private
tl::optional<Uuid> mSelectedCategoryUuid
private
QScopedPointer<LibraryBaseElement> mSelectedElement
private

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