BibleTime
crossrefrendering.h
Go to the documentation of this file.
1 /*********
2 *
3 * In the name of the Father, and of the Son, and of the Holy Spirit.
4 *
5 * This file is part of BibleTime's source code, https://bibletime.info/
6 *
7 * Copyright 1999-2021 by the BibleTime developers.
8 * The BibleTime source code is licensed under the GNU General Public License
9 * version 2.0.
10 *
11 **********/
12 
13 #pragma once
14 
15 #include "ctextrendering.h"
16 
17 #include "../config/btconfig.h"
18 
19 
20 namespace Rendering {
21 
23 
24 public: // methods:
25 
27  const DisplayOptions &displayOptions = btConfig().getDisplayOptions(),
28  const FilterOptions &filterOptions = btConfig().getFilterOptions()
29  );
30 
31 protected: // methods:
32 
33  QString entryLink(KeyTreeItem const & item,
34  CSwordModuleInfo const & module) const override;
35 
36  QString finishText(QString const & text, KeyTree const & tree)
37  const override;
38 
39 }; /* class CrossRefRendering */
40 
41 } /* namespace Rendering */
BtConfig & btConfig()
This is a shortchand for BtConfig::getInstance().
Definition: btconfig.h:305
Text rendering based on trees.
std::list< KeyTreeItem > KeyTree
DisplayOptions const & displayOptions() const noexcept
FilterOptions const & filterOptions() const noexcept
CrossRefRendering(const DisplayOptions &displayOptions=btConfig().getDisplayOptions(), const FilterOptions &filterOptions=btConfig().getFilterOptions())
QString entryLink(KeyTreeItem const &item, CSwordModuleInfo const &module) const override
QString finishText(QString const &text, KeyTree const &tree) const override