17 #include "../btglobal.h"
18 #include "../drivers/btmodulelist.h"
76 const QString &stopKey,
148 const QString &hightlightKey = QString(),
149 const KeyTreeItem::Settings &settings = KeyTreeItem::Settings());
154 const KeyTreeItem::Settings &settings = KeyTreeItem::Settings());
159 virtual QString
renderEntry(KeyTreeItem
const & item,
161 virtual QString
finishText(QString
const & text,
163 virtual QString
entryLink(KeyTreeItem
const & item,
QList< CSwordModuleInfo const * > BtConstModuleList
CSwordKey implementation for Sword's VerseKey.
CSwordKey const * mappedKey() const
void setMappedKey(CSwordKey const *key) const
KeyTree & childList() const noexcept
QString const & getAlternativeContent() const
Settings const & settings() const
BtConstModuleList m_moduleList
QString m_alternativeContent
KeyTreeItem & operator=(KeyTreeItem &&)=delete
KeyTreeItem & operator=(KeyTreeItem const &&)=delete
BtConstModuleList const & modules() const
bool hasAlternativeContent() const
QString const & key() const
CSwordKey const * m_mappedKey
KeyTreeItem(KeyTreeItem const &&)=delete
KeyTreeItem(KeyTreeItem &&)=delete
Text rendering based on trees.
virtual QString renderEntry(KeyTreeItem const &item, CSwordKey *key=nullptr) const
virtual QString finishText(QString const &text, KeyTree const &tree) const
QString renderSingleKey(const QString &key, const BtConstModuleList &modules, const KeyTreeItem::Settings &settings=KeyTreeItem::Settings())
virtual QString entryLink(KeyTreeItem const &item, CSwordModuleInfo const &module) const
virtual ~CTextRendering()
QString renderKeyRange(CSwordVerseKey const &lowerBound, CSwordVerseKey const &upperBound, const BtConstModuleList &modules, const QString &hightlightKey=QString(), const KeyTreeItem::Settings &settings=KeyTreeItem::Settings())
std::list< KeyTreeItem > KeyTree
CTextRendering(bool addText)
QString renderKeyTree(KeyTree const &tree) const
DisplayOptions const & displayOptions() const noexcept
DisplayOptions m_displayOptions
void setFilterOptions(FilterOptions const &filterOptions) noexcept
static BtConstModuleList collectModules(KeyTree const &tree)
void setDisplayOptions(DisplayOptions const &displayOptions) noexcept
FilterOptions const & filterOptions() const noexcept
FilterOptions m_filterOptions
@ SimpleKey
means only versenumber or only lexicon entry name
@ CompleteLong
means "Genesis 1:1"
@ CompleteShort
means key like "Gen 1:1"
@ NoKey
means no key shown at all
@ ExpandedLong
means "KJV:Gen 1:1"
KeyRenderingFace keyRenderingFace