/** Copies the current chapter into the clipboard. */ void CBibleReadWindow::copyDisplayedText() { CSwordVerseKey dummy(*verseKey()); dummy.setVerse(1); CSwordVerseKey vk(*verseKey()); vk.setLowerBound(dummy); const CSwordBibleModuleInfo* bible = dynamic_cast<const CSwordBibleModuleInfo*>(modules().first()); dummy.setVerse(bible->verseCount(dummy.book(), dummy.getChapter())); vk.setUpperBound(dummy); CExportManager mgr(false, tr("Copying"), filterOptions(), displayOptions()); mgr.copyKey(&vk, CExportManager::Text, true); }
/** Saves the chapter as valid HTML page. */ void CBibleReadWindow::saveChapterPlain() { //saves the complete chapter to disk CSwordVerseKey vk(*verseKey()); CSwordVerseKey dummy(*verseKey()); dummy.setVerse(1); vk.setLowerBound(dummy); const CSwordBibleModuleInfo* bible = dynamic_cast<const CSwordBibleModuleInfo*>(modules().first()); dummy.setVerse(bible->verseCount(dummy.book(), dummy.getChapter())); vk.setUpperBound(dummy); CExportManager mgr(true, tr("Saving"), filterOptions(), displayOptions()); mgr.saveKey(&vk, CExportManager::Text, true); }
/** Reimplementation to handle the keychooser refresh. */ void CCommentaryReadWindow::reload(CSwordBackend::SetupChangedReason reason) { CLexiconReadWindow::reload(reason); //refresh the book lists verseKey()->setLocale( CSwordBackend::instance()->booknameLanguage().toLatin1() ); keyChooser()->refreshContent(); actionCollection()->readShortcuts("Commentary shortcuts"); }
void CBibleReadWindow::reload(CSwordBackend::SetupChangedReason reason) { CLexiconReadWindow::reload(reason); if (m_modules.isEmpty()) { close(); return; } //refresh the book lists verseKey()->setLocale( CSwordBackend::instance()->booknameLanguage().toLatin1() ); keyChooser()->refreshContent(); actionCollection()->readShortcuts("Bible shortcuts"); }
/** Moves one book behind. */ void CCommentaryReadWindow::previousVerse() { if (verseKey()->previous(CSwordVerseKey::UseVerse)) keyChooser()->setKey(key()); }
/** Moves to the next book. */ void CCommentaryReadWindow::nextVerse() { if (verseKey()->next(CSwordVerseKey::UseVerse)) keyChooser()->setKey(key()); }
/** Moves one book behind. */ void CBibleReadWindow::previousVerse() { if (verseKey()->previous(CSwordVerseKey::UseVerse)) { keyChooser()->setKey(key()); } }
/** Moves to the next book. */ void CBibleReadWindow::nextVerse() { if (verseKey()->next(CSwordVerseKey::UseVerse)) { keyChooser()->setKey(key()); } }