20#ifndef LIBREPCB_EDITOR_CATEGORYTREELABELTEXTBUILDER_H
21#define LIBREPCB_EDITOR_CATEGORYTREELABELTEXTBUILDER_H
39class WorkspaceLibraryDb;
50template <
typename ElementType>
60 const QStringList& localeOrder,
61 bool nulloptIsRootCategory,
62 QLabel& label)
noexcept;
68 void setText(
const QString& text)
noexcept;
72 bool updateText(
const std::optional<Uuid>& category)
noexcept;
79 void setText(
const QStringList& lines)
noexcept;
The WorkspaceLibraryDb class.
Definition workspacelibrarydb.h:58
Helper class to extract a category tree from librepcb::WorkspaceLibraryDb.
Definition categorytreebuilder.h:50
The CategoryTreeLabelTextBuilder class.
Definition categorytreelabeltextbuilder.h:51
void setOneLine(bool oneLine) noexcept
Definition categorytreelabeltextbuilder.h:66
bool mOneLine
Definition categorytreelabeltextbuilder.h:84
CategoryTreeLabelTextBuilder & operator=(const CategoryTreeLabelTextBuilder &rhs)=delete
void setText(const QString &text) noexcept
Definition categorytreelabeltextbuilder.cpp:58
void setPleaseChooseIfEmpty(bool choose) noexcept
Definition categorytreelabeltextbuilder.h:67
void setErrorText(const QString &error) noexcept
Definition categorytreelabeltextbuilder.cpp:65
CategoryTreeLabelTextBuilder(const CategoryTreeLabelTextBuilder &other)=delete
CategoryTreeBuilder< ElementType > mBuilder
Definition categorytreelabeltextbuilder.h:82
QLabel & mLabel
Definition categorytreelabeltextbuilder.h:83
CategoryTreeLabelTextBuilder()=delete
~CategoryTreeLabelTextBuilder() noexcept
Definition categorytreelabeltextbuilder.cpp:50
bool mChooseIfEmpty
Definition categorytreelabeltextbuilder.h:85
bool updateText(const std::optional< Uuid > &category) noexcept
Definition categorytreelabeltextbuilder.cpp:76
CategoryTreeLabelTextBuilder< PackageCategory > PackageCategoryTreeLabelTextBuilder
Definition categorytreelabeltextbuilder.h:91
CategoryTreeLabelTextBuilder< ComponentCategory > ComponentCategoryTreeLabelTextBuilder
Definition categorytreelabeltextbuilder.h:89
Definition occmodel.cpp:76