summaryrefslogtreecommitdiff
path: root/src/frontend/bookshelfmanager/indexpage/btindexpage.cpp
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-10-21 22:48:27 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-10-21 22:48:27 -0400
commitdd2f7ce46df53f2c377c02d1bf4df8adcf092072 (patch)
tree51d4bd5d66a45a24784695c4e99b452b417dc3d1 /src/frontend/bookshelfmanager/indexpage/btindexpage.cpp
parentb954e6dbcceaba3b50aca624e1bddc6db4830829 (diff)
Imported Upstream version 2.3
Diffstat (limited to 'src/frontend/bookshelfmanager/indexpage/btindexpage.cpp')
-rw-r--r--src/frontend/bookshelfmanager/indexpage/btindexpage.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/frontend/bookshelfmanager/indexpage/btindexpage.cpp b/src/frontend/bookshelfmanager/indexpage/btindexpage.cpp
index 8b2b335..cad5a84 100644
--- a/src/frontend/bookshelfmanager/indexpage/btindexpage.cpp
+++ b/src/frontend/bookshelfmanager/indexpage/btindexpage.cpp
@@ -37,7 +37,7 @@ BtIndexPage::BtIndexPage()
QVBoxLayout *vboxLayout;
QHBoxLayout *hboxLayout;
vboxLayout = new QVBoxLayout(this);
-
+
m_autoDeleteOrphanedIndicesBox = new QCheckBox(this);
m_autoDeleteOrphanedIndicesBox->setToolTip(tr("If selected, those indexes which have no corresponding work will be deleted when BibleTime starts"));
m_autoDeleteOrphanedIndicesBox->setText(tr("Automatically delete orphaned indexes when BibleTime starts"));
@@ -106,15 +106,15 @@ QString BtIndexPage::header()
/** Populates the module list with installed modules and orphaned indices */
void BtIndexPage::populateModuleList() {
m_moduleList->clear();
-
+
// populate installed modules
m_modsWithIndices = new QTreeWidgetItem(m_moduleList);
- m_modsWithIndices->setText(0, tr("Works with indexes"));
+ m_modsWithIndices->setText(0, tr("Indexed Works"));
m_modsWithIndices->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled | Qt::ItemIsTristate);
m_modsWithIndices->setExpanded(true);
m_modsWithoutIndices = new QTreeWidgetItem(m_moduleList);
- m_modsWithoutIndices->setText(0, tr("Works without indexes"));
+ m_modsWithoutIndices->setText(0, tr("Unindexed Works"));
m_modsWithoutIndices->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled | Qt::ItemIsTristate);
m_modsWithoutIndices->setExpanded(true);
@@ -124,7 +124,7 @@ void BtIndexPage::populateModuleList() {
QList<CSwordModuleInfo*>::iterator end_it = modules.end();
for (QList<CSwordModuleInfo*>::iterator it = modules.begin(); it != end_it; ++it) {
QTreeWidgetItem* item = 0;
-
+
if ((*it)->hasIndex()) {
item = new QTreeWidgetItem(m_modsWithIndices);
item->setText(0, (*it)->name());
@@ -169,7 +169,7 @@ void BtIndexPage::createIndices()
void BtIndexPage::deleteIndices()
{
bool indicesDeleted = false;
-
+
for (int i = 0; i < m_modsWithIndices->childCount(); i++) {
if (m_modsWithIndices->child(i)->checkState(0) == Qt::Checked) {
CSwordModuleInfo* module = CPointers::backend()->findModuleByName(m_modsWithIndices->child(i)->text(0).toUtf8());
@@ -191,7 +191,7 @@ void BtIndexPage::deleteOrphanedIndices()
QDir dir(CSwordModuleInfo::getGlobalBaseIndexLocation());
dir.setFilter(QDir::Dirs);
CSwordModuleInfo* module;
-
+
for (unsigned int i = 0; i < dir.count(); i++) {
if (dir[i] != "." && dir[i] != "..") {
if ( (module = CPointers::backend()->findModuleByName(dir[i])) ) { //mod exists