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

#include <cbookreadwindow.h>

Inheritance diagram for CBookReadWindow:

Public Member Functions

void applyProfileSettings (BtConfigCore const &windowConf) override
 Loads the settings of this window from configuration. More...
 
 CBookReadWindow (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...
 
- Public Member Functions inherited from CDisplayWindow
BtActionCollectionactionCollection () const
 
BibleTimebtMainWindow ()
 
QToolBarbuttonsToolBar () const noexcept
 
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 () const noexcept
 
CMDIAreamdi () const
 
QStringList const & moduleNames () const noexcept
 
BtModuleList const & modules () const noexcept
 
void setBibleReference (const QString &reference)
 
void setDisplaySettingsButton (BtDisplaySettingsButton *button)
 
virtual bool syncAllowed () const
 
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 Slots

void modulesChanged () override
 
- Protected Slots inherited from CDisplayWindow
void lookup ()
 
virtual void modulesChanged ()
 
void printAll ()
 
void printAnchorWithText ()
 

Protected Member Functions

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

Private Attributes

QActionm_treeAction = nullptr
 
CBookTreeChooserm_treeChooser
 
QDockWidgetm_treeChooserDock = nullptr
 

Additional Inherited Members

- 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)
 
- 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 Attributes inherited from CDisplayWindow
struct CDisplayWindow::ActionsStruct m_actions
 

Detailed Description

Definition at line 29 of file cbookreadwindow.h.

Constructor & Destructor Documentation

◆ CBookReadWindow()

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

Member Function Documentation

◆ applyProfileSettings()

void CBookReadWindow::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 61 of file cbookreadwindow.cpp.

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

◆ initActions()

void CBookReadWindow::initActions ( )
overrideprotectedvirtual

◆ initConnections()

void CBookReadWindow::initConnections ( )
overrideprotectedvirtual

◆ initToolbars()

void CBookReadWindow::initToolbars ( )
overrideprotectedvirtual

◆ insertKeyboardActions()

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

Definition at line 89 of file cbookreadwindow.cpp.

References BtActionCollection::addAction().

Referenced by initActions().

◆ modulesChanged

void CBookReadWindow::modulesChanged ( )
overrideprotectedslot

Reimplementation to take care of the tree chooser.

Definition at line 167 of file cbookreadwindow.cpp.

References CDisplayWindow::constModules(), m_treeChooser, CDisplayWindow::modulesChanged(), and CBookTreeChooser::setModules().

◆ moduleType()

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

Reimplemented from CDisplayWindow.

Definition at line 38 of file cbookreadwindow.h.

References CSwordModuleInfo::GenericBook.

◆ setupMainWindowToolBars()

void CBookReadWindow::setupMainWindowToolBars ( )
overrideprotectedvirtual

◆ storeProfileSettings()

void CBookReadWindow::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 70 of file cbookreadwindow.cpp.

References m_treeAction, BtConfigCore::setValue(), and CDisplayWindow::storeProfileSettings().

Member Data Documentation

◆ m_treeAction

QAction* CBookReadWindow::m_treeAction = nullptr
private

◆ m_treeChooser

CBookTreeChooser* CBookReadWindow::m_treeChooser
private

Definition at line 59 of file cbookreadwindow.h.

Referenced by CBookReadWindow(), initConnections(), and modulesChanged().

◆ m_treeChooserDock

QDockWidget* CBookReadWindow::m_treeChooserDock = nullptr
private

Definition at line 60 of file cbookreadwindow.h.

Referenced by CBookReadWindow(), and initActions().


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