LibrePCB Developers Documentation
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::WorkspaceLibraryDbmDb
 
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.

Constructor & Destructor Documentation

◆ CategoryTreeLabelTextBuilder() [1/3]

◆ CategoryTreeLabelTextBuilder() [2/3]

CategoryTreeLabelTextBuilder ( const CategoryTreeLabelTextBuilder< ElementType > &  other)
delete

◆ CategoryTreeLabelTextBuilder() [3/3]

CategoryTreeLabelTextBuilder ( const workspace::WorkspaceLibraryDb db,
const QStringList &  localeOrder,
QLabel &  label 
)
noexcept

◆ ~CategoryTreeLabelTextBuilder()

Member Function Documentation

◆ setHighlightLastLine()

void setHighlightLastLine ( bool  highlight)
inlinenoexcept
+ Here is the caller graph for this function:

◆ setEndlessRecursionUuid()

void setEndlessRecursionUuid ( const Uuid uuid)
inlinenoexcept
+ Here is the caller graph for this function:

◆ setOneLine()

void setOneLine ( bool  oneLine)
inlinenoexcept

◆ setText() [1/2]

void setText ( const QString &  text)
noexcept

◆ setErrorText()

void setErrorText ( const QString &  error)
noexcept

◆ updateText() [1/2]

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:

◆ operator=()

CategoryTreeLabelTextBuilder& operator= ( const CategoryTreeLabelTextBuilder< ElementType > &  rhs)
delete

◆ updateText() [2/2]

bool updateText ( const QList< Uuid > &  uuids,
const QString &  lastLine 
)
privatenoexcept
+ Here is the call graph for this function:

◆ setText() [2/2]

void setText ( const QStringList &  lines)
privatenoexcept

◆ getLatestCategory() [1/3]

FilePath getLatestCategory ( const Uuid category) const
private

◆ getCategoryParents() [1/3]

QList<Uuid> getCategoryParents ( const Uuid category) const
private

◆ getLatestCategory() [2/3]

FilePath getLatestCategory ( const Uuid category) const
private

◆ getLatestCategory() [3/3]

FilePath getLatestCategory ( const Uuid category) const
private

◆ getCategoryParents() [2/3]

QList< Uuid > getCategoryParents ( const Uuid category) const
private

◆ getCategoryParents() [3/3]

QList< Uuid > getCategoryParents ( const Uuid category) const
private

Member Data Documentation

◆ mDb

const workspace::WorkspaceLibraryDb& mDb
private

◆ mLocaleOrder

const QStringList& mLocaleOrder
private

◆ mLabel

QLabel& mLabel
private

◆ mHighlightLastLine

bool mHighlightLastLine
private

◆ mEndlessRecursionUuid

tl::optional<Uuid> mEndlessRecursionUuid
private

◆ mOneLine

bool mOneLine
private

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