16 #include <QHBoxLayout>
17 #include "../../../backend/drivers/cswordbiblemoduleinfo.h"
18 #include "../../../backend/drivers/cswordmoduleinfo.h"
19 #include "../../../backend/keys/cswordversekey.h"
20 #include "../../../util/btassert.h"
21 #include "../../../util/btconnect.h"
33 QHBoxLayout* layout =
new QHBoxLayout(
this);
34 layout->setSpacing(0);
35 layout->setContentsMargins(0, 0, 0, 0);
36 layout->setDirection( QBoxLayout::LeftToRight );
47 if (!updatesEnabled())
50 setUpdatesEnabled(
false);
54 setUpdatesEnabled(
true);
80 for (
auto const *
const mod : modules)
83 if (CSBMI
const *
const bible =
dynamic_cast<CSBMI
const *
>(mod))
QList< CSwordModuleInfo const * > BtConstModuleList
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
void keyChanged(CSwordKey *newKey)
Implementation for Sword Bibles.
CSwordKey implementation for Sword's VerseKey.