BibleTime
Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
CCommentaryReadWindow Class Reference

#include <ccommentaryreadwindow.h>

Inheritance diagram for CCommentaryReadWindow:

Public Slots

void nextBook ()
 
void nextChapter ()
 
void nextVerse ()
 
void previousBook ()
 
void previousChapter ()
 
void previousVerse ()
 
void reload () override
 
- Public Slots inherited from CDisplayWindow
void lookupKey (QString const &key)
 
virtual void reload ()
 
void slotAddModule (int index, CSwordModuleInfo *module)
 
void slotRemoveModule (int index)
 
void slotReplaceModule (int index, CSwordModuleInfo *newModule)
 

Public Member Functions

void applyProfileSettings (BtConfigCore const &windowConf) override
 Loads the settings of this window from configuration. More...
 
 CCommentaryReadWindow (QList< CSwordModuleInfo * > const &modules, CMDIArea *parent)
 
CSwordModuleInfo::ModuleType moduleType () const override
 
void storeProfileSettings (BtConfigCore &windowConf) const override
 Stores the settings of this window to configuration. More...
 
bool syncAllowed () const override
 
- Public Member Functions inherited from CDisplayWindow
BtActionCollectionactionCollection () const
 
BibleTimebtMainWindow ()
 
QToolBarbuttonsToolBar ()
 
BtConstModuleList constModules () const
 
virtual void copyDisplayedText ()
 
DisplayOptions const & displayOptions () const
 
BtModelViewReadDisplaydisplayWidget () const
 
FilterOptions const & filterOptions () const
 
CSwordModuleInfo const * firstModule () const noexcept
 
CSwordKeygetMouseClickedKey () const
 
bool hasSelectedText ()
 
CSwordKeykey () const
 
CKeyChooserkeyChooser () const
 
QToolBarmainToolBar ()
 
CMDIAreamdi () const
 
QStringList const & moduleNames () const noexcept
 
BtModuleList const & modules () const noexcept
 
void setBibleReference (const QString &reference)
 
void setDisplaySettingsButton (BtDisplaySettingsButton *button)
 
void setDisplayWidget (BtModelViewReadDisplay *newDisplay)
 
void updateWindowTitle ()
 
void windowActivated ()
 

Static Public Member Functions

static void insertKeyboardActions (BtActionCollection *const a)
 
- Static Public Member Functions inherited from CDisplayWindow
static void insertKeyboardActions (BtActionCollection *const a)
 

Protected Member Functions

void initActions () override
 
void initToolbars () override
 
void setupMainWindowToolBars () override
 
- Protected Member Functions inherited from CDisplayWindow
void addModuleChooserBar ()
 
 CDisplayWindow (BtModuleList const &modules, CMDIArea *const parent)
 
void clearMainWindowToolBars ()
 
BTHistoryhistory () const noexcept
 
bool init ()
 
template<typename ... Args>
QActioninitAddAction (Args &&... args)
 
virtual void initConnections ()
 
virtual void initView ()
 
virtual void lookupSwordKey (CSwordKey *)
 
virtual QMenunewDisplayWidgetPopupMenu ()
 
void setDisplayOptions (DisplayOptions const &v)
 
void setFilterOptions (FilterOptions const &v)
 
void setKeyChooser (CKeyChooser *ck)
 
 ~CDisplayWindow () override
 

Private Member Functions

CSwordVerseKeyverseKey ()
 

Private Attributes

QActionm_syncButton
 

Additional Inherited Members

- Signals inherited from CDisplayWindow
void sigDisplayOptionsChanged (const DisplayOptions &displayOptions)
 
void sigFilterOptionsChanged (const FilterOptions &filterOptions)
 
void sigKeyChanged (CSwordKey *key)
 
void sigModuleAdded (int index, QString module)
 
void sigModuleListChanged (BtModuleList newList)
 
void sigModuleRemoved (int index)
 
void sigModuleReplaced (int index, QString newModule)
 
void sigModulesChanged (const BtConstModuleList &modules)
 
- Protected Slots inherited from CDisplayWindow
void lookup ()
 
virtual void modulesChanged ()
 
void printAll ()
 
void printAnchorWithText ()
 
- Protected Attributes inherited from CDisplayWindow
struct CDisplayWindow::ActionsStruct m_actions
 

Detailed Description

Author
The BibleTime team

Definition at line 25 of file ccommentaryreadwindow.h.

Constructor & Destructor Documentation

◆ CCommentaryReadWindow()

CCommentaryReadWindow::CCommentaryReadWindow ( QList< CSwordModuleInfo * > const &  modules,
CMDIArea parent 
)
inline

Definition at line 33 of file ccommentaryreadwindow.h.

References CDisplayWindow::init().

Member Function Documentation

◆ applyProfileSettings()

void CCommentaryReadWindow::applyProfileSettings ( BtConfigCore const &  windowConf)
overridevirtual

Loads the settings of this window from configuration.

Parameters
[in]windowConfThe locked configuration group.
Note
We don't use restoreGeometry/saveGeometry for MDI subwindows, because they give slightly incorrect results with some window managers. Might be related to Qt bug QTBUG-7634.

Reimplemented from CDisplayWindow.

Definition at line 94 of file ccommentaryreadwindow.cpp.

References CDisplayWindow::applyProfileSettings(), BT_ASSERT, m_syncButton, and BtConfigCore::value().

◆ initActions()

void CCommentaryReadWindow::initActions ( )
overrideprotectedvirtual

◆ initToolbars()

void CCommentaryReadWindow::initToolbars ( )
overrideprotectedvirtual

Initialize the toolbars.

Reimplemented from CDisplayWindow.

Definition at line 109 of file ccommentaryreadwindow.cpp.

References CDisplayWindow::buttonsToolBar(), CDisplayWindow::initToolbars(), and m_syncButton.

◆ insertKeyboardActions()

void CCommentaryReadWindow::insertKeyboardActions ( BtActionCollection *const  a)
static

◆ moduleType()

CSwordModuleInfo::ModuleType CCommentaryReadWindow::moduleType ( ) const
inlineoverridevirtual

Reimplemented from CDisplayWindow.

Definition at line 38 of file ccommentaryreadwindow.h.

References CSwordModuleInfo::Commentary.

◆ nextBook

void CCommentaryReadWindow::nextBook ( )
slot

Moves to the next book.

Definition at line 139 of file ccommentaryreadwindow.cpp.

References CDisplayWindow::key(), CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CSwordVerseKey::UseBook, and verseKey().

Referenced by initActions().

◆ nextChapter

void CCommentaryReadWindow::nextChapter ( )
slot

◆ nextVerse

void CCommentaryReadWindow::nextVerse ( )
slot

◆ previousBook

void CCommentaryReadWindow::previousBook ( )
slot

◆ previousChapter

void CCommentaryReadWindow::previousChapter ( )
slot

◆ previousVerse

void CCommentaryReadWindow::previousVerse ( )
slot

◆ reload

void CCommentaryReadWindow::reload ( )
overrideslot

◆ setupMainWindowToolBars()

void CCommentaryReadWindow::setupMainWindowToolBars ( )
overrideprotectedvirtual

Called to add actions to mainWindow toolbars

Reimplemented from CDisplayWindow.

Definition at line 114 of file ccommentaryreadwindow.cpp.

References CDisplayWindow::btMainWindow(), m_syncButton, CDisplayWindow::setupMainWindowToolBars(), and BibleTime::toolsToolBar().

◆ storeProfileSettings()

void CCommentaryReadWindow::storeProfileSettings ( BtConfigCore conf) const
overridevirtual

Stores the settings of this window to configuration.

Parameters
[in]windowConfThe locked configuration group.

Store the settings of this window in the given CProfileWindow object.

Note
We don't use saveGeometry/restoreGeometry for MDI subwindows, because they give slightly incorrect results with some window managers. Might be related to Qt bug QTBUG-7634.

Reimplemented from CDisplayWindow.

Definition at line 101 of file ccommentaryreadwindow.cpp.

References BT_ASSERT, m_syncButton, BtConfigCore::setValue(), and CDisplayWindow::storeProfileSettings().

◆ syncAllowed()

bool CCommentaryReadWindow::syncAllowed ( ) const
overridevirtual
Returns
whether syncs to the active window are allowed for this display window.

Reimplemented from CDisplayWindow.

Definition at line 174 of file ccommentaryreadwindow.cpp.

References m_syncButton.

◆ verseKey()

CSwordVerseKey * CCommentaryReadWindow::verseKey ( )
private

rapper around key() to return the right type of key.

Definition at line 132 of file ccommentaryreadwindow.cpp.

References BT_ASSERT, and CDisplayWindow::key().

Referenced by nextBook(), nextChapter(), nextVerse(), previousBook(), previousChapter(), previousVerse(), and reload().

Member Data Documentation

◆ m_syncButton

QAction* CCommentaryReadWindow::m_syncButton
private

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