BibleTime
|
#include <cswordmoduleinfo.h>
Classes | |
struct | FilterOption |
Public Slots | |
void | cancelIndexing (std::memory_order const memoryOrder=std::memory_order_relaxed) noexcept |
Signals | |
void | hasIndexChanged (bool hasIndex) |
void | hiddenChanged (bool hidden) |
void | indexingFinished () |
void | indexingProgress (int) |
void | unlockedChanged (bool unlocked) |
Public Member Functions | |
QString | aboutText () const |
void | buildIndex () |
CSwordModuleInfo::Category | category () const |
QString | config (const CSwordModuleInfo::ConfigEntry entry) const |
virtual CSwordKey * | createKey () const =0 |
CSwordModuleInfo (CSwordModuleInfo &&)=delete | |
CSwordModuleInfo (CSwordModuleInfo const &)=delete | |
void | deleteEntry (CSwordKey *const key) |
void | deleteIndex () |
QString | getModuleBaseIndexLocation () const |
QString | getModuleStandardIndexLocation () const |
QString | getUnlockInfo () |
std::shared_ptr< Language const > | glossaryTargetlanguage () const |
bool | has (CSwordModuleInfo::Feature const feature) const noexcept |
bool | has (CSwordModuleInfo::FilterOption const &) const |
bool | hasIndex () const |
bool | hasVersion () const |
::qint64 | indexSize () const |
bool | isEncrypted () const |
bool | isHidden () const |
bool | isLocked () const |
bool | isUnicode () const noexcept |
virtual bool | isWritable () const |
std::shared_ptr< Language const > | language () const |
sword::SWVersion | minimumSwordVersion () const |
QIcon | moduleIcon () const |
QString const & | name () const |
CSwordModuleInfo & | operator= (CSwordModuleInfo &&)=delete |
CSwordModuleInfo & | operator= (CSwordModuleInfo const &)=delete |
CSwordModuleSearch::ModuleResultList | searchIndexed (QString const &searchedText, sword::ListKey const &scope) const |
bool | setHidden (bool hide) |
virtual bool | snap () const |
sword::SWModule & | swordModule () const |
CSwordModuleInfo::TextDirection | textDirection () const |
char const * | textDirectionAsHtml () const |
ModuleType | type () const |
bool | unlock (const QString &unlockKey) |
bool | unlockKeyIsValid () const |
void | write (CSwordKey *key, const QString &newText) |
Static Public Member Functions | |
static QIcon const & | categoryIcon (CSwordModuleInfo::Category category) |
static QString | categoryName (const CSwordModuleInfo::Category &category) |
static void | deleteIndexForModule (const QString &name) |
static QString | getGlobalBaseIndexLocation () |
static QIcon const & | moduleIcon (CSwordModuleInfo const &module) |
Static Public Attributes | |
static FilterOption const | footnotes |
static FilterOption const | greekAccents |
static FilterOption const | headings |
static FilterOption const | hebrewCantillation |
static FilterOption const | hebrewPoints |
static FilterOption const | lemmas |
static FilterOption const | morphSegmentation |
static FilterOption const | morphTags |
static FilterOption const | redLetterWords |
static FilterOption const | scriptureReferences |
static FilterOption const | strongNumbers |
static FilterOption const | textualVariants |
Protected Member Functions | |
CSwordBackend & | backend () const |
CSwordModuleInfo (sword::SWModule &module, CSwordBackend &backend, ModuleType type) | |
QString | getFormattedConfigEntry (const QString &name) const |
QString | getSimpleConfigEntry (const QString &name) const |
bool | hasImportantFilterOption () const |
void | setImportantFilterOptions (bool enable) |
Private Attributes | |
CSwordBackend & | m_backend |
CSwordModuleInfo::Category const | m_cachedCategory |
Features const | m_cachedFeatures |
std::shared_ptr< Language const > const | m_cachedGlossaryTargetLanguage |
bool const | m_cachedHasVersion |
std::shared_ptr< Language const > const | m_cachedLanguage |
QString const | m_cachedName |
std::atomic< bool > | m_cancelIndexing |
bool | m_hidden |
sword::SWModule & | m_swordModule |
ModuleType const | m_type |
Base class for Sword modules. This is the base class for all Sword modules. Every class handling a special Sword module type does inherit from this class.
Definition at line 49 of file cswordmoduleinfo.h.
Enumerator | |
---|---|
UnknownCategory | Unknown or unset category. |
NoCategory | |
Bibles | |
Commentaries | |
Books | |
Lexicons | |
Glossary | |
DailyDevotional | |
Images | |
Cult | Cult / sect / questionable module. |
AllCategories |
Definition at line 146 of file cswordmoduleinfo.h.
Definition at line 108 of file cswordmoduleinfo.h.
Enumerator | |
---|---|
FeatureStrongsNumbers | |
FeatureGreekDef | |
FeatureHebrewDef | |
FeatureGreekParse | |
FeatureHebrewParse | |
FeatureDailyDevotion | |
FeatureGlossary | |
FeatureImages | |
FeatureNoParagraphs |
Definition at line 133 of file cswordmoduleinfo.h.
The module type.
Enumerator | |
---|---|
Unknown | Fall back type for unknown modules |
Bible | Bible module |
Commentary | Commentary module |
Lexicon | Lexicon module |
GenericBook | Generic book module |
Definition at line 87 of file cswordmoduleinfo.h.
The text direction of a module
Enumerator | |
---|---|
LeftToRight | Left to right text direction, the default setting |
RightToLeft | Right to left text directin, e.g. for hebrew |
Definition at line 81 of file cswordmoduleinfo.h.
This enum is used to give back an error code after unlocking the module BibleTime stores the unlock key not in the module's config file but in BibleTime's configuration file.
Enumerator | |
---|---|
noError | No error occured, everything worked ok. The key was written to the BibleTime config |
wrongUnlockKey | The wrong key was used. Module is not unlocked |
notLocked | The module was not locked so it can't be unlocked |
noPermission | The key was not written to config because we have no permissions |
Definition at line 101 of file cswordmoduleinfo.h.
|
delete |
|
delete |
|
protected |
Definition at line 220 of file cswordmoduleinfo.cpp.
References btConfig(), m_cachedHasVersion, m_cachedName, m_hidden, minimumSwordVersion(), and BtConfigCore::value().
QString CSwordModuleInfo::aboutText | ( | ) | const |
The about text which belongs to this module.
Definition at line 911 of file cswordmoduleinfo.cpp.
References AboutInformation, AbsoluteDataPath, CipherKey, config(), CopyrightContactAddress, CopyrightContactEmail, CopyrightContactName, CopyrightDate, CopyrightHolder, CopyrightNotes, Cult, DistributionLicense, DistributionNotes, DistributionSource, footnotes, greekAccents, has(), headings, hebrewCantillation, hebrewPoints, isEncrypted(), isWritable(), lemmas, m_cachedCategory, m_cachedHasVersion, m_cachedLanguage, m_swordModule, ModuleVersion, morphSegmentation, morphTags, redLetterWords, scriptureReferences, strongNumbers, TextSource, textualVariants, and type().
Referenced by BTAboutModuleDialog::retranslateUi().
|
inlineprotected |
Definition at line 401 of file cswordmoduleinfo.h.
References m_backend.
Referenced by CSwordBibleModuleInfo::books().
void CSwordModuleInfo::buildIndex | ( | ) |
Builds a search index for this module
when | unsuccessful |
Definition at line 403 of file cswordmoduleinfo.cpp.
References BT_ASSERT, BT_MAX_LUCENE_FIELD_LENGTH, btConfig(), CANCEL_INDEXING, config(), deleteIndex(), getGlobalBaseIndexLocation(), getModuleBaseIndexLocation(), getModuleStandardIndexLocation(), hasImportantFilterOption(), hasIndexChanged(), CSwordVerseKey::index(), INDEX_VERSION, indexingProgress(), Lexicon, CSwordBibleModuleInfo::lowerBound(), lucene_utf8towcs(), m_backend, m_cachedHasVersion, m_cancelIndexing, m_swordModule, m_type, ModuleVersion, morphSegmentation, redLetterWords, scriptureReferences, CSwordBackend::setFilterOptions(), setImportantFilterOptions(), CSwordBackend::setOption(), and CSwordBibleModuleInfo::upperBound().
|
inlineslotnoexcept |
Definition at line 391 of file cswordmoduleinfo.h.
References m_cancelIndexing.
|
inline |
Definition at line 351 of file cswordmoduleinfo.h.
References m_cachedCategory.
Referenced by categoryIcon(), categoryName(), BtBookshelfModel::data(), BookshelfModel::CategoryItem::fitFor(), and util::tool::getIconForModule().
|
static |
Returns an icon for the category of given module.
[in] | module | The module whose category icon to return. |
Definition at line 1061 of file cswordmoduleinfo.cpp.
References Bibles, Books, category(), Commentaries, Cult, DailyDevotional, Glossary, BtIcons::icon_null, Images, BtIcons::instance(), Lexicons, and UnknownCategory.
Referenced by BookshelfModel::CategoryItem::data(), and moduleIcon().
|
static |
Returns a translated name for the given category.
[in] | module | The category whose translated name to return. |
Definition at line 1085 of file cswordmoduleinfo.cpp.
References Bibles, Books, category(), Commentaries, Cult, DailyDevotional, Glossary, Images, and Lexicons.
Referenced by BookshelfModel::CategoryItem::data().
QString CSwordModuleInfo::config | ( | const CSwordModuleInfo::ConfigEntry | entry | ) | const |
Returns the config entry which is pecified by the parameter.
Definition at line 736 of file cswordmoduleinfo.cpp.
References AboutInformation, AbsoluteDataPath, btConfig(), CipherKey, CopyrightContactAddress, CopyrightContactEmail, CopyrightContactName, CopyrightDate, CopyrightHolder, CopyrightNotes, DataPath, Description, DisplayLevel, DistributionLicense, DistributionNotes, DistributionSource, GenericBook, getFormattedConfigEntry(), BtConfig::getModuleEncryptionKey(), getSimpleConfigEntry(), Glossary, GlossaryFrom, GlossaryTo, Lexicon, m_cachedCategory, m_cachedName, m_swordModule, m_type, Markup, MinimumSwordVersion, ModuleVersion, TextDir, and TextSource.
Referenced by aboutText(), buildIndex(), BtBookshelfModel::data(), CSwordLexiconModuleInfo::entries(), anonymous_namespace{btbookshelfworkspage.cpp}::filter(), hasIndex(), isEncrypted(), minimumSwordVersion(), BibleTime::moduleUnlock(), BtInstallThread::removeModule(), InfoDisplay::CInfoDisplay::setInfo(), and textDirection().
|
pure virtual |
void CSwordModuleInfo::deleteEntry | ( | CSwordKey *const | key | ) |
Deletes the current entry and removes it from the module.
Definition at line 903 of file cswordmoduleinfo.cpp.
References BT_ASSERT, isUnicode(), CSwordKey::key(), and m_swordModule.
void CSwordModuleInfo::deleteIndex | ( | ) |
Removes the search index for this module (rm -rf).
Definition at line 651 of file cswordmoduleinfo.cpp.
References deleteIndexForModule(), hasIndexChanged(), and m_cachedName.
Referenced by buildIndex().
|
static |
Removes search index for a module, even if the module is not there any more.
[in] | name | name of the module. |
Definition at line 656 of file cswordmoduleinfo.cpp.
References getGlobalBaseIndexLocation(), and name().
Referenced by deleteIndex(), and CSwordBackend::deleteOrphanedIndices().
|
protected |
Definition at line 1115 of file cswordmoduleinfo.cpp.
References CSwordBackend::instance(), isUnicode(), m_swordModule, and name().
Referenced by config().
|
static |
Returns the base directory for search indices
Definition at line 338 of file cswordmoduleinfo.cpp.
References util::directory::getUserIndexDir().
Referenced by buildIndex(), deleteIndexForModule(), CSwordBackend::deleteOrphanedIndices(), and getModuleBaseIndexLocation().
QString CSwordModuleInfo::getModuleBaseIndexLocation | ( | ) | const |
Definition at line 342 of file cswordmoduleinfo.cpp.
References getGlobalBaseIndexLocation(), and m_cachedName.
Referenced by buildIndex(), getModuleStandardIndexLocation(), hasIndex(), and indexSize().
QString CSwordModuleInfo::getModuleStandardIndexLocation | ( | ) | const |
Definition at line 347 of file cswordmoduleinfo.cpp.
References getModuleBaseIndexLocation().
Referenced by buildIndex(), hasIndex(), and searchIndexed().
|
protected |
Definition at line 1108 of file cswordmoduleinfo.cpp.
References isUnicode(), m_swordModule, and name().
Referenced by config().
QString CSwordModuleInfo::getUnlockInfo | ( | ) |
Gets the "UnlockInfo" tag value from the module's config file
Definition at line 334 of file cswordmoduleinfo.cpp.
References m_swordModule.
Referenced by BibleTime::moduleUnlock().
|
inline |
Definition at line 328 of file cswordmoduleinfo.h.
References m_cachedGlossaryTargetLanguage.
|
inlinenoexcept |
Definition at line 299 of file cswordmoduleinfo.h.
References m_cachedFeatures.
Referenced by aboutText(), and hasImportantFilterOption().
bool CSwordModuleInfo::has | ( | CSwordModuleInfo::FilterOption const & | option | ) | const |
Definition at line 859 of file cswordmoduleinfo.cpp.
References CSwordModuleInfo::FilterOption::configOptionName, and m_swordModule.
|
protected |
Definition at line 385 of file cswordmoduleinfo.cpp.
References Bible, footnotes, has(), headings, m_type, morphTags, and strongNumbers.
Referenced by buildIndex().
bool CSwordModuleInfo::hasIndex | ( | ) | const |
Definition at line 352 of file cswordmoduleinfo.cpp.
References config(), getModuleBaseIndexLocation(), getModuleStandardIndexLocation(), INDEX_VERSION, m_cachedHasVersion, m_cachedName, and ModuleVersion.
Referenced by BtBookshelfModel::data(), and BookshelfModel::IndexingItem::fitFor().
|
signal |
Referenced by BtBookshelfModel::addModule(), buildIndex(), deleteIndex(), and BtBookshelfModel::removeModule().
|
inline |
true | if this module has a version number |
false | if it doesn't have a version number |
Definition at line 235 of file cswordmoduleinfo.h.
References m_cachedHasVersion.
|
signal |
Referenced by BtBookshelfModel::addModule(), BtBookshelfModel::removeModule(), and setHidden().
|
signal |
Referenced by BtModuleIndexDialog::indexAllModulesPrivate().
|
signal |
Referenced by buildIndex(), and BtModuleIndexDialog::indexAllModulesPrivate().
qint64 CSwordModuleInfo::indexSize | ( | ) | const |
Definition at line 661 of file cswordmoduleinfo.cpp.
References util::directory::getDirSizeRecursive(), and getModuleBaseIndexLocation().
Referenced by BtBookshelfModel::data().
bool CSwordModuleInfo::isEncrypted | ( | ) | const |
This function does return true if the data files of the module are encrypted by the module author (the on who made the module) no matter if it's locked or not.
If we have the CipherKey entry the module is encrypted but not necessarily locked
Definition at line 292 of file cswordmoduleinfo.cpp.
References config(), CSwordBackend::getConfig(), m_backend, and m_cachedName.
Referenced by aboutText(), isLocked(), and unlock().
|
inline |
Returns true if this module is hidden (not to be shown with other modules in certain views).
Definition at line 339 of file cswordmoduleinfo.h.
References m_hidden.
Referenced by BtBookshelfModel::data().
bool CSwordModuleInfo::isLocked | ( | ) | const |
This function returns true if this module is locked (encrypted + correct cipher key), otherwise return false.
Definition at line 285 of file cswordmoduleinfo.cpp.
References isEncrypted(), and unlockKeyIsValid().
Referenced by util::tool::getIconForModule(), BtBookshelfDockWidget::initMenus(), moduleIcon(), and BibleTime::moduleUnlock().
|
noexcept |
Returns true if this module is Unicode encoded. False if the charset is iso8859-1. Protected because it should not be used outside of the CSword*ModuleInfo classes.
Definition at line 1025 of file cswordmoduleinfo.cpp.
References m_swordModule.
Referenced by deleteEntry(), CSwordLexiconModuleInfo::entries(), getFormattedConfigEntry(), CSwordTreeKey::getLocalNameUnicode(), getSimpleConfigEntry(), CSwordLDKey::key(), CSwordTreeKey::key(), CSwordTreeKey::setKey(), CSwordLDKey::setKey(), unlockKeyIsValid(), and write().
|
inlinevirtual |
Reimplemented in CSwordCommentaryModuleInfo.
Definition at line 334 of file cswordmoduleinfo.h.
Referenced by aboutText(), and BtModuleTextModel::verseData().
|
inline |
Definition at line 324 of file cswordmoduleinfo.h.
References m_cachedLanguage.
Referenced by anonymous_namespace{btinforendering.cpp}::decodeCrossReference(), anonymous_namespace{btinforendering.cpp}::decodeMorph(), anonymous_namespace{btinforendering.cpp}::decodeStrongs(), anonymous_namespace{btbookshelfworkspage.cpp}::filter(), Rendering::CTextRendering::finishText(), BookshelfModel::LanguageItem::fitFor(), InfoDisplay::CInfoDisplay::setBrowserFont(), and Search::BtSearchResultArea::setBrowserFont().
sword::SWVersion CSwordModuleInfo::minimumSwordVersion | ( | ) | const |
Returns the required Sword version for this module. Returns -1 if no special Sword version is required.
Definition at line 731 of file cswordmoduleinfo.cpp.
References config(), and MinimumSwordVersion.
Referenced by CSwordModuleInfo().
|
inline |
Returns an icon for this module.
Definition at line 367 of file cswordmoduleinfo.h.
Referenced by BtBookshelfModel::data(), BtModuleChooserButton::moduleChosen(), CBibleReadWindow::newDisplayWidgetPopupMenu(), CDisplayWindow::slotAddModule(), CDisplayWindow::slotReplaceModule(), BtModuleChooserButton::updateMenu(), and BtTextWindowHeaderWidget::updateWidget().
|
static |
Returns an icon for the given module.
[in] | module | The module whose icon to return. |
Definition at line 1028 of file cswordmoduleinfo.cpp.
References Bibles, Books, categoryIcon(), Commentaries, Cult, DailyDevotional, Glossary, Images, isLocked(), Lexicons, m_cachedCategory, and UnknownCategory.
|
inline |
Definition at line 288 of file cswordmoduleinfo.h.
References m_cachedName.
Referenced by BtBookshelfModel::data(), deleteIndexForModule(), CBookmarkIndex::dragObject(), ReferenceManager::encodeHyperlink(), CSwordLexiconModuleInfo::entries(), Rendering::CDisplayRendering::entryLink(), anonymous_namespace{btbookshelfworkspage.cpp}::filter(), getFormattedConfigEntry(), BtBookshelfModel::getModule(), getSimpleConfigEntry(), BtBookshelfDockWidget::initMenus(), BtInstallThread::installModule(), Search::CSearchResultView::mimeData(), BibleTime::moduleUnlock(), BtInstallThread::removeModule(), Filters::TeiToHtml::renderReference(), Filters::TeiToHtml::renderTargetReference(), BTAboutModuleDialog::retranslateUi(), BtConfig::setDefaultSwordModuleByType(), InfoDisplay::CInfoDisplay::setInfo(), CDisplayWindow::slotAddModule(), CDisplayWindow::slotReplaceModule(), BtModelViewReadDisplay::text(), BtModuleChooserButton::updateMenu(), and BtTextWindowHeaderWidget::updateWidget().
|
delete |
|
delete |
CSwordModuleSearch::ModuleResultList CSwordModuleInfo::searchIndexed | ( | QString const & | searchedText, |
sword::ListKey const & | scope | ||
) | const |
This function uses CLucene to perform and index based search.
on | error |
Definition at line 667 of file cswordmoduleinfo.cpp.
References BT_ASSERT, BT_MAX_LUCENE_FIELD_LENGTH, createKey(), getModuleStandardIndexLocation(), lucene_utf8towcs(), lucene_wcstoutf8(), and m_swordModule.
bool CSwordModuleInfo::setHidden | ( | bool | hide | ) |
Shows or hides the module.
hide | Whether the module should be hidden. |
Definition at line 1142 of file cswordmoduleinfo.cpp.
References BT_ASSERT, btConfig(), hiddenChanged(), m_cachedName, m_hidden, and BtConfigCore::setValue().
|
inlineprotected |
Definition at line 396 of file cswordmoduleinfo.cpp.
References footnotes, headings, m_backend, morphTags, CSwordBackend::setOption(), and strongNumbers.
Referenced by buildIndex().
|
inlinevirtual |
Snaps to the closest entry in the module if the current key is not present in the data files.
Reimplemented in CSwordLexiconModuleInfo.
Definition at line 294 of file cswordmoduleinfo.h.
Referenced by CSwordKey::renderedText(), and CSwordLDKey::setKey().
|
inline |
Returns the module object so all objects can access the original Sword module.
Definition at line 192 of file cswordmoduleinfo.h.
References m_swordModule.
Referenced by CSwordBibleModuleInfo::bookNumber(), CSwordBibleModuleInfo::chapterCount(), CSwordBibleModuleInfo::createKey(), CSwordLexiconModuleInfo::createKey(), CSwordLexiconModuleInfo::entries(), CSwordCommentaryModuleInfo::isWritable(), CSwordVerseKey::next(), CSwordLDKey::NextEntry(), BtConfig::parseVerseListWithModules(), CSwordVerseKey::previous(), CSwordLDKey::PreviousEntry(), CSwordKey::rawText(), Rendering::CDisplayRendering::renderDisplayEntry(), CSwordKey::renderedText(), Filters::TeiToHtml::renderReference(), Filters::TeiToHtml::renderTargetReference(), CSwordLDKey::setKey(), CSwordVerseKey::setModule(), CSwordLexiconModuleInfo::snap(), CSwordKey::strippedText(), CSwordBookModuleInfo::tree(), Search::BtSearchResultArea::updatePreview(), and CSwordBibleModuleInfo::verseCount().
CSwordModuleInfo::TextDirection CSwordModuleInfo::textDirection | ( | ) | const |
Definition at line 884 of file cswordmoduleinfo.cpp.
References config(), LeftToRight, RightToLeft, and TextDir.
Referenced by Rendering::CTextRendering::finishText(), and textDirectionAsHtml().
char const * CSwordModuleInfo::textDirectionAsHtml | ( | ) | const |
Definition at line 890 of file cswordmoduleinfo.cpp.
References RightToLeft, and textDirection().
Referenced by anonymous_namespace{btinforendering.cpp}::decodeCrossReference().
|
inline |
Definition at line 275 of file cswordmoduleinfo.h.
References m_type.
Referenced by aboutText(), anonymous_namespace{btinforendering.cpp}::decodeCrossReference(), ReferenceManager::encodeHyperlink(), Rendering::CDisplayRendering::entryLink(), Rendering::CrossRefRendering::entryLink(), BtPrinter::entryLink(), BtQmlInterface::getCurrentModelIndex(), util::tool::getIconForModule(), BtModuleTextModel::isBible(), BtQmlInterface::isBibleOrCommentary(), BtModuleTextModel::isBook(), BtModuleTextModel::isCommentary(), BtModuleTextModel::isLexicon(), Rendering::CTextRendering::KeyTreeItem::KeyTreeItem(), BtModelViewReadDisplay::print(), Rendering::CDisplayRendering::renderDisplayEntry(), CSwordKey::renderedText(), BtCopyByReferencesDialog::resetThreshold(), CSwordLDKey::setModule(), CSwordTreeKey::setModule(), CSwordVerseKey::setModule(), BtModelViewReadDisplay::text(), and Search::BtSearchResultArea::updatePreview().
bool CSwordModuleInfo::unlock | ( | const QString & | unlockKey | ) |
Sets the unlock key of the modules and writes the key into the config file. @return True if the unlock process was succesful, if the key was
wrong, or if the config file was write protected return false.
Definition at line 262 of file cswordmoduleinfo.cpp.
References btConfig(), isEncrypted(), m_backend, m_cachedName, m_swordModule, CSwordBackend::raw(), BtConfig::setModuleEncryptionKey(), unlockedChanged(), and unlockKeyIsValid().
Referenced by BibleTime::moduleUnlock().
|
signal |
Referenced by BtBookshelfModel::addModule(), BtBookshelfModel::removeModule(), and unlock().
bool CSwordModuleInfo::unlockKeyIsValid | ( | ) | const |
This function makes an estimate if a module was properly unlocked. It returns true if the first entry of the module is not empty and contains only printable characters (for the first 100 chars or so). If that is the case, we can safely assume that a) the module was properly unlocked and b) no buffer overflows will occur, which can happen when Sword filters process garbage text which was not properly decrypted.
Definition at line 309 of file cswordmoduleinfo.cpp.
References isUnicode(), and m_swordModule.
Referenced by isLocked(), and unlock().
void CSwordModuleInfo::write | ( | CSwordKey * | key, |
const QString & | newText | ||
) |
Writes the new text at the given position into the module. This does only work for writabe modules.
Definition at line 893 of file cswordmoduleinfo.cpp.
References isUnicode(), CSwordKey::key(), and m_swordModule.
|
static |
Footnotes embedded in the module's text
Definition at line 67 of file cswordmoduleinfo.h.
Referenced by aboutText(), hasImportantFilterOption(), BtDisplaySettingsButton::repopulateMenu(), CSwordBackend::setFilterOptions(), and setImportantFilterOptions().
|
static |
Greek accents may be switched on and off
Definition at line 74 of file cswordmoduleinfo.h.
Referenced by aboutText(), BtDisplaySettingsButton::repopulateMenu(), and CSwordBackend::setFilterOptions().
|
static |
additional section headings
Definition at line 69 of file cswordmoduleinfo.h.
Referenced by aboutText(), hasImportantFilterOption(), BtDisplaySettingsButton::repopulateMenu(), CSwordBackend::setFilterOptions(), and setImportantFilterOptions().
|
static |
Hebrew cantillation points
Definition at line 73 of file cswordmoduleinfo.h.
Referenced by aboutText(), BtDisplaySettingsButton::repopulateMenu(), and CSwordBackend::setFilterOptions().
|
static |
Hebrew vowel points
Definition at line 72 of file cswordmoduleinfo.h.
Referenced by aboutText(), BtDisplaySettingsButton::repopulateMenu(), and CSwordBackend::setFilterOptions().
|
static |
lemma tags
Definition at line 71 of file cswordmoduleinfo.h.
Referenced by aboutText(), Filters::GbfToHtml::processText(), Filters::ThmlToHtml::processText(), and CSwordBackend::setFilterOptions().
|
private |
Definition at line 420 of file cswordmoduleinfo.h.
Referenced by backend(), buildIndex(), isEncrypted(), setImportantFilterOptions(), and unlock().
|
private |
Definition at line 428 of file cswordmoduleinfo.h.
Referenced by aboutText(), category(), config(), and moduleIcon().
|
private |
Definition at line 427 of file cswordmoduleinfo.h.
Referenced by has().
|
private |
Definition at line 430 of file cswordmoduleinfo.h.
Referenced by glossaryTargetlanguage().
|
private |
Definition at line 431 of file cswordmoduleinfo.h.
Referenced by aboutText(), buildIndex(), CSwordModuleInfo(), hasIndex(), and hasVersion().
|
private |
Definition at line 429 of file cswordmoduleinfo.h.
Referenced by aboutText(), and language().
|
private |
Definition at line 426 of file cswordmoduleinfo.h.
Referenced by config(), CSwordModuleInfo(), deleteIndex(), getModuleBaseIndexLocation(), hasIndex(), isEncrypted(), name(), setHidden(), and unlock().
|
private |
Definition at line 423 of file cswordmoduleinfo.h.
Referenced by buildIndex(), and cancelIndexing().
|
private |
Definition at line 422 of file cswordmoduleinfo.h.
Referenced by CSwordModuleInfo(), isHidden(), and setHidden().
|
private |
Definition at line 419 of file cswordmoduleinfo.h.
Referenced by aboutText(), buildIndex(), config(), deleteEntry(), getFormattedConfigEntry(), getSimpleConfigEntry(), getUnlockInfo(), has(), isUnicode(), searchIndexed(), swordModule(), unlock(), unlockKeyIsValid(), and write().
|
private |
Definition at line 421 of file cswordmoduleinfo.h.
Referenced by buildIndex(), config(), hasImportantFilterOption(), and type().
|
static |
morph word segmentation, supported by OSIS
Definition at line 78 of file cswordmoduleinfo.h.
Referenced by aboutText(), buildIndex(), BtDisplaySettingsButton::repopulateMenu(), and CSwordBackend::setFilterOptions().
|
static |
morphology
Definition at line 70 of file cswordmoduleinfo.h.
Referenced by aboutText(), hasImportantFilterOption(), Filters::GbfToHtml::processText(), CSwordBackend::setFilterOptions(), and setImportantFilterOptions().
|
static |
Jesus words in red, color is template specific
Definition at line 76 of file cswordmoduleinfo.h.
Referenced by aboutText(), buildIndex(), BtDisplaySettingsButton::repopulateMenu(), and CSwordBackend::setFilterOptions().
|
static |
scripture references may be switched on and off, just makes sense in Bibles
Definition at line 75 of file cswordmoduleinfo.h.
Referenced by aboutText(), buildIndex(), BtDisplaySettingsButton::repopulateMenu(), and CSwordBackend::setFilterOptions().
|
static |
strong numbers, usually in the text for the info display
Definition at line 68 of file cswordmoduleinfo.h.
Referenced by aboutText(), hasImportantFilterOption(), Filters::GbfToHtml::processText(), Filters::ThmlToHtml::processText(), CSwordBackend::setFilterOptions(), and setImportantFilterOptions().
|
static |
variants
Definition at line 77 of file cswordmoduleinfo.h.
Referenced by aboutText(), BtDisplaySettingsButton::repopulateMenu(), and CSwordBackend::setFilterOptions().