BibleTime
clexiconkeychooser.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 <QObject>
19#include <QString>
20#include "../../backend/drivers/btmodulelist.h"
21
22
24class CSwordKey;
25class CSwordLDKey;
27class QHBoxLayout;
28class QWidget;
29
30class CLexiconKeyChooser final : public CKeyChooser {
31
32 Q_OBJECT
33
34public: // methods:
35
37 CSwordKey * key = nullptr,
38 QWidget * parent = nullptr);
39
40public: // methods:
41
42 CSwordKey * key() final override;
43
44 void setKey(CSwordKey * key) final override;
45
46 void refreshContent() final override;
47
48 void setModules(BtConstModuleList const & modules,
49 bool refresh = true) final override;
50
51public Q_SLOTS:
52
53 void updateKey(CSwordKey* key) final override;
54
55private: // fields:
56
59 QList<CSwordLexiconModuleInfo const *> m_modules;
60
61}; /* class CLexiconKeyChooser */
QList< CSwordModuleInfo const * > BtConstModuleList
QList< CSwordLexiconModuleInfo const * > m_modules
CSwordKey * key() final override
void setModules(BtConstModuleList const &modules, bool refresh=true) final override
void setKey(CSwordKey *key) final override
void refreshContent() final override
CKeyChooserWidget * m_widget
void updateKey(CSwordKey *key) final override