BibleTime
|
A key chooser for bibles and commentaries. More...
#include <cbiblekeychooser.h>
Public Slots | |
void | updateKey (CSwordKey *key) final override |
![]() | |
void | handleHistoryMoved (QString const &newKey) |
virtual void | updateKey (CSwordKey *key)=0 |
Public Member Functions | |
CBibleKeyChooser (BtConstModuleList const &modules, CSwordKey *key=nullptr, QWidget *parent=nullptr) | |
CSwordKey * | key () final override |
void | refreshContent () final override |
void | setKey (CSwordKey *key) final override |
void | setModules (BtConstModuleList const &modules, bool refresh=true) final override |
Private Attributes | |
CSwordVerseKey * | m_key |
QList< CSwordBibleModuleInfo const * > | m_modules |
BtBibleKeyWidget * | m_widget = nullptr |
Additional Inherited Members | |
![]() | |
void | keyChanged (CSwordKey *newKey) |
![]() | |
static CKeyChooser * | createInstance (const BtConstModuleList &modules, CSwordKey *key, QWidget *parent) |
![]() | |
CKeyChooser (QWidget *parent=nullptr) | |
A key chooser for bibles and commentaries.
Definition at line 27 of file cbiblekeychooser.h.
CBibleKeyChooser::CBibleKeyChooser | ( | BtConstModuleList const & | modules, |
CSwordKey * | key = nullptr , |
||
QWidget * | parent = nullptr |
||
) |
Definition at line 25 of file cbiblekeychooser.cpp.
References BT_ASSERT, BT_CONNECT, BtBibleKeyWidget::changed(), key(), CKeyChooser::keyChanged(), m_key, m_modules, m_widget, setKey(), and setModules().
|
finaloverridevirtual |
Implements CKeyChooser.
Definition at line 60 of file cbiblekeychooser.cpp.
References m_key.
Referenced by CBibleKeyChooser(), and setKey().
|
finaloverridevirtual |
Refreshes the content of the different key chooser parts.
Implements CKeyChooser.
Definition at line 92 of file cbiblekeychooser.cpp.
References m_key, and setKey().
Referenced by setModules().
|
finaloverridevirtual |
Sets the CKey
key | the key which the widget should be set to. |
Implements CKeyChooser.
Definition at line 64 of file cbiblekeychooser.cpp.
References BT_ASSERT, key(), CKeyChooser::keyChanged(), m_key, m_widget, and BtBibleKeyWidget::setKey().
Referenced by CBibleKeyChooser(), and refreshContent().
|
finaloverridevirtual |
Sets the module of this keychooser and refreshes the comboboxes
Implements CKeyChooser.
Definition at line 73 of file cbiblekeychooser.cpp.
References CSwordModuleInfo::Bible, CSwordModuleInfo::Commentary, m_modules, m_widget, refreshContent(), and BtBibleKeyWidget::setModule().
Referenced by CBibleKeyChooser().
|
finaloverrideslot |
Definition at line 96 of file cbiblekeychooser.cpp.
References m_widget, and BtBibleKeyWidget::updateText().
|
private |
Definition at line 54 of file cbiblekeychooser.h.
Referenced by CBibleKeyChooser(), key(), refreshContent(), and setKey().
|
private |
Definition at line 53 of file cbiblekeychooser.h.
Referenced by CBibleKeyChooser(), and setModules().
|
private |
Definition at line 52 of file cbiblekeychooser.h.
Referenced by CBibleKeyChooser(), setKey(), setModules(), and updateKey().