diff options
Diffstat (limited to 'bibletime/frontend/cmanageindiceswidget.cpp')
-rw-r--r-- | bibletime/frontend/cmanageindiceswidget.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/bibletime/frontend/cmanageindiceswidget.cpp b/bibletime/frontend/cmanageindiceswidget.cpp index 1b861b4..9928b49 100644 --- a/bibletime/frontend/cmanageindiceswidget.cpp +++ b/bibletime/frontend/cmanageindiceswidget.cpp @@ -23,14 +23,14 @@ #include "backend/cswordbackend.h" //Qt includes -#include <qlabel.h> -#include <qlayout.h> -#include <qframe.h> -#include <qpushbutton.h> -#include <qdir.h> -#include <qlistview.h> -#include <qfileinfo.h> -#include <qcheckbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqframe.h> +#include <tqpushbutton.h> +#include <tqdir.h> +#include <tqlistview.h> +#include <tqfileinfo.h> +#include <tqcheckbox.h> //KDE includes #include <klocale.h> @@ -40,7 +40,7 @@ namespace BookshelfManager { /** Constructor */ -CManageIndicesWidget::CManageIndicesWidget(QWidget* parent, const char* name) : +CManageIndicesWidget::CManageIndicesWidget(TQWidget* parent, const char* name) : ManageIndicesForm(parent, name) { initView(); @@ -57,8 +57,8 @@ CManageIndicesWidget::~CManageIndicesWidget() void CManageIndicesWidget::initView() { // Set description label - QVBoxLayout* box = new QVBoxLayout(m_labelFrame, 0, 0); - QLabel* mainLabel = CToolClass::explanationLabel(m_labelFrame, + TQVBoxLayout* box = new TQVBoxLayout(m_labelFrame, 0, 0); + TQLabel* mainLabel = CToolClass::explanationLabel(m_labelFrame, i18n("Manage module search indices"), i18n("You can use the list below to create and/or delete search indices for your installed works.")); box->addWidget(mainLabel); @@ -78,8 +78,8 @@ void CManageIndicesWidget::initView() m_deleteIndicesButton->setIconSet(SmallIcon("remove", 16)); // connect our signals/slots - connect(m_createIndicesButton, SIGNAL(clicked()), this, SLOT(createIndices())); - connect(m_deleteIndicesButton, SIGNAL(clicked()), this, SLOT(deleteIndices())); + connect(m_createIndicesButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(createIndices())); + connect(m_deleteIndicesButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteIndices())); } /** Populates the module list with installed modules and orphaned indices */ @@ -87,28 +87,28 @@ void CManageIndicesWidget::populateModuleList() { m_moduleList->clear(); // populate installed modules - m_modsWithIndices = new QCheckListItem(m_moduleList, i18n("Modules with indices"), - QCheckListItem::CheckBoxController); + m_modsWithIndices = new TQCheckListItem(m_moduleList, i18n("Modules with indices"), + TQCheckListItem::CheckBoxController); m_modsWithIndices->setOpen(true); - m_modsWithoutIndices = new QCheckListItem(m_moduleList, i18n("Modules without indices"), - QCheckListItem::CheckBoxController); + m_modsWithoutIndices = new TQCheckListItem(m_moduleList, i18n("Modules without indices"), + TQCheckListItem::CheckBoxController); m_modsWithoutIndices->setOpen(true); ListCSwordModuleInfo& modules = CPointers::backend()->moduleList(); ListCSwordModuleInfo::iterator end_it = modules.end(); for (ListCSwordModuleInfo::iterator it = modules.begin(); it != end_it; ++it) { - QCheckListItem* item = 0; + TQCheckListItem* item = 0; if ((*it)->hasIndex()) { - item = new QCheckListItem(m_modsWithIndices, (*it)->name(), - QCheckListItem::CheckBox); - item->setText(1, QString("%1 ").arg((*it)->indexSize() / 1024) + i18n("KiB")); + item = new TQCheckListItem(m_modsWithIndices, (*it)->name(), + TQCheckListItem::CheckBox); + item->setText(1, TQString("%1 ").arg((*it)->indexSize() / 1024) + i18n("KiB")); } else { - item = new QCheckListItem(m_modsWithoutIndices, (*it)->name(), - QCheckListItem::CheckBox); - item->setText(1, QString("0 ") + i18n("KiB")); + item = new TQCheckListItem(m_modsWithoutIndices, (*it)->name(), + TQCheckListItem::CheckBox); + item->setText(1, TQString("0 ") + i18n("KiB")); } } } @@ -116,9 +116,9 @@ void CManageIndicesWidget::populateModuleList() { /** Creates indices for selected modules if no index currently exists */ void CManageIndicesWidget::createIndices() { - QCheckListItem* top = m_modsWithoutIndices; + TQCheckListItem* top = m_modsWithoutIndices; bool indicesCreated = false; - QCheckListItem* item = (QCheckListItem*)top->firstChild(); + TQCheckListItem* item = (TQCheckListItem*)top->firstChild(); ListCSwordModuleInfo moduleList; while (item) { @@ -132,7 +132,7 @@ void CManageIndicesWidget::createIndices() indicesCreated = true; } } - item = (QCheckListItem*)item->nextSibling(); + item = (TQCheckListItem*)item->nextSibling(); } //Shows the progress dialog @@ -146,9 +146,9 @@ void CManageIndicesWidget::createIndices() void CManageIndicesWidget::deleteIndices() { // delete installed module indices - QCheckListItem* top = m_modsWithIndices; + TQCheckListItem* top = m_modsWithIndices; bool indicesDeleted = false; - QCheckListItem* item = (QCheckListItem*)top->firstChild(); + TQCheckListItem* item = (TQCheckListItem*)top->firstChild(); while (item) { if (item->isOn()) { CSwordModuleInfo* module = @@ -158,7 +158,7 @@ void CManageIndicesWidget::deleteIndices() indicesDeleted = true; } } - item = (QCheckListItem*)item->nextSibling(); + item = (TQCheckListItem*)item->nextSibling(); } // repopulate the list if an action was taken @@ -169,8 +169,8 @@ void CManageIndicesWidget::deleteIndices() void CManageIndicesWidget::deleteOrphanedIndices() { - QDir dir(CSwordModuleInfo::getGlobalBaseIndexLocation()); - dir.setFilter(QDir::Dirs); + TQDir dir(CSwordModuleInfo::getGlobalBaseIndexLocation()); + dir.setFilter(TQDir::Dirs); CSwordModuleInfo* module; for (unsigned int i = 0; i < dir.count(); i++) { |