BibleTime
|
#include <cbiblereadwindow.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... | |
CBibleReadWindow (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 | copyDisplayedText () override |
void | lookupSwordKey (CSwordKey *newKey) override |
void | saveChapterHTML () |
void | saveChapterPlain () |
void | syncWindows () |
Protected Slots inherited from CDisplayWindow | |
void | lookup () |
virtual void | modulesChanged () |
void | printAll () |
void | printAnchorWithText () |
Protected Member Functions | |
void | initActions () override |
QMenu * | newDisplayWidgetPopupMenu () 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 | initToolbars () |
virtual void | lookupSwordKey (CSwordKey *) |
void | setDisplayOptions (DisplayOptions const &v) |
void | setFilterOptions (FilterOptions const &v) |
void | setKeyChooser (CKeyChooser *ck) |
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 |
Protected Attributes inherited from CDisplayWindow | |
struct CDisplayWindow::ActionsStruct | m_actions |
Private Member Functions | |
void | saveChapter (CExportManager::Format const format) |
CSwordVerseKey * | verseKey () |
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) |
Definition at line 29 of file cbiblereadwindow.h.
|
inline |
Definition at line 35 of file cbiblereadwindow.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 34 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 307 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.
Reimplemented from CDisplayWindow.
Definition at line 118 of file cbiblereadwindow.cpp.
References BtActionCollection::action(), CDisplayWindow::actionCollection(), CResMgr::displaywindows::general::findStrongs::actionName, BtModelViewReadDisplay::copyAnchorTextOnly(), BtModelViewReadDisplay::copyAnchorWithText(), copyDisplayedText(), CDisplayWindow::displayWidget(), CDisplayWindow::initActions(), CDisplayWindow::initAddAction(), insertKeyboardActions(), m_actions, nextBook(), nextChapter(), nextVerse(), previousBook(), previousChapter(), previousVerse(), CDisplayWindow::printAll(), CDisplayWindow::printAnchorWithText(), BtActionCollection::readShortcuts(), BtModelViewReadDisplay::saveAnchorWithText(), saveChapterHTML(), and saveChapterPlain().
|
static |
Reimplementation.
Definition at line 56 of file cbiblereadwindow.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, and BtActionCollection::addAction().
Referenced by initActions().
|
overrideprotectedslot |
Definition at line 374 of file cbiblereadwindow.cpp.
References CDisplayWindow::lookupSwordKey(), and syncWindows().
|
inlineoverridevirtual |
Reimplemented from CDisplayWindow.
Definition at line 40 of file cbiblereadwindow.h.
References CSwordModuleInfo::Bible.
|
overrideprotectedvirtual |
Reimplemented from CDisplayWindow.
Definition at line 198 of file cbiblereadwindow.cpp.
References BT_CONNECT, CDisplayWindow::displayWidget(), CDisplayWindow::firstModule(), CDisplayWindow::hasSelectedText(), m_actions, and CSwordModuleInfo::moduleIcon().
|
slot |
Moves to the next book.
Definition at line 257 of file cbiblereadwindow.cpp.
References CDisplayWindow::key(), CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CSwordVerseKey::UseBook, and verseKey().
Referenced by initActions().
|
slot |
Moves to the next book.
Definition at line 271 of file cbiblereadwindow.cpp.
References CDisplayWindow::key(), CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CSwordVerseKey::UseChapter, and verseKey().
Referenced by initActions().
|
slot |
Moves to the next book.
Definition at line 285 of file cbiblereadwindow.cpp.
References CDisplayWindow::key(), CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CSwordVerseKey::UseVerse, and verseKey().
Referenced by initActions().
|
slot |
Moves one book behind.
Definition at line 264 of file cbiblereadwindow.cpp.
References CDisplayWindow::key(), CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CSwordVerseKey::UseBook, and verseKey().
Referenced by initActions().
|
slot |
Moves one book behind.
Definition at line 278 of file cbiblereadwindow.cpp.
References CDisplayWindow::key(), CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CSwordVerseKey::UseChapter, and verseKey().
Referenced by initActions().
|
slot |
Moves one book behind.
Definition at line 292 of file cbiblereadwindow.cpp.
References CDisplayWindow::key(), CDisplayWindow::keyChooser(), CKeyChooser::setKey(), CSwordVerseKey::UseVerse, and verseKey().
Referenced by initActions().
|
overrideslot |
Definition at line 358 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 333 of file cbiblereadwindow.cpp.
References CSwordVerseKey::book(), CSwordVerseKey::chapter(), CDisplayWindow::constModules(), CDisplayWindow::displayOptions(), CDisplayWindow::filterOptions(), CDisplayWindow::getMouseClickedKey(), CDisplayWindow::key(), 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 324 of file cbiblereadwindow.cpp.
References CExportManager::HTML, and saveChapter().
Referenced by initActions().
|
protectedslot |
Saves the chapter as valid HTML page.
Definition at line 329 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 47 of file cbiblereadwindow.cpp.
References CDisplayWindow::displayOptions(), CDisplayWindow::filterOptions(), BtConfig::storeDisplayOptionsToGroup(), BtConfig::storeFilterOptionsToGroup(), and CDisplayWindow::storeProfileSettings().
|
protectedslot |
Definition at line 379 of file cbiblereadwindow.cpp.
References CDisplayWindow::key(), CSwordKey::key(), CDisplayWindow::lookupKey(), CDisplayWindow::mdi(), 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 299 of file cbiblereadwindow.cpp.
References BT_ASSERT, and CDisplayWindow::key().
Referenced by copyDisplayedText(), nextBook(), nextChapter(), nextVerse(), previousBook(), previousChapter(), previousVerse(), reload(), and saveChapter().
QAction* CBibleReadWindow::byReferences |
Definition at line 63 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::chapter |
Definition at line 61 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::chapterAsHTML |
Definition at line 71 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::chapterAsPlain |
Definition at line 70 of file cbiblereadwindow.h.
struct { ... } CBibleReadWindow::copy |
QMenu* CBibleReadWindow::copyMenu |
Definition at line 56 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::findStrongs |
Definition at line 54 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::findText |
Definition at line 53 of file cbiblereadwindow.h.
struct { ... } CBibleReadWindow::m_actions |
Referenced by initActions(), and newDisplayWidgetPopupMenu().
struct { ... } CBibleReadWindow::print |
QMenu* CBibleReadWindow::printMenu |
Definition at line 75 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::reference |
Definition at line 77 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::referenceAndText |
Definition at line 60 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::referenceOnly |
Definition at line 58 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::referenceTextOnly |
Definition at line 59 of file cbiblereadwindow.h.
struct { ... } CBibleReadWindow::save |
QMenu* CBibleReadWindow::saveMenu |
Definition at line 67 of file cbiblereadwindow.h.
QAction* CBibleReadWindow::selectedText |
Definition at line 62 of file cbiblereadwindow.h.