1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/*********
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
* Copyright 1999-2011 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
#ifndef BTGLOBAL_H
#define BTGLOBAL_H
#include <QMetaType>
class QDataStream;
/**
Filter options to control the text display of modules. Uses int and not bool
because not all options have just two toggle values.
*/
struct FilterOptions {
int footnotes; /**< 0 for disabled, 1 for enabled */
int strongNumbers; /**< 0 for disabled, 1 for enabled */
int headings; /**< 0 for disabled, 1 for enabled */
int morphTags; /**< 0 for disabled, 1 for enabled */
int lemmas; /**< 0 for disabled, 1 for enabled */
int hebrewPoints; /**< 0 for disabled, 1 for enabled */
int hebrewCantillation; /**< 0 for disabled, 1 for enabled */
int greekAccents; /**< 0 for disabled, 1 for enabled */
int textualVariants; /**< Number n to enabled the n-th variant */
int redLetterWords; /**< 0 for disabled, 1 for enabled */
int scriptureReferences; /**< 0 for disabled, 1 for enabled */
int morphSegmentation; /**< 0 for disabled, 1 for enabled */
};
Q_DECLARE_METATYPE(FilterOptions)
/**
Controls the display of a text.
*/
struct DisplayOptions {
int lineBreaks;
int verseNumbers;
/**
Work around for Windows compiler bug in Visual Studio 2008 & 2010. The Crash
occurs at the return statement of CBTConfig::getDisplayOptionDefaults and is
caused by a bad calling sequence when called from CDisplayWindow::init.
\todo Properly identify this bug and remove the #ifdef when fix is available.
*/
#ifdef Q_WS_WIN
int notUsed;
#endif
};
Q_DECLARE_METATYPE(DisplayOptions)
/*!
* Enumeration indicating the alignment mode
* used for child windows.
*/
enum alignmentMode { /* Values provided for serialization */
autoTileVertical = 0,
autoTileHorizontal = 1,
autoTile = 2,
autoTabbed = 3,
autoCascade = 4,
manual = 5
};
QDataStream &operator<<(QDataStream &out, const alignmentMode &mode);
QDataStream &operator>>(QDataStream &in, alignmentMode &mode);
Q_DECLARE_METATYPE(alignmentMode)
#endif // BTGLOBAL_H
|