BibleTime
src
backend
rendering
cdisplayrendering.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 <utility>
18
19
20
namespace
Rendering
{
21
22
/** HTML rendering for the text display widgets.
23
* @short Rendering for the html display widget.
24
* @author The BibleTime team
25
*/
26
27
class
CDisplayRendering
:
public
CTextRendering
{
28
29
public
:
// methods:
30
31
static
QString
keyToHTMLAnchor
(QString
const
& key);
32
33
CDisplayRendering
();
34
CDisplayRendering
(
DisplayOptions
const
&
displayOptions
,
35
FilterOptions
const
&
filterOptions
);
36
37
QString
const
&
displayTemplateName
() const noexcept
38
{
return
m_displayTemplateName
; }
39
40
void
setDisplayTemplateName
(QString
displayTemplateName
) noexcept
41
{
m_displayTemplateName
= std::move(
displayTemplateName
); }
42
43
QString
renderDisplayEntry
(
44
BtConstModuleList
const
& modules,
45
QString
const
& key,
46
CTextRendering::KeyTreeItem::Settings::KeyRenderingFace
47
keyRendering =
48
CTextRendering::KeyTreeItem::Settings::CompleteShort
)
49
const
;
50
51
protected
:
// methods:
52
53
QString
entryLink
(KeyTreeItem
const
& item,
54
CSwordModuleInfo
const
& module)
const override
;
55
56
QString
finishText
(QString
const
& text,
KeyTree
const
& tree)
57
const override
;
58
59
private
:
// Fields:
60
61
QString
m_displayTemplateName
;
62
63
};
/* class CDisplayRendering */
64
65
}
/* namespace Rendering */
BtConstModuleList
QList< CSwordModuleInfo const * > BtConstModuleList
Definition:
btmodulelist.h:21
CSwordModuleInfo
Definition:
cswordmoduleinfo.h:49
Rendering::CDisplayRendering
Rendering for the html display widget.
Definition:
cdisplayrendering.h:27
Rendering::CDisplayRendering::m_displayTemplateName
QString m_displayTemplateName
Definition:
cdisplayrendering.h:61
Rendering::CDisplayRendering::entryLink
QString entryLink(KeyTreeItem const &item, CSwordModuleInfo const &module) const override
Definition:
cdisplayrendering.cpp:103
Rendering::CDisplayRendering::keyToHTMLAnchor
static QString keyToHTMLAnchor(QString const &key)
Definition:
cdisplayrendering.cpp:210
Rendering::CDisplayRendering::displayTemplateName
QString const & displayTemplateName() const noexcept
Definition:
cdisplayrendering.h:37
Rendering::CDisplayRendering::finishText
QString finishText(QString const &text, KeyTree const &tree) const override
Definition:
cdisplayrendering.cpp:218
Rendering::CDisplayRendering::renderDisplayEntry
QString renderDisplayEntry(BtConstModuleList const &modules, QString const &key, CTextRendering::KeyTreeItem::Settings::KeyRenderingFace keyRendering=CTextRendering::KeyTreeItem::Settings::CompleteShort) const
Definition:
cdisplayrendering.cpp:55
Rendering::CDisplayRendering::setDisplayTemplateName
void setDisplayTemplateName(QString displayTemplateName) noexcept
Definition:
cdisplayrendering.h:40
Rendering::CDisplayRendering::CDisplayRendering
CDisplayRendering()
Definition:
cdisplayrendering.cpp:45
Rendering::CTextRendering
Text rendering based on trees.
Definition:
ctextrendering.h:34
Rendering::CTextRendering::KeyTree
std::list< KeyTreeItem > KeyTree
Definition:
ctextrendering.h:40
Rendering::CTextRendering::displayOptions
DisplayOptions const & displayOptions() const noexcept
Definition:
ctextrendering.h:134
Rendering::CTextRendering::filterOptions
FilterOptions const & filterOptions() const noexcept
Definition:
ctextrendering.h:126
ctextrendering.h
Rendering
Definition:
btinforendering.cpp:370
DisplayOptions
Definition:
btglobal.h:46
FilterOptions
Definition:
btglobal.h:25
Rendering::CTextRendering::KeyTreeItem::Settings::KeyRenderingFace
KeyRenderingFace
Definition:
ctextrendering.h:48
Rendering::CTextRendering::KeyTreeItem::Settings::CompleteShort
@ CompleteShort
means key like "Gen 1:1"
Definition:
ctextrendering.h:51
Generated by
1.9.1