BibleTime
cbiblereadwindow.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 "cdisplaywindow.h"
16
17#include <QAction>
18#include "../cexportmanager.h"
19
20
21class CSwordKey;
22class CSwordVerseKey;
23class QAction;
24class QEvent;
25class QMenu;
26class QObject;
27
29
30 Q_OBJECT
31
32public: // Types:
33
35
36 public: // Methods:
37
38 ActionCollection(QObject * parent = nullptr);
39
40 };
41
42public: // methods:
43
44 CBibleReadWindow(QList<CSwordModuleInfo *> const & modules,
45 QString const & key,
46 CMDIArea * parent);
47
50
51 void storeProfileSettings(BtConfigCore & windowConf) const override;
52 void applyProfileSettings(BtConfigCore const & windowConf) override;
53
54protected: // methods:
55
56 void initActions() override;
58
59 struct {
62
64 struct {
71 }
73
75 struct {
79 }
81
83 struct {
86 }
88
89 #ifdef BUILD_TEXT_TO_SPEECH
90 QAction * speakSelectedText;
91 #endif
92 }
94
95
96public Q_SLOTS:
97
98 void nextBook();
99 void previousBook();
100 void nextChapter();
101 void previousChapter();
102 void nextVerse();
103 void previousVerse();
104
105 void reload() override;
106
107protected Q_SLOTS:
108
109 /**
110 * Copies the current chapter into the clipboard.
111 */
112 void copyDisplayedText() override;
113 /**
114 * Saves the chapter as valid HTML page.
115 */
116 void saveChapterHTML();
117 /**
118 * Saves the chapter as valid HTML page.
119 */
120 void saveChapterPlain();
121 void lookupSwordKey(CSwordKey * newKey) override;
122 void syncWindows();
123
124private: // methods:
125
126 /**
127 * Wrapper around key() to return the right type of key.
128 */
130
131 void saveChapter(CExportManager::Format const format);
132
133};
struct CBibleReadWindow::@9::@11 save
void saveChapter(CExportManager::Format const format)
void applyProfileSettings(BtConfigCore const &windowConf) override
Loads the settings of this window from configuration.
void lookupSwordKey(CSwordKey *newKey) override
void initActions() override
struct CBibleReadWindow::@9::@10 copy
QAction * referenceTextOnly
struct CBibleReadWindow::@9::@12 print
void copyDisplayedText() override
QAction * referenceAndText
void storeProfileSettings(BtConfigCore &windowConf) const override
Stores the settings of this window to configuration.
CSwordModuleInfo::ModuleType moduleType() const override
struct CBibleReadWindow::@9 m_actions
CSwordVerseKey * verseKey()
void reload() override
QMenu * newDisplayWidgetPopupMenu() override
The base class for all display windows of BibleTime.
BtModuleList const & modules() const noexcept
friend class CBibleReadWindow
CSwordKey implementation for Sword's VerseKey.