QtCraft API C++ classes QML types Handbook

QcHandbookOverviewPages Namespace

Handbook pages that gather content from all over: the item tags (category "tags", by tag name) followed by the tables of fuels, tools, armour and machine recipes (category "tables", in that order; the block tables of QcHandbookBlockTables follow them). More...

Header: #include <common/handbook/builder/QcHandbookOverviewPages.h>

Functions

QList<QcHandbookEntry> build(const QcHandbookContext &context)
QList<QcHandbookEntry::Link> orderedLinks(QList<std::pair<Key, QcHandbookEntry::Link>> keyed, bool descending = false)
QcHandbookEntry tablePage(const QcHandbookContext &context, const QString &name, const QString &iconItem)

Detailed Description

Function Documentation

QList<QcHandbookEntry> QcHandbookOverviewPages::build(const QcHandbookContext &context)

Returns the pages, built with the shared parts of context.

Returns the links of keyed ordered by their key (ascending unless descending), then by text as the search compares it.

QcHandbookEntry QcHandbookOverviewPages::tablePage(const QcHandbookContext &context, const QString &name, const QString &iconItem)

Returns an empty table page "table:<name>" (name) of the base pack: title and text from the labels "table.<name>" and "table.<name>Text" of context, the icon of iconItem.