BibleTime
cbiblekeychooser.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 "../ckeychooser.h"
16 
17 #include <QList>
18 #include "../../../backend/drivers/cswordbiblemoduleinfo.h"
19 
20 
21 class BtBibleKeyWidget;
22 class CSwordVerseKey;
24 class QWidget;
25 
26 /** \brief A key chooser for bibles and commentaries. */
27 class CBibleKeyChooser final : public CKeyChooser {
28 
29  Q_OBJECT
30 
31 public: // methods:
32 
33  CBibleKeyChooser(BtConstModuleList const & modules,
34  CSwordKey * key = nullptr,
35  QWidget * parent = nullptr);
36 
37  CSwordKey * key() final override;
38 
39  void setKey(CSwordKey * key) final override;
40 
41  void setModules(BtConstModuleList const & modules,
42  bool refresh = true) final override;
43 
44  void refreshContent() final override;
45 
46 public Q_SLOTS:
47 
48  void updateKey(CSwordKey * key) final override;
49 
50 private: // fields:
51 
55 
56 }; /* class CBibleKeyChooser */
QList< CSwordModuleInfo const * > BtConstModuleList
Definition: btmodulelist.h:21
A key chooser for bibles and commentaries.
CSwordVerseKey * m_key
BtBibleKeyWidget * m_widget
void setKey(CSwordKey *key) final override
CBibleKeyChooser(BtConstModuleList const &modules, CSwordKey *key=nullptr, QWidget *parent=nullptr)
void refreshContent() final override
QList< CSwordBibleModuleInfo const * > m_modules
void updateKey(CSwordKey *key) final override
void setModules(BtConstModuleList const &modules, bool refresh=true) final override
CSwordKey * key() final override
Implementation for Sword Bibles.
CSwordKey implementation for Sword's VerseKey.