BibleTime
|
#include <cbookreadwindow.h>
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 | |
BtActionCollection * | actionCollection () const |
BibleTime * | btMainWindow () |
QToolBar * | buttonsToolBar () const noexcept |
BtConstModuleList | constModules () const |
virtual void | copyDisplayedText () |
DisplayOptions const & | displayOptions () const |
BtModelViewReadDisplay * | displayWidget () const |
FilterOptions const & | filterOptions () const |
CSwordModuleInfo const * | firstModule () const noexcept |
CSwordKey * | getMouseClickedKey () const |
bool | hasSelectedText () |
CSwordKey * | key () const |
CKeyChooser * | keyChooser () const |
QToolBar * | mainToolBar () const noexcept |
CMDIArea * | mdi () 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 () |
BTHistory * | history () const noexcept |
bool | init () |
template<typename ... Args> | |
QAction & | initAddAction (Args &&... args) |
virtual void | lookupSwordKey (CSwordKey *) |
virtual QMenu * | newDisplayWidgetPopupMenu () |
void | setDisplayOptions (DisplayOptions const &v) |
void | setFilterOptions (FilterOptions const &v) |
void | setKeyChooser (CKeyChooser *ck) |
~CDisplayWindow () override | |
Private Attributes | |
QAction * | m_treeAction = nullptr |
CBookTreeChooser * | m_treeChooser |
QDockWidget * | m_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 |
Definition at line 29 of file cbookreadwindow.h.
CBookReadWindow::CBookReadWindow | ( | QList< CSwordModuleInfo * > const & | modules, |
CMDIArea * | parent | ||
) |
Definition at line 36 of file cbookreadwindow.cpp.
References BTHistory::add(), BT_CONNECT, CDisplayWindow::constModules(), CKeyChooser::handleHistoryMoved(), CDisplayWindow::history(), BTHistory::historyMoved(), CDisplayWindow::init(), CDisplayWindow::key(), CKeyChooser::keyChanged(), m_treeChooser, and m_treeChooserDock.
|
overridevirtual |
Loads the settings of this window from configuration.
[in] | windowConf | The locked configuration group. |
Reimplemented from CDisplayWindow.
Definition at line 61 of file cbookreadwindow.cpp.
References CDisplayWindow::applyProfileSettings(), BT_ASSERT, m_treeAction, and BtConfigCore::value().
|
overrideprotectedvirtual |
Initializes the internel keyboard actions.
Reimplemented from CDisplayWindow.
Definition at line 75 of file cbookreadwindow.cpp.
References BtActionCollection::action(), CDisplayWindow::actionCollection(), BT_ASSERT, BT_CONNECT, CDisplayWindow::initActions(), insertKeyboardActions(), m_treeAction, m_treeChooserDock, and BtActionCollection::readShortcuts().
|
overrideprotectedvirtual |
No descriptions
Reimplemented from CDisplayWindow.
Definition at line 100 of file cbookreadwindow.cpp.
References BT_CONNECT, CDisplayWindow::initConnections(), CKeyChooser::keyChanged(), CDisplayWindow::keyChooser(), CDisplayWindow::lookupSwordKey(), m_treeChooser, CBookTreeChooser::updateKey(), and CKeyChooser::updateKey().
|
overrideprotectedvirtual |
Initialize the toolbars.
Reimplemented from CDisplayWindow.
Definition at line 111 of file cbookreadwindow.cpp.
References CDisplayWindow::actionCollection(), CResMgr::displaywindows::general::search::actionName, CDisplayWindow::ActionsStruct::backInHistory, BT_ASSERT, CDisplayWindow::buttonsToolBar(), CDisplayWindow::ActionsStruct::forwardInHistory, CDisplayWindow::keyChooser(), CDisplayWindow::m_actions, m_treeAction, CDisplayWindow::mainToolBar(), and CDisplayWindow::setDisplaySettingsButton().
|
static |
Definition at line 89 of file cbookreadwindow.cpp.
References BtActionCollection::addAction().
Referenced by initActions().
|
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().
|
inlineoverridevirtual |
Reimplemented from CDisplayWindow.
Definition at line 38 of file cbookreadwindow.h.
References CSwordModuleInfo::GenericBook.
|
overrideprotectedvirtual |
Called to add actions to mainWindow toolbars
Reimplemented from CDisplayWindow.
Definition at line 131 of file cbookreadwindow.cpp.
References CDisplayWindow::actionCollection(), CResMgr::displaywindows::general::search::actionName, BTHistory::add(), BtModuleChooserBar::associateWithWindow(), CDisplayWindow::ActionsStruct::backInHistory, BT_CONNECT, CDisplayWindow::btMainWindow(), CDisplayWindow::buttonsToolBar(), CDisplayWindow::constModules(), CKeyChooser::createInstance(), CDisplayWindow::ActionsStruct::forwardInHistory, CKeyChooser::handleHistoryMoved(), CDisplayWindow::history(), BTHistory::historyMoved(), CDisplayWindow::key(), CKeyChooser::keyChanged(), CDisplayWindow::keyChooser(), CDisplayWindow::lookupSwordKey(), CDisplayWindow::m_actions, m_treeAction, BibleTime::navToolBar(), CDisplayWindow::setDisplaySettingsButton(), CDisplayWindow::sigKeyChanged(), BibleTime::toolsToolBar(), CKeyChooser::updateKey(), and BibleTime::worksToolBar().
|
overridevirtual |
Stores the settings of this window to configuration.
[in] | windowConf | The locked configuration group. |
Store the settings of this window in the given CProfileWindow object.
Reimplemented from CDisplayWindow.
Definition at line 70 of file cbookreadwindow.cpp.
References m_treeAction, BtConfigCore::setValue(), and CDisplayWindow::storeProfileSettings().
|
private |
Definition at line 58 of file cbookreadwindow.h.
Referenced by applyProfileSettings(), initActions(), initToolbars(), setupMainWindowToolBars(), and storeProfileSettings().
|
private |
Definition at line 59 of file cbookreadwindow.h.
Referenced by CBookReadWindow(), initConnections(), and modulesChanged().
|
private |
Definition at line 60 of file cbookreadwindow.h.
Referenced by CBookReadWindow(), and initActions().