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
frontend
btmoduleindexdialog.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 <QProgressDialog>
16
17
18
class
CSwordModuleInfo
;
19
20
/**
21
This dialog is used to index a list of modules and to show progress for that.
22
While the indexing is in progress it creates a blocking, top level dialog
23
which shows the progress while the indexing is done.
24
*/
25
class
BtModuleIndexDialog
:
public
QProgressDialog
{
26
27
Q_OBJECT
28
29
public
:
// methods:
30
31
/**
32
Creates and shows the indexing progress dialog and starts the actual
33
indexing. It shows the dialog with progress information. In case indexing
34
some module is unsuccessful or cancelled, any indices that were created
35
for other given modules are deleted. After indexing, the dialog is closed.
36
\param[in] modules The list of modules to index.
37
\pre all given modules are unindexed
38
\returns whether the indexing was finished successfully.
39
*/
40
static
bool
indexAllModules
(QList<CSwordModuleInfo *>
const
& modules);
41
42
private
:
// methods:
43
44
BtModuleIndexDialog
(
int
numModules);
45
46
/**
47
Shows the indexing progress dialog and starts the actual indexing. It
48
shows the dialog with progress information. In case indexing some module
49
is unsuccessful or cancelled, any indices that were created for other
50
given modules are deleted. After indexing, the dialog is closed.
51
\param[in] modules The list of modules to index.
52
\pre all given modules are unindexed
53
\returns whether the indexing was finished successfully.
54
*/
55
bool
indexAllModulesPrivate
(QList<CSwordModuleInfo *>
const
& modules);
56
57
private
:
// fields:
58
59
int
m_currentModuleIndex
;
60
61
};
25
class
BtModuleIndexDialog
:
public
QProgressDialog
{
…
};
BtModuleIndexDialog
Definition
btmoduleindexdialog.h:25
BtModuleIndexDialog::indexAllModulesPrivate
bool indexAllModulesPrivate(QList< CSwordModuleInfo * > const &modules)
Definition
btmoduleindexdialog.cpp:44
BtModuleIndexDialog::m_currentModuleIndex
int m_currentModuleIndex
Definition
btmoduleindexdialog.h:59
BtModuleIndexDialog::indexAllModules
static bool indexAllModules(QList< CSwordModuleInfo * > const &modules)
Definition
btmoduleindexdialog.cpp:25
CSwordModuleInfo
Definition
cswordmoduleinfo.h:49
QProgressDialog
Generated by
1.9.8