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-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 <QObject>
19 #include <QString>
20 #include "../../backend/drivers/btmodulelist.h"
21 
22 
23 class CKeyChooserWidget;
24 class CSwordKey;
25 class CSwordLDKey;
27 class QHBoxLayout;
28 class QWidget;
29 
30 class CLexiconKeyChooser final : public CKeyChooser {
31 
32  Q_OBJECT
33 
34 public: // methods:
35 
36  CLexiconKeyChooser(BtConstModuleList const & modules,
37  CSwordKey * key = nullptr,
38  QWidget * parent = nullptr);
39 
40 public: // 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 
51 public Q_SLOTS:
52 
53  void updateKey(CSwordKey* key) final override;
54 
55 private: // fields:
56 
60 
61 }; /* class CLexiconKeyChooser */
QList< CSwordModuleInfo const * > BtConstModuleList
Definition: btmodulelist.h:21
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
CLexiconKeyChooser(BtConstModuleList const &modules, CSwordKey *key=nullptr, QWidget *parent=nullptr)
void updateKey(CSwordKey *key) final override