BibleTime
|
#include <ccommentaryreadwindow.h>
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 | |
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) |
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 | |
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 | initConnections () |
virtual void | lookupSwordKey (CSwordKey *) |
virtual QMenu * | newDisplayWidgetPopupMenu () |
void | setDisplayOptions (DisplayOptions const &v) |
void | setFilterOptions (FilterOptions const &v) |
void | setKeyChooser (CKeyChooser *ck) |
~CDisplayWindow () override | |
Private Member Functions | |
CSwordVerseKey * | verseKey () |
Private Attributes | |
QAction * | m_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 |
Definition at line 25 of file ccommentaryreadwindow.h.
|
inline |
Definition at line 33 of file ccommentaryreadwindow.h.
References CDisplayWindow::init().
|
overridevirtual |
Loads the settings of this window from configuration.
[in] | windowConf | The locked configuration group. |
Reimplemented from CDisplayWindow.
Definition at line 94 of file ccommentaryreadwindow.cpp.
References CDisplayWindow::applyProfileSettings(), BT_ASSERT, m_syncButton, and BtConfigCore::value().
|
overrideprotectedvirtual |
Initializes the internel keyboard actions.
Reimplemented from CDisplayWindow.
Definition at line 63 of file ccommentaryreadwindow.cpp.
References BtActionCollection::action(), CDisplayWindow::actionCollection(), CResMgr::displaywindows::commentaryWindow::syncWindow::actionName, CDisplayWindow::initActions(), CDisplayWindow::initAddAction(), insertKeyboardActions(), m_syncButton, nextBook(), nextChapter(), nextVerse(), previousBook(), previousChapter(), previousVerse(), and BtActionCollection::readShortcuts().
|
overrideprotectedvirtual |
Initialize the toolbars.
Reimplemented from CDisplayWindow.
Definition at line 109 of file ccommentaryreadwindow.cpp.
References CDisplayWindow::buttonsToolBar(), CDisplayWindow::initToolbars(), and m_syncButton.
|
static |
Reimplementation.
Definition at line 28 of file ccommentaryreadwindow.cpp.
References CResMgr::displaywindows::bibleWindow::nextBook::accel, CResMgr::displaywindows::bibleWindow::previousBook::accel, CResMgr::displaywindows::bibleWindow::nextChapter::accel, CResMgr::displaywindows::bibleWindow::previousChapter::accel, CResMgr::displaywindows::bibleWindow::nextVerse::accel, CResMgr::displaywindows::bibleWindow::previousVerse::accel, CResMgr::displaywindows::commentaryWindow::syncWindow::accel, CResMgr::displaywindows::commentaryWindow::syncWindow::actionName, and BtActionCollection::addAction().
Referenced by initActions().
|
inlineoverridevirtual |
Reimplemented from CDisplayWindow.
Definition at line 38 of file ccommentaryreadwindow.h.
References CSwordModuleInfo::Commentary.
|
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().
|
slot |
Moves to the next book.
Definition at line 151 of file ccommentaryreadwindow.cpp.
References CDisplayWindow::key(), CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CSwordVerseKey::UseChapter, and verseKey().
Referenced by initActions().
|
slot |
Moves to the next book.
Definition at line 163 of file ccommentaryreadwindow.cpp.
References CDisplayWindow::key(), CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CSwordVerseKey::UseVerse, and verseKey().
Referenced by initActions().
|
slot |
Moves one book behind.
Definition at line 145 of file ccommentaryreadwindow.cpp.
References CDisplayWindow::key(), CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CSwordVerseKey::UseBook, and verseKey().
Referenced by initActions().
|
slot |
Moves one book behind.
Definition at line 157 of file ccommentaryreadwindow.cpp.
References CDisplayWindow::key(), CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CSwordVerseKey::UseChapter, and verseKey().
Referenced by initActions().
|
slot |
Moves one book behind.
Definition at line 169 of file ccommentaryreadwindow.cpp.
References CDisplayWindow::key(), CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CSwordVerseKey::UseVerse, and verseKey().
Referenced by initActions().
|
overrideslot |
Reimplementation to handle the keychooser refresh.
Definition at line 120 of file ccommentaryreadwindow.cpp.
References CDisplayWindow::actionCollection(), CSwordBackend::instance(), CDisplayWindow::keyChooser(), BtActionCollection::readShortcuts(), CKeyChooser::refreshContent(), CDisplayWindow::reload(), CSwordVerseKey::setLocale(), and verseKey().
|
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().
|
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 101 of file ccommentaryreadwindow.cpp.
References BT_ASSERT, m_syncButton, BtConfigCore::setValue(), and CDisplayWindow::storeProfileSettings().
|
overridevirtual |
Reimplemented from CDisplayWindow.
Definition at line 174 of file ccommentaryreadwindow.cpp.
References m_syncButton.
|
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().
|
private |
Definition at line 60 of file ccommentaryreadwindow.h.
Referenced by applyProfileSettings(), initActions(), initToolbars(), setupMainWindowToolBars(), storeProfileSettings(), and syncAllowed().