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-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 "../ckeychooser.h"
16
17#include <QList>
18#include "../../../backend/drivers/cswordbiblemoduleinfo.h"
19
20
22class CSwordVerseKey;
24class QWidget;
25
26/** \brief A key chooser for bibles and commentaries. */
27class CBibleKeyChooser final : public CKeyChooser {
28
29 Q_OBJECT
30
31public: // 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
46public Q_SLOTS:
47
48 void updateKey(CSwordKey * key) final override;
49
50private: // fields:
51
53 QList<CSwordBibleModuleInfo const *> m_modules;
55
56}; /* class CBibleKeyChooser */
QList< CSwordModuleInfo const * > BtConstModuleList
A key chooser for bibles and commentaries.
CSwordVerseKey * m_key
BtBibleKeyWidget * m_widget
void setKey(CSwordKey *key) final override
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.