LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CategoryListEditorWidgetBase Class Referenceabstract

The CategoryListEditorWidgetBase class. More...

#include <categorylisteditorwidget.h>

+ Inheritance diagram for CategoryListEditorWidgetBase:
+ Collaboration diagram for CategoryListEditorWidgetBase:

Signals

void edited ()
 
void categoryAdded (const Uuid &category)
 
void categoryRemoved (const Uuid &category)
 

Public Member Functions

 CategoryListEditorWidgetBase ()=delete
 
 CategoryListEditorWidgetBase (const workspace::Workspace &ws, QWidget *parent=nullptr) noexcept
 
 CategoryListEditorWidgetBase (const CategoryListEditorWidgetBase &other)=delete
 
virtual ~CategoryListEditorWidgetBase () noexcept
 
const QSet< Uuid > & getUuids () const noexcept
 
void setRequiresMinimumOneEntry (bool v) noexcept
 
void setUuids (const QSet< Uuid > &uuids) noexcept
 
void openAddCategoryDialog () noexcept
 
CategoryListEditorWidgetBaseoperator= (const CategoryListEditorWidgetBase &rhs)=delete
 

Protected Member Functions

virtual tl::optional< UuidchooseCategoryWithDialog () noexcept=0
 
virtual FilePath getLatestCategory (const Uuid &category) const =0
 
virtual QList< UuidgetCategoryParents (const Uuid &category) const =0
 
virtual QString getCategoryName (const FilePath &fp) const =0
 

Protected Attributes

const workspace::WorkspacemWorkspace
 
QScopedPointer
< Ui::CategoryListEditorWidget > 
mUi
 
bool mRequiresMinimumOneEntry
 
QSet< UuidmUuids
 

Private Member Functions

void btnAddClicked () noexcept
 
void btnRemoveClicked () noexcept
 
void addItem (const tl::optional< Uuid > &category) noexcept
 
void addItem (const tl::optional< Uuid > &category, const QStringList &lines) noexcept
 
void addItem (const tl::optional< Uuid > &category, const QString &text) noexcept
 
void updateColor () noexcept
 

Detailed Description

The CategoryListEditorWidgetBase class.

Author
ubruhin
Date
2016-10-29

Constructor & Destructor Documentation

CategoryListEditorWidgetBase ( const workspace::Workspace ws,
QWidget *  parent = nullptr 
)
explicitnoexcept

+ Here is the call graph for this function:

~CategoryListEditorWidgetBase ( )
virtualnoexcept

Member Function Documentation

const QSet<Uuid>& getUuids ( ) const
inlinenoexcept
void setRequiresMinimumOneEntry ( bool  v)
noexcept
void setUuids ( const QSet< Uuid > &  uuids)
noexcept
void openAddCategoryDialog ( )
inlinenoexcept

+ Here is the call graph for this function:

CategoryListEditorWidgetBase& operator= ( const CategoryListEditorWidgetBase rhs)
delete
virtual tl::optional<Uuid> chooseCategoryWithDialog ( )
protectedpure virtualnoexcept

Implemented in CategoryListEditorWidget< ElementType >.

+ Here is the caller graph for this function:

virtual FilePath getLatestCategory ( const Uuid category) const
protectedpure virtual
virtual QList<Uuid> getCategoryParents ( const Uuid category) const
protectedpure virtual
virtual QString getCategoryName ( const FilePath fp) const
protectedpure virtual
void btnAddClicked ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void btnRemoveClicked ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void addItem ( const tl::optional< Uuid > &  category)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void addItem ( const tl::optional< Uuid > &  category,
const QStringList &  lines 
)
privatenoexcept
void addItem ( const tl::optional< Uuid > &  category,
const QString &  text 
)
privatenoexcept
void updateColor ( )
privatenoexcept

+ Here is the caller graph for this function:

void edited ( )
signal

+ Here is the caller graph for this function:

void categoryAdded ( const Uuid category)
signal

+ Here is the caller graph for this function:

void categoryRemoved ( const Uuid category)
signal

+ Here is the caller graph for this function:

Member Data Documentation

const workspace::Workspace& mWorkspace
protected
QScopedPointer<Ui::CategoryListEditorWidget> mUi
protected
bool mRequiresMinimumOneEntry
protected
QSet<Uuid> mUuids
protected

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