BibleTime
src
frontend
displaywindow
ccommentaryreadwindow.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-2021 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 "
cdisplaywindow.h
"
16
17
18
class
BtActionCollection
;
19
class
CSwordVerseKey
;
20
class
QAction
;
21
22
/**
23
*@author The BibleTime team
24
*/
25
class
CCommentaryReadWindow
:
public
CDisplayWindow
{
26
Q_OBJECT
27
public
:
28
/**
29
* Reimplementation.
30
*/
31
static
void
insertKeyboardActions
(
BtActionCollection
*
const
a );
32
33
CCommentaryReadWindow
(
QList<CSwordModuleInfo *>
const
&
modules
,
34
CMDIArea
* parent)
35
:
CDisplayWindow
(
modules
, true, parent)
36
{
init
(); }
37
38
CSwordModuleInfo::ModuleType
moduleType
()
const override
39
{
return
CSwordModuleInfo::Commentary
; }
40
41
void
storeProfileSettings
(
BtConfigCore
& windowConf)
const override
;
42
void
applyProfileSettings
(
BtConfigCore
const
& windowConf)
override
;
43
bool
syncAllowed
()
const override
;
44
45
public
Q_SLOTS:
46
void
nextBook
();
47
void
previousBook
();
48
void
nextChapter
();
49
void
previousChapter
();
50
void
nextVerse
();
51
void
previousVerse
();
52
void
reload
()
override
;
53
54
protected
:
55
void
initActions
()
override
;
56
void
initToolbars
()
override
;
57
void
setupMainWindowToolBars
()
override
;
58
59
private
:
60
QAction
*
m_syncButton
;
61
CSwordVerseKey
*
verseKey
();
62
};
cdisplaywindow.h
BtActionCollection
Definition:
btactioncollection.h:24
BtConfigCore
Definition:
btconfigcore.h:29
CCommentaryReadWindow
Definition:
ccommentaryreadwindow.h:25
CCommentaryReadWindow::moduleType
CSwordModuleInfo::ModuleType moduleType() const override
Definition:
ccommentaryreadwindow.h:38
CCommentaryReadWindow::verseKey
CSwordVerseKey * verseKey()
Definition:
ccommentaryreadwindow.cpp:132
CCommentaryReadWindow::initToolbars
void initToolbars() override
Definition:
ccommentaryreadwindow.cpp:109
CCommentaryReadWindow::nextBook
void nextBook()
Definition:
ccommentaryreadwindow.cpp:139
CCommentaryReadWindow::nextChapter
void nextChapter()
Definition:
ccommentaryreadwindow.cpp:151
CCommentaryReadWindow::previousVerse
void previousVerse()
Definition:
ccommentaryreadwindow.cpp:169
CCommentaryReadWindow::m_syncButton
QAction * m_syncButton
Definition:
ccommentaryreadwindow.h:60
CCommentaryReadWindow::setupMainWindowToolBars
void setupMainWindowToolBars() override
Definition:
ccommentaryreadwindow.cpp:114
CCommentaryReadWindow::syncAllowed
bool syncAllowed() const override
Definition:
ccommentaryreadwindow.cpp:174
CCommentaryReadWindow::nextVerse
void nextVerse()
Definition:
ccommentaryreadwindow.cpp:163
CCommentaryReadWindow::CCommentaryReadWindow
CCommentaryReadWindow(QList< CSwordModuleInfo * > const &modules, CMDIArea *parent)
Definition:
ccommentaryreadwindow.h:33
CCommentaryReadWindow::previousBook
void previousBook()
Definition:
ccommentaryreadwindow.cpp:145
CCommentaryReadWindow::insertKeyboardActions
static void insertKeyboardActions(BtActionCollection *const a)
Definition:
ccommentaryreadwindow.cpp:28
CCommentaryReadWindow::previousChapter
void previousChapter()
Definition:
ccommentaryreadwindow.cpp:157
CCommentaryReadWindow::storeProfileSettings
void storeProfileSettings(BtConfigCore &windowConf) const override
Stores the settings of this window to configuration.
Definition:
ccommentaryreadwindow.cpp:101
CCommentaryReadWindow::reload
void reload() override
Definition:
ccommentaryreadwindow.cpp:120
CCommentaryReadWindow::applyProfileSettings
void applyProfileSettings(BtConfigCore const &windowConf) override
Loads the settings of this window from configuration.
Definition:
ccommentaryreadwindow.cpp:94
CCommentaryReadWindow::initActions
void initActions() override
Definition:
ccommentaryreadwindow.cpp:63
CDisplayWindow
The base class for all display windows of BibleTime.
Definition:
cdisplaywindow.h:44
CDisplayWindow::init
bool init()
Definition:
cdisplaywindow.cpp:749
CDisplayWindow::modules
BtModuleList const & modules() const noexcept
Definition:
cdisplaywindow.h:63
CMDIArea
Definition:
cmdiarea.h:31
CSwordModuleInfo::ModuleType
ModuleType
Definition:
cswordmoduleinfo.h:87
CSwordModuleInfo::Commentary
@ Commentary
Definition:
cswordmoduleinfo.h:90
CSwordVerseKey
CSwordKey implementation for Sword's VerseKey.
Definition:
cswordversekey.h:62
QAction
QList
Generated by
1.9.1