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
settingsdialogs
cswordsettings.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 "
cswordsettings.h
"
14
15
#include <QTabWidget>
16
#include <QVBoxLayout>
17
#include "../../util/cresmgr.h"
18
#include "
btstandardworkstab.h
"
19
#include "
bttextfilterstab.h
"
20
#include "
cconfigurationdialog.h
"
21
22
23
CSwordSettingsPage::CSwordSettingsPage
(
CConfigurationDialog
* parent)
24
:
BtConfigDialog
::Page(
CResMgr
::settings::
sword
::icon(), parent)
25
{
26
static
const
QString nullString;
27
28
m_tabWidget
=
new
QTabWidget(
this
);
29
m_worksTab
=
new
BtStandardWorksTab
(
this
);
30
m_tabWidget
->addTab(
m_worksTab
, nullString);
31
32
m_filtersTab
=
new
BtTextFiltersTab
(
this
);
33
m_tabWidget
->addTab(
m_filtersTab
, nullString);
34
35
36
QVBoxLayout * mainLayout =
new
QVBoxLayout(
this
);
37
mainLayout->addWidget(
m_tabWidget
);
38
39
retranslateUi
();
40
}
23
CSwordSettingsPage::CSwordSettingsPage
(
CConfigurationDialog
* parent) {
…
}
41
42
void
CSwordSettingsPage::retranslateUi
() {
43
setHeaderText
(tr(
"Desk"
));
44
45
m_tabWidget
->setTabText(
m_tabWidget
->indexOf(
m_worksTab
), tr(
"Standard works"
));
46
m_tabWidget
->setTabText(
m_tabWidget
->indexOf(
m_filtersTab
), tr(
"Text filters"
));
47
}
42
void
CSwordSettingsPage::retranslateUi
() {
…
}
48
49
void
CSwordSettingsPage::save
()
const
{
50
m_worksTab
->
save
();
51
m_filtersTab
->
save
();
52
}
49
void
CSwordSettingsPage::save
()
const
{
…
}
btstandardworkstab.h
bttextfilterstab.h
cconfigurationdialog.h
BtConfigDialog::Page::setHeaderText
void setHeaderText(QString const &headerText)
Definition
btconfigdialog.cpp:61
BtConfigDialog
Definition
btconfigdialog.h:36
BtStandardWorksTab
Definition
btstandardworkstab.h:25
BtStandardWorksTab::save
void save()
Definition
btstandardworkstab.cpp:127
BtTextFiltersTab
Definition
bttextfilterstab.h:26
BtTextFiltersTab::save
void save()
Definition
bttextfilterstab.cpp:63
CConfigurationDialog
Definition
cconfigurationdialog.h:24
CSwordSettingsPage::CSwordSettingsPage
CSwordSettingsPage(CConfigurationDialog *parent=nullptr)
Definition
cswordsettings.cpp:23
CSwordSettingsPage::retranslateUi
void retranslateUi()
Definition
cswordsettings.cpp:42
CSwordSettingsPage::m_tabWidget
QTabWidget * m_tabWidget
Definition
cswordsettings.h:42
CSwordSettingsPage::m_worksTab
BtStandardWorksTab * m_worksTab
Definition
cswordsettings.h:43
CSwordSettingsPage::save
void save() const final override
Definition
cswordsettings.cpp:49
CSwordSettingsPage::m_filtersTab
BtTextFiltersTab * m_filtersTab
Definition
cswordsettings.h:44
cswordsettings.h
CResMgr
Definition
cresmgr.cpp:18
sword
Definition
btinstallbackend.h:21
Generated by
1.9.8