BibleTime
cbookreadwindow.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 #include <QList>
18 #include <QObject>
19 #include <QString>
20 #include "../../backend/drivers/cswordmoduleinfo.h"
21 
22 
23 class BtActionCollection;
24 class BtConfigCore;
25 class CBookTreeChooser;
26 class CMDIArea;
27 class QAction;
28 
30 
31  Q_OBJECT
32 
33 public: // methods:
34 
36  CMDIArea * parent)
37  : CDisplayWindow(modules, parent)
38  , m_treeAction(nullptr)
39  , m_treeChooser(nullptr)
40  { init(); }
41 
44 
45  void storeProfileSettings(BtConfigCore & windowConf) const override;
46  void applyProfileSettings(BtConfigCore const & windowConf) override;
47  static void insertKeyboardActions(BtActionCollection * const a);
48 
49 protected: // methods:
50 
51  void initActions() override;
52  void initToolbars() override;
53  void initConnections() override;
54  void initView() override;
55  void setupMainWindowToolBars() override;
56 
57 protected Q_SLOTS:
58 
59  void modulesChanged() override;
60 
61 private Q_SLOTS:
62 
63  /**
64  * Is called when the action was executed to toggle the tree view.
65  */
66  void treeToggled();
67 
68 private: // fields:
69 
72 };
CBookReadWindow(QList< CSwordModuleInfo * > const &modules, CMDIArea *parent)
void initConnections() override
CSwordModuleInfo::ModuleType moduleType() const override
CBookTreeChooser * m_treeChooser
void applyProfileSettings(BtConfigCore const &windowConf) override
Loads the settings of this window from configuration.
void modulesChanged() override
void storeProfileSettings(BtConfigCore &windowConf) const override
Stores the settings of this window to configuration.
void initView() override
void initToolbars() override
QAction * m_treeAction
static void insertKeyboardActions(BtActionCollection *const a)
void initActions() override
void setupMainWindowToolBars() override
The base class for all display windows of BibleTime.
BtModuleList const & modules() const noexcept