BibleTime
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  */
26  Q_OBJECT
27  public:
28  /**
29  * Reimplementation.
30  */
31  static void insertKeyboardActions( BtActionCollection* const a );
32 
34  CMDIArea * parent)
35  : CDisplayWindow(modules, parent)
36  { init(); }
37 
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:
62 };
CSwordModuleInfo::ModuleType moduleType() const override
void setupMainWindowToolBars() override
bool syncAllowed() const override
CCommentaryReadWindow(QList< CSwordModuleInfo * > const &modules, CMDIArea *parent)
static void insertKeyboardActions(BtActionCollection *const a)
void storeProfileSettings(BtConfigCore &windowConf) const override
Stores the settings of this window to configuration.
void applyProfileSettings(BtConfigCore const &windowConf) override
Loads the settings of this window from configuration.
The base class for all display windows of BibleTime.
BtModuleList const & modules() const noexcept
CSwordKey implementation for Sword's VerseKey.