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 WorkspaceLibraryDb &db, const QStringList &localeOrder, bool nulloptIsRootCategory, QLabel &label) noexcept
 
 ~CategoryTreeLabelTextBuilder () noexcept
 
void setOneLine (bool oneLine) noexcept
 
void setPleaseChooseIfEmpty (bool choose) noexcept
 
void setText (const QString &text) noexcept
 
void setErrorText (const QString &error) noexcept
 
bool updateText (const tl::optional< Uuid > &category) noexcept
 
CategoryTreeLabelTextBuilderoperator= (const CategoryTreeLabelTextBuilder &rhs)=delete
 

Private Member Functions

void setText (const QStringList &lines) noexcept
 

Private Attributes

CategoryTreeBuilder< ElementType > mBuilder
 
QLabel & mLabel
 
bool mOneLine
 
bool mChooseIfEmpty
 

Detailed Description

template<typename ElementType>
class librepcb::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 WorkspaceLibraryDb db,
const QStringList &  localeOrder,
bool  nulloptIsRootCategory,
QLabel &  label 
)
noexcept

◆ ~CategoryTreeLabelTextBuilder()

Member Function Documentation

◆ setOneLine()

void setOneLine ( bool  oneLine)
inlinenoexcept
+ Here is the caller graph for this function:

◆ setPleaseChooseIfEmpty()

void setPleaseChooseIfEmpty ( bool  choose)
inlinenoexcept
+ Here is the call graph for this function:

◆ setText() [1/2]

void setText ( const QString &  text)
noexcept
+ Here is the caller graph for this function:

◆ setErrorText()

void setErrorText ( const QString &  error)
noexcept
+ Here is the caller graph for this function:

◆ updateText()

bool updateText ( const tl::optional< Uuid > &  category)
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
+ Here is the caller graph for this function:

◆ setText() [2/2]

void setText ( const QStringList &  lines)
privatenoexcept

Member Data Documentation

◆ mBuilder

CategoryTreeBuilder<ElementType> mBuilder
private

◆ mLabel

QLabel& mLabel
private

◆ mOneLine

bool mOneLine
private

◆ mChooseIfEmpty

bool mChooseIfEmpty
private

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