BibleTime
|
#include <cbiblereadwindow.h>
Classes | |
class | ActionCollection |
Public Slots | |
void | nextBook () |
void | nextChapter () |
void | nextVerse () |
void | previousBook () |
void | previousChapter () |
void | previousVerse () |
void | reload () override |
![]() | |
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. | |
CBibleReadWindow (QList< CSwordModuleInfo * > const &modules, QString const &key, CMDIArea *parent) | |
CSwordModuleInfo::ModuleType | moduleType () const override |
void | storeProfileSettings (BtConfigCore &windowConf) const override |
Stores the settings of this window to configuration. | |
![]() | |
ActionCollection * | actionCollection () const noexcept |
BibleTime * | btMainWindow () |
QToolBar * | buttonsToolBar () const noexcept |
BtConstModuleList | constModules () const |
virtual void | copyDisplayedText () |
DisplayOptions const & | displayOptions () const noexcept |
BtModelViewReadDisplay * | displayWidget () const noexcept |
FilterOptions const & | filterOptions () const noexcept |
CSwordModuleInfo const * | firstModule () const noexcept |
CSwordKey * | getMouseClickedKey () const |
CKeyChooser * | keyChooser () const noexcept |
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) |
CSwordKey * | swordKey () const noexcept |
virtual bool | syncAllowed () const noexcept |
void | updateWindowTitle () |
void | windowActivated () |
Protected Slots | |
void | copyDisplayedText () override |
void | lookupSwordKey (CSwordKey *newKey) override |
void | saveChapterHTML () |
void | saveChapterPlain () |
void | syncWindows () |
![]() | |
void | lookup () |
virtual void | modulesChanged () |
void | printAll () |
void | printAnchorOnly () |
void | printAnchorWithText () |
Protected Member Functions | |
void | initActions () override |
QMenu * | newDisplayWidgetPopupMenu () override |
![]() | |
CDisplayWindow (BtModuleList const &modules, QString const &key, bool const addTextHeaderToolbar, ActionCollection *actionCollection, CMDIArea *const parent) | |
void | clearMainWindowToolBars () |
BTHistory * | history () const noexcept |
bool | init () |
template<typename ... Args> | |
QAction & | initAddAction (Args &&... args) |
virtual void | initConnections () |
virtual void | initToolbars () |
virtual void | lookupSwordKey (CSwordKey *) |
void | setDisplayOptions (DisplayOptions const &v) |
void | setFilterOptions (FilterOptions const &v) |
virtual void | setupMainWindowToolBars () |
~CDisplayWindow () override | |
Protected Attributes | ||
struct { | ||
struct { | ||
QAction * byReferences | ||
QAction * chapter | ||
QAction * referenceAndText | ||
QAction * referenceOnly | ||
QAction * referenceTextOnly | ||
QAction * selectedText | ||
} copy | ||
QMenu * copyMenu | ||
QAction * findStrongs | ||
QAction * findText | ||
struct { | ||
QAction * chapter | ||
QAction * reference | ||
QMenu * printMenu | ||
struct { | ||
QAction * chapterAsHTML | ||
QAction * chapterAsPlain | ||
QAction * referenceAndText | ||
} save | ||
QMenu * saveMenu | ||
} | m_actions | |
![]() | ||
struct CDisplayWindow::ActionsStruct | m_actions | |
Private Member Functions | |
void | saveChapter (CExportManager::Format const format) |
CSwordVerseKey * | verseKey () |
Additional Inherited Members | |
![]() | |
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) |
Definition at line 29 of file cbiblereadwindow.h.
CBibleReadWindow::CBibleReadWindow | ( | QList< CSwordModuleInfo * > const & | modules, |
QString const & | key, | ||
CMDIArea * | parent | ||
) |
Definition at line 89 of file cbiblereadwindow.cpp.
References CDisplayWindow::init().
|
overridevirtual |
Loads the settings of this window from configuration.
[in] | windowConf | The locked configuration group. |
Reimplemented from CDisplayWindow.
Definition at line 95 of file cbiblereadwindow.cpp.
References CDisplayWindow::applyProfileSettings(), CDisplayWindow::displayOptions(), CDisplayWindow::filterOptions(), BtConfig::loadDisplayOptionsFromGroup(), BtConfig::loadFilterOptionsFromGroup(), CDisplayWindow::lookup(), CDisplayWindow::setDisplayOptions(), CDisplayWindow::setFilterOptions(), CDisplayWindow::sigDisplayOptionsChanged(), and CDisplayWindow::sigFilterOptionsChanged().
|
overrideprotectedslot |
Copies the current chapter into the clipboard.
Definition at line 286 of file cbiblereadwindow.cpp.
References CSwordVerseKey::bookName(), CSwordVerseKey::chapter(), CExportManager::copyKey(), CDisplayWindow::displayOptions(), CDisplayWindow::filterOptions(), CDisplayWindow::firstModule(), CSwordVerseKey::setLowerBound(), CSwordVerseKey::setUpperBound(), CSwordVerseKey::setVerse(), CExportManager::Text, and verseKey().
Referenced by initActions().
|
overrideprotectedvirtual |
Initializes the internel keyboard actions.
Implements CDisplayWindow.
Definition at line 115 of file cbiblereadwindow.cpp.
References CDisplayWindow::actionCollection(), CResMgr::displaywindows::general::findStrongs::actionName, BtModelViewReadDisplay::activeAnchorChanged(), BT_CONNECT, BtModelViewReadDisplay::copyAnchorTextOnly(), BtModelViewReadDisplay::copyAnchorWithText(), copyDisplayedText(), CDisplayWindow::displayWidget(), CDisplayWindow::initAddAction(), m_actions, nextBook(), nextChapter(), nextVerse(), previousBook(), previousChapter(), previousVerse(), CDisplayWindow::printAll(), CDisplayWindow::printAnchorWithText(), BtModelViewReadDisplay::save(), BtModelViewReadDisplay::saveAnchorWithText(), saveChapterHTML(), and saveChapterPlain().
|
overrideprotectedslot |
Definition at line 353 of file cbiblereadwindow.cpp.
References CDisplayWindow::lookupSwordKey(), and syncWindows().
|
inlineoverridevirtual |
Reimplemented from CDisplayWindow.
Definition at line 49 of file cbiblereadwindow.h.
References CSwordModuleInfo::Bible.
|
overrideprotectedvirtual |
Reimplemented from CDisplayWindow.
Definition at line 202 of file cbiblereadwindow.cpp.
References m_actions.
|
slot |
Moves to the next book.
Definition at line 236 of file cbiblereadwindow.cpp.
References CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CDisplayWindow::swordKey(), CSwordVerseKey::UseBook, and verseKey().
Referenced by initActions().
|
slot |
Moves to the next book.
Definition at line 250 of file cbiblereadwindow.cpp.
References CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CDisplayWindow::swordKey(), CSwordVerseKey::UseChapter, and verseKey().
Referenced by initActions().
|
slot |
Moves to the next book.
Definition at line 264 of file cbiblereadwindow.cpp.
References CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CDisplayWindow::swordKey(), CSwordVerseKey::UseVerse, and verseKey().
Referenced by initActions().
|
slot |
Moves one book behind.
Definition at line 243 of file cbiblereadwindow.cpp.
References CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CDisplayWindow::swordKey(), CSwordVerseKey::UseBook, and verseKey().
Referenced by initActions().
|
slot |
Moves one book behind.
Definition at line 257 of file cbiblereadwindow.cpp.
References CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CDisplayWindow::swordKey(), CSwordVerseKey::UseChapter, and verseKey().
Referenced by initActions().
|
slot |
Moves one book behind.
Definition at line 271 of file cbiblereadwindow.cpp.
References CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CDisplayWindow::swordKey(), CSwordVerseKey::UseVerse, and verseKey().
Referenced by initActions().
|
overrideslot |
Definition at line 337 of file cbiblereadwindow.cpp.
References CDisplayWindow::actionCollection(), CSwordBackend::instance(), CDisplayWindow::keyChooser(), CDisplayWindow::m_modules, BtActionCollection::readShortcuts(), CKeyChooser::refreshContent(), CDisplayWindow::reload(), CSwordVerseKey::setLocale(), and verseKey().
|
private |
Definition at line 312 of file cbiblereadwindow.cpp.
References CSwordVerseKey::book(), CSwordVerseKey::chapter(), CDisplayWindow::constModules(), CDisplayWindow::displayOptions(), CDisplayWindow::filterOptions(), CDisplayWindow::getMouseClickedKey(), CExportManager::saveKey(), CSwordVerseKey::setLowerBound(), CSwordVerseKey::setUpperBound(), CSwordVerseKey::setVerse(), and verseKey().
Referenced by saveChapterHTML(), and saveChapterPlain().
|
protectedslot |
Saves the chapter as valid HTML page.
Definition at line 303 of file cbiblereadwindow.cpp.
References CExportManager::HTML, and saveChapter().
Referenced by initActions().
|
protectedslot |
Saves the chapter as valid HTML page.
Definition at line 308 of file cbiblereadwindow.cpp.
References saveChapter(), and CExportManager::Text.
Referenced by initActions().
|
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 108 of file cbiblereadwindow.cpp.
References CDisplayWindow::displayOptions(), CDisplayWindow::filterOptions(), BtConfig::storeDisplayOptionsToGroup(), BtConfig::storeFilterOptionsToGroup(), and CDisplayWindow::storeProfileSettings().
|
protectedslot |
Definition at line 358 of file cbiblereadwindow.cpp.
References CSwordKey::key(), CDisplayWindow::lookupKey(), CDisplayWindow::mdi(), CDisplayWindow::swordKey(), and CDisplayWindow::syncAllowed().
Referenced by lookupSwordKey().
|
private |
Wrapper around key() to return the right type of key.
wrapper around key() to return the right type of key.
Definition at line 278 of file cbiblereadwindow.cpp.
References BT_ASSERT, and CDisplayWindow::swordKey().
Referenced by copyDisplayedText(), nextBook(), nextChapter(), nextVerse(), previousBook(), previousChapter(), previousVerse(), reload(), and saveChapter().
QAction* CBibleReadWindow::byReferences |
Definition at line 71 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::chapter |
Definition at line 69 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::chapterAsHTML |
Definition at line 79 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::chapterAsPlain |
Definition at line 78 of file cbiblereadwindow.h.
struct { ... } CBibleReadWindow::copy |
QMenu* CBibleReadWindow::copyMenu |
Definition at line 64 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::findStrongs |
Definition at line 62 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::findText |
Definition at line 61 of file cbiblereadwindow.h.
struct { ... } CBibleReadWindow::m_actions |
Referenced by initActions(), and newDisplayWidgetPopupMenu().
struct { ... } CBibleReadWindow::print |
QMenu* CBibleReadWindow::printMenu |
Definition at line 83 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::reference |
Definition at line 85 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::referenceAndText |
Definition at line 68 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::referenceOnly |
Definition at line 66 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::referenceTextOnly |
Definition at line 67 of file cbiblereadwindow.h.
struct { ... } CBibleReadWindow::save |
QMenu* CBibleReadWindow::saveMenu |
Definition at line 75 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::selectedText |
Definition at line 70 of file cbiblereadwindow.h.