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#include "btactioncollection.h"
20
21
22class CSwordKey;
23class CSwordVerseKey;
24class QAction;
25class QEvent;
26class QMenu;
27class QObject;
28
30
31 Q_OBJECT
32
33public: // Types:
34
36
37 public: // Methods:
38
39 ActionCollection(QObject * parent = nullptr);
40
41 };
42
43public: // methods:
44
45 CBibleReadWindow(QList<CSwordModuleInfo *> const & modules,
46 QString const & key,
47 CMDIArea * parent);
48
51
52 void storeProfileSettings(BtConfigCore & windowConf) const override;
53 void applyProfileSettings(BtConfigCore const & windowConf) override;
54
55protected: // methods:
56
57 void initActions() override;
59
60 struct {
63
65 struct {
72 }
74
76 struct {
80 }
82
84 struct {
87 }
89 }
91
92
93public Q_SLOTS:
94
95 void nextBook();
96 void previousBook();
97 void nextChapter();
98 void previousChapter();
99 void nextVerse();
100 void previousVerse();
101
102 void reload() override;
103
104protected Q_SLOTS:
105
106 /**
107 * Copies the current chapter into the clipboard.
108 */
109 void copyDisplayedText() override;
110 /**
111 * Saves the chapter as valid HTML page.
112 */
113 void saveChapterHTML();
114 /**
115 * Saves the chapter as valid HTML page.
116 */
117 void saveChapterPlain();
118 void lookupSwordKey(CSwordKey * newKey) override;
119 void syncWindows();
120
121private: // methods:
122
123 /**
124 * Wrapper around key() to return the right type of key.
125 */
127
128 void saveChapter(CExportManager::Format const format);
129
130};
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.