LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CategoryTreeLabelTextBuilder< ElementType > Class Template Referencefinal

The CategoryTreeLabelTextBuilder class. More...

#include <categorytreelabeltextbuilder.h>

+ Collaboration diagram for CategoryTreeLabelTextBuilder< ElementType >:

Public Member Functions

 CategoryTreeLabelTextBuilder ()=delete
 
 CategoryTreeLabelTextBuilder (const CategoryTreeLabelTextBuilder &other)=delete
 
 CategoryTreeLabelTextBuilder (const workspace::WorkspaceLibraryDb &db, const QStringList &localeOrder, QLabel &label) noexcept
 
 ~CategoryTreeLabelTextBuilder () noexcept
 
void setHighlightLastLine (bool highlight) noexcept
 
void setEndlessRecursionUuid (const Uuid &uuid) noexcept
 
void setOneLine (bool oneLine) noexcept
 
void setText (const QString &text) noexcept
 
void setErrorText (const QString &error) noexcept
 
bool updateText (const tl::optional< Uuid > &category, const QString &lastLine=QString()) noexcept
 
CategoryTreeLabelTextBuilderoperator= (const CategoryTreeLabelTextBuilder &rhs)=delete
 

Private Member Functions

bool updateText (const QList< Uuid > &uuids, const QString &lastLine) noexcept
 
void setText (const QStringList &lines) noexcept
 
FilePath getLatestCategory (const Uuid &category) const
 
QList< UuidgetCategoryParents (const Uuid &category) const
 
template<>
FilePath getLatestCategory (const Uuid &category) const
 
template<>
FilePath getLatestCategory (const Uuid &category) const
 
template<>
QList< UuidgetCategoryParents (const Uuid &category) const
 
template<>
QList< UuidgetCategoryParents (const Uuid &category) const
 

Private Attributes

const
workspace::WorkspaceLibraryDb
mDb
 
const QStringList & mLocaleOrder
 
QLabel & mLabel
 
bool mHighlightLastLine
 
tl::optional< UuidmEndlessRecursionUuid
 
bool mOneLine
 

Detailed Description

template<typename ElementType>
class librepcb::library::editor::CategoryTreeLabelTextBuilder< ElementType >

The CategoryTreeLabelTextBuilder class.

Author
ubruhin
Date
2016-10-28

Constructor & Destructor Documentation

CategoryTreeLabelTextBuilder ( const CategoryTreeLabelTextBuilder< ElementType > &  other)
delete
CategoryTreeLabelTextBuilder ( const workspace::WorkspaceLibraryDb db,
const QStringList &  localeOrder,
QLabel &  label 
)
noexcept

Member Function Documentation

void setHighlightLastLine ( bool  highlight)
inlinenoexcept

+ Here is the caller graph for this function:

void setEndlessRecursionUuid ( const Uuid uuid)
inlinenoexcept

+ Here is the caller graph for this function:

void setOneLine ( bool  oneLine)
inlinenoexcept
void setText ( const QString &  text)
noexcept
void setErrorText ( const QString &  error)
noexcept
bool updateText ( const tl::optional< Uuid > &  category,
const QString &  lastLine = QString() 
)
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CategoryTreeLabelTextBuilder& operator= ( const CategoryTreeLabelTextBuilder< ElementType > &  rhs)
delete
bool updateText ( const QList< Uuid > &  uuids,
const QString &  lastLine 
)
privatenoexcept

+ Here is the call graph for this function:

void setText ( const QStringList &  lines)
privatenoexcept
FilePath getLatestCategory ( const Uuid category) const
private
QList<Uuid> getCategoryParents ( const Uuid category) const
private
FilePath getLatestCategory ( const Uuid category) const
private
FilePath getLatestCategory ( const Uuid category) const
private
QList< Uuid > getCategoryParents ( const Uuid category) const
private
QList< Uuid > getCategoryParents ( const Uuid category) const
private

Member Data Documentation

const workspace::WorkspaceLibraryDb& mDb
private
const QStringList& mLocaleOrder
private
QLabel& mLabel
private
bool mHighlightLastLine
private
tl::optional<Uuid> mEndlessRecursionUuid
private
bool mOneLine
private

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