BibleTime
btglobal.cpp
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#include "btglobal.h"
14
15#include <QDataStream>
16#include <QtGlobal>
17
18
19QDataStream &operator<<(QDataStream &out, const alignmentMode &mode) {
20 out << static_cast<qint8>(mode);
21 return out;
22}
23
24QDataStream &operator>>(QDataStream &in, alignmentMode &mode) {
25 qint8 i;
26 in >> i;
27 mode = static_cast<alignmentMode>(i);
28 return in;
29}
30
32 : footnotes(0), strongNumbers(0), headings(0), morphTags(0),
33 lemmas(0), hebrewPoints(0), hebrewCantillation(0), greekAccents(0),
34 textualVariants(0), redLetterWords(0), scriptureReferences(0),
35 morphSegmentation(0) {
36}
37
39 const noexcept
40{
41 return opts.footnotes == footnotes &&
42 opts.strongNumbers == strongNumbers &&
43 opts.headings == headings &&
44 opts.morphTags == morphTags &&
45 opts.lemmas == lemmas &&
46 opts.hebrewPoints == hebrewPoints &&
47 opts.hebrewCantillation == hebrewCantillation &&
48 opts.greekAccents == greekAccents &&
49 opts.textualVariants == textualVariants &&
50 opts.redLetterWords == redLetterWords &&
51 opts.scriptureReferences == scriptureReferences &&
52 opts.morphSegmentation == morphSegmentation;
53}
54
56 const noexcept
57{
58 return opts.lineBreaks == lineBreaks &&
59 opts.verseNumbers == verseNumbers;
60}
QDataStream & operator<<(QDataStream &out, const alignmentMode &mode)
Definition btglobal.cpp:19
QDataStream & operator>>(QDataStream &in, alignmentMode &mode)
Definition btglobal.cpp:24
alignmentMode
Definition btglobal.h:70
bool displayOptionsAreEqual(DisplayOptions const &opts) const noexcept
Definition btglobal.cpp:55
bool filterOptionsAreEqual(FilterOptions const &opts) const noexcept
Definition btglobal.cpp:38