BibleTime
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
CKeyChooser Class Referenceabstract

#include <ckeychooser.h>

Inheritance diagram for CKeyChooser:

Public Slots

void handleHistoryMoved (QString const &newKey)
 
virtual void updateKey (CSwordKey *key)=0
 

Signals

void keyChanged (CSwordKey *newKey)
 

Public Member Functions

virtual CSwordKeykey ()=0
 
virtual void refreshContent ()=0
 
virtual void setKey (CSwordKey *key)=0
 
virtual void setModules (const BtConstModuleList &modules, bool refresh=true)=0
 

Static Public Member Functions

static CKeyChoosercreateInstance (const BtConstModuleList &modules, CSwordKey *key, QWidget *parent)
 

Protected Member Functions

 CKeyChooser (QWidget *parent=nullptr)
 

Detailed Description

The base class for the KeyChooser. Do not use directly, create a KeyChooser with createInstance , this will create the proper one of the classes that inherit from CKeyChooser

Definition at line 29 of file ckeychooser.h.

Constructor & Destructor Documentation

◆ CKeyChooser()

CKeyChooser::CKeyChooser ( QWidget parent = nullptr)
protected

Definition at line 24 of file ckeychooser.cpp.

Member Function Documentation

◆ createInstance()

CKeyChooser * CKeyChooser::createInstance ( const BtConstModuleList modules,
CSwordKey key,
QWidget parent 
)
static

Creates a proper Instance, either CLexiconKeyChooser or CBibleKeyChooser

Parameters
infothe CModuleInfo to be represented by the KeyChooser
keyif not NULL, the CKey the KeyChooser should be set to
parentthe parent of the widget to create

Definition at line 26 of file ckeychooser.cpp.

References CSwordModuleInfo::Bible, BT_ASSERT, CSwordModuleInfo::Commentary, CSwordModuleInfo::GenericBook, key(), and CSwordModuleInfo::Lexicon.

Referenced by BtCopyByReferencesDialog::BtCopyByReferencesDialog(), CDisplayWindow::initView(), CBookReadWindow::initView(), CDisplayWindow::setupMainWindowToolBars(), and CBookReadWindow::setupMainWindowToolBars().

◆ handleHistoryMoved

void CKeyChooser::handleHistoryMoved ( QString const &  newKey)
slot

◆ key()

virtual CSwordKey* CKeyChooser::key ( )
pure virtual

◆ keyChanged

void CKeyChooser::keyChanged ( CSwordKey newKey)
signal

◆ refreshContent()

virtual void CKeyChooser::refreshContent ( )
pure virtual

Refreshes the content of the different key chooser parts.

Implemented in CBibleKeyChooser, CLexiconKeyChooser, CBookTreeChooser, and CBookKeyChooser.

Referenced by CBibleReadWindow::reload(), and CCommentaryReadWindow::reload().

◆ setKey()

virtual void CKeyChooser::setKey ( CSwordKey key)
pure virtual

◆ setModules()

virtual void CKeyChooser::setModules ( const BtConstModuleList modules,
bool  refresh = true 
)
pure virtual

Sets the module of this keychooser and refreshes the comboboxes

Implemented in CBibleKeyChooser, CLexiconKeyChooser, CBookTreeChooser, and CBookKeyChooser.

Referenced by CDisplayWindow::modulesChanged().

◆ updateKey

virtual void CKeyChooser::updateKey ( CSwordKey key)
pure virtualslot

Updates the CKey.

Parameters
keythe key which the widget should be set to.

Referenced by CBookReadWindow::initConnections(), CDisplayWindow::setupMainWindowToolBars(), and CBookReadWindow::setupMainWindowToolBars().


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