-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbible.cpp
More file actions
77 lines (66 loc) · 1.93 KB
/
bible.cpp
File metadata and controls
77 lines (66 loc) · 1.93 KB
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
76
77
#include "bible.h"
Verse::Verse()
{
num = 0;
text = "";
}
Chapter::Chapter()
{
num = 0;
path = "";
}
void Chapter::clear()
{
verses.clear();
num = 0;
path = "";
}
void Chapter::addVerse(Verse v)
{
verses.append(v);
}
Book::Book()
{
name = "";
filePath = "";
chapterCount = 0;
bookId = 0;
}
void Book::setBookId(QString fp)
{
static QRegularExpression re("\\D");
fp = fp.remove(re);
bookId = fp.toInt();
}
void Book::addChapter(Chapter c)
{
chapters.append(c);
}
void Book::clear()
{
chapters.clear();
name = "";
filePath = "";
chapterCount = 0;
bookId = 0;
}
Bible::Bible()
{
copyright = "@%--------------------------@%"
"Bible Copyright and Permissions Information @%@%The Holy Bible@%Copyright (c) Eternity, God@%All rights reserved.@%"
"Copyright Options@%@%"
"Option A: If you think the bible is:@%"
" 1. the work of men, translators, publishers and nothing to do with Holy Spirit OR@%"
" 2. acknowledge Holy Spirit being the original author but the original author is dead and 70+ years had passed.@%"
" - Then you must abide by what the translators, publishers, etc say about their work.@%@%"
"Option B: If you think the bible is:@%"
" 1.the work of Holy Spirit through His people OR@%"
" 2.acknowledge Holy Spirit being the original author and He is still living OR@%"
" 3.acknowledge that you have Holy Spirit within you.@%"
" - Then you must abide by what the Holy Spirit within you says as He is the original author and copyright holder of all Bibles.@%@%"
"SoftProjector assumes that you agree with Option B.";
}
void Bible::addBook(Book book)
{
books.append(book);
}