BibleTime
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
Functions
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
v
Variables
a
b
c
d
g
h
i
k
l
m
p
r
s
u
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
w
Properties
Related Symbols
Files
File List
File Members
All
a
b
c
e
f
h
i
j
k
l
m
o
p
r
s
t
u
w
Functions
b
c
f
i
j
l
m
o
p
r
t
Variables
Typedefs
Enumerations
Enumerator
Macros
a
b
c
i
l
m
r
s
t
u
w
src
backend
btglobal.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-2025 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 <QMetaType>
16
17
18
class
QDataStream;
19
20
21
/**
22
Filter options to control the text display of modules. Uses int and not bool
23
because not all options have just two toggle values.
24
*/
25
struct
FilterOptions
{
26
int
footnotes
;
/**< 0 for disabled, 1 for enabled */
27
int
strongNumbers
;
/**< 0 for disabled, 1 for enabled */
28
int
headings
;
/**< 0 for disabled, 1 for enabled */
29
int
morphTags
;
/**< 0 for disabled, 1 for enabled */
30
int
lemmas
;
/**< 0 for disabled, 1 for enabled */
31
int
hebrewPoints
;
/**< 0 for disabled, 1 for enabled */
32
int
hebrewCantillation
;
/**< 0 for disabled, 1 for enabled */
33
int
greekAccents
;
/**< 0 for disabled, 1 for enabled */
34
int
textualVariants
;
/**< Number n to enabled the n-th variant */
35
int
redLetterWords
;
/**< 0 for disabled, 1 for enabled */
36
int
scriptureReferences
;
/**< 0 for disabled, 1 for enabled */
37
int
morphSegmentation
;
/**< 0 for disabled, 1 for enabled */
38
FilterOptions
();
39
bool
filterOptionsAreEqual
(
FilterOptions
const
& opts)
const
noexcept
;
40
};
25
struct
FilterOptions
{
…
};
41
Q_DECLARE_METATYPE(
FilterOptions
)
42
43
/**
44
Controls the display of a text.
45
*/
46
struct
DisplayOptions
{
47
int
lineBreaks
;
48
int
verseNumbers
;
49
bool
displayOptionsAreEqual(
DisplayOptions
const
& opts)
const
noexcept
;
50
51
/**
52
Work around for Windows compiler bug in Visual Studio 2008 & 2010. The Crash
53
occurs at the return statement of the not anymore existing
54
CBTConfig::getDisplayOptionDefaults and is caused by a bad calling sequence
55
when called from CDisplayWindow::init. The bug might still occur but now
56
caused by BtConfig::getDisplayOptions.
57
\todo Properly identify this bug and remove the #ifdef when fix is available.
58
*/
59
#ifdef Q_OS_WIN
60
int
notUsed;
61
#endif
62
63
};
46
struct
DisplayOptions
{
…
};
64
Q_DECLARE_METATYPE(
DisplayOptions
)
65
66
/*!
67
* Enumeration indicating the alignment mode
68
* used for child windows.
69
*/
70
enum
alignmentMode
{
/* Values provided for serialization */
71
autoTileVertical
= 0,
72
autoTileHorizontal
= 1,
73
autoTile
= 2,
74
autoTabbed
= 3,
75
autoCascade
= 4,
76
manual
= 5
77
};
70
enum
alignmentMode
{
/* Values provided for serialization */
{
…
};
78
QDataStream &
operator<<
(QDataStream &out,
const
alignmentMode
&mode);
79
QDataStream &
operator>>
(QDataStream &in,
alignmentMode
&mode);
80
Q_DECLARE_METATYPE(
alignmentMode
)
alignmentMode
alignmentMode
Definition
btglobal.h:70
autoTabbed
@ autoTabbed
Definition
btglobal.h:74
autoTileHorizontal
@ autoTileHorizontal
Definition
btglobal.h:72
autoCascade
@ autoCascade
Definition
btglobal.h:75
autoTile
@ autoTile
Definition
btglobal.h:73
autoTileVertical
@ autoTileVertical
Definition
btglobal.h:71
manual
@ manual
Definition
btglobal.h:76
operator<<
QDataStream & operator<<(QDataStream &out, const alignmentMode &mode)
Definition
btglobal.cpp:19
operator>>
QDataStream & operator>>(QDataStream &in, alignmentMode &mode)
Definition
btglobal.cpp:24
DisplayOptions
Definition
btglobal.h:46
DisplayOptions::lineBreaks
int lineBreaks
Definition
btglobal.h:47
DisplayOptions::verseNumbers
int verseNumbers
Definition
btglobal.h:48
FilterOptions
Definition
btglobal.h:25
FilterOptions::FilterOptions
FilterOptions()
Definition
btglobal.cpp:31
FilterOptions::morphSegmentation
int morphSegmentation
Definition
btglobal.h:37
FilterOptions::hebrewCantillation
int hebrewCantillation
Definition
btglobal.h:32
FilterOptions::morphTags
int morphTags
Definition
btglobal.h:29
FilterOptions::textualVariants
int textualVariants
Definition
btglobal.h:34
FilterOptions::lemmas
int lemmas
Definition
btglobal.h:30
FilterOptions::hebrewPoints
int hebrewPoints
Definition
btglobal.h:31
FilterOptions::footnotes
int footnotes
Definition
btglobal.h:26
FilterOptions::scriptureReferences
int scriptureReferences
Definition
btglobal.h:36
FilterOptions::greekAccents
int greekAccents
Definition
btglobal.h:33
FilterOptions::headings
int headings
Definition
btglobal.h:28
FilterOptions::redLetterWords
int redLetterWords
Definition
btglobal.h:35
FilterOptions::filterOptionsAreEqual
bool filterOptionsAreEqual(FilterOptions const &opts) const noexcept
Definition
btglobal.cpp:38
FilterOptions::strongNumbers
int strongNumbers
Definition
btglobal.h:27
Generated by
1.9.8