BibleTime
Public Slots | Public Member Functions | Private Attributes | List of all members
CBibleKeyChooser Class Referencefinal

A key chooser for bibles and commentaries. More...

#include <cbiblekeychooser.h>

Inheritance diagram for CBibleKeyChooser:

Public Slots

void updateKey (CSwordKey *key) final override
 
- Public Slots inherited from CKeyChooser
void handleHistoryMoved (QString const &newKey)
 
virtual void updateKey (CSwordKey *key)=0
 

Public Member Functions

 CBibleKeyChooser (BtConstModuleList const &modules, CSwordKey *key=nullptr, QWidget *parent=nullptr)
 
CSwordKeykey () final override
 
void refreshContent () final override
 
void setKey (CSwordKey *key) final override
 
void setModules (BtConstModuleList const &modules, bool refresh=true) final override
 

Private Attributes

CSwordVerseKeym_key
 
QList< CSwordBibleModuleInfo const * > m_modules
 
BtBibleKeyWidgetm_widget = nullptr
 

Additional Inherited Members

- Signals inherited from CKeyChooser
void keyChanged (CSwordKey *newKey)
 
- Static Public Member Functions inherited from CKeyChooser
static CKeyChoosercreateInstance (const BtConstModuleList &modules, CSwordKey *key, QWidget *parent)
 
- Protected Member Functions inherited from CKeyChooser
 CKeyChooser (QWidget *parent=nullptr)
 

Detailed Description

A key chooser for bibles and commentaries.

Definition at line 27 of file cbiblekeychooser.h.

Constructor & Destructor Documentation

◆ CBibleKeyChooser()

CBibleKeyChooser::CBibleKeyChooser ( BtConstModuleList const &  modules,
CSwordKey key = nullptr,
QWidget parent = nullptr 
)

Member Function Documentation

◆ key()

CSwordKey * CBibleKeyChooser::key ( )
finaloverridevirtual
Returns
the current CKey.

Implements CKeyChooser.

Definition at line 60 of file cbiblekeychooser.cpp.

References m_key.

Referenced by CBibleKeyChooser(), and setKey().

◆ refreshContent()

void CBibleKeyChooser::refreshContent ( )
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().

◆ setKey()

void CBibleKeyChooser::setKey ( CSwordKey key)
finaloverridevirtual

Sets the CKey

Parameters
keythe 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().

◆ setModules()

void CBibleKeyChooser::setModules ( BtConstModuleList const &  modules,
bool  refresh = true 
)
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().

◆ updateKey

void CBibleKeyChooser::updateKey ( CSwordKey key)
finaloverrideslot

Definition at line 96 of file cbiblekeychooser.cpp.

References m_widget, and BtBibleKeyWidget::updateText().

Member Data Documentation

◆ m_key

CSwordVerseKey* CBibleKeyChooser::m_key
private

Definition at line 54 of file cbiblekeychooser.h.

Referenced by CBibleKeyChooser(), key(), refreshContent(), and setKey().

◆ m_modules

QList<CSwordBibleModuleInfo const *> CBibleKeyChooser::m_modules
private

Definition at line 53 of file cbiblekeychooser.h.

Referenced by CBibleKeyChooser(), and setModules().

◆ m_widget

BtBibleKeyWidget* CBibleKeyChooser::m_widget = nullptr
private

Definition at line 52 of file cbiblekeychooser.h.

Referenced by CBibleKeyChooser(), setKey(), setModules(), and updateKey().


The documentation for this class was generated from the following files: