|
|
@ -72,7 +72,7 @@ using namespace Profile;
|
|
|
|
|
|
|
|
|
|
|
|
/**Initializes the view of this widget*/
|
|
|
|
/**Initializes the view of this widget*/
|
|
|
|
void BibleTime::initView() {
|
|
|
|
void BibleTime::initView() {
|
|
|
|
KStartupLogo::setStatusMessage(i18n("Creating BibleTime's GUI") + TQString("..."));
|
|
|
|
TDEStartupLogo::setStatusMessage(i18n("Creating BibleTime's GUI") + TQString("..."));
|
|
|
|
|
|
|
|
|
|
|
|
m_mainSplitter = new TQSplitter(this, "mainsplitter");
|
|
|
|
m_mainSplitter = new TQSplitter(this, "mainsplitter");
|
|
|
|
m_mainSplitter->setChildrenCollapsible(false);
|
|
|
|
m_mainSplitter->setChildrenCollapsible(false);
|
|
|
@ -101,7 +101,7 @@ void BibleTime::initView() {
|
|
|
|
|
|
|
|
|
|
|
|
/** Initializes the action objects of the GUI */
|
|
|
|
/** Initializes the action objects of the GUI */
|
|
|
|
void BibleTime::initActions() {
|
|
|
|
void BibleTime::initActions() {
|
|
|
|
KStartupLogo::setStatusMessage(i18n("Initializing menu- and toolbars") + TQString("..."));
|
|
|
|
TDEStartupLogo::setStatusMessage(i18n("Initializing menu- and toolbars") + TQString("..."));
|
|
|
|
KAction* action = 0;
|
|
|
|
KAction* action = 0;
|
|
|
|
|
|
|
|
|
|
|
|
action = KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT( quit() ), actionCollection());
|
|
|
|
action = KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT( quit() ), actionCollection());
|
|
|
@ -518,7 +518,7 @@ void BibleTime::initConnections() {
|
|
|
|
|
|
|
|
|
|
|
|
/** Initializes the backend */
|
|
|
|
/** Initializes the backend */
|
|
|
|
void BibleTime::initBackends() {
|
|
|
|
void BibleTime::initBackends() {
|
|
|
|
KStartupLogo::setStatusMessage(i18n("Initializing Sword") + TQString("..."));
|
|
|
|
TDEStartupLogo::setStatusMessage(i18n("Initializing Sword") + TQString("..."));
|
|
|
|
|
|
|
|
|
|
|
|
StringMgr::setSystemStringMgr( new BTStringMgr() );
|
|
|
|
StringMgr::setSystemStringMgr( new BTStringMgr() );
|
|
|
|
SWLog::getSystemLog()->setLogLevel(1);
|
|
|
|
SWLog::getSystemLog()->setLogLevel(1);
|
|
|
@ -540,7 +540,7 @@ void BibleTime::initBackends() {
|
|
|
|
switch (errorCode) {
|
|
|
|
switch (errorCode) {
|
|
|
|
case CSwordBackend::NoSwordConfig: //mods.d or mods.conf missing
|
|
|
|
case CSwordBackend::NoSwordConfig: //mods.d or mods.conf missing
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KStartupLogo::hideSplash();
|
|
|
|
TDEStartupLogo::hideSplash();
|
|
|
|
BookshelfManager::CSwordSetupDialog dlg;
|
|
|
|
BookshelfManager::CSwordSetupDialog dlg;
|
|
|
|
dlg.showPart( BookshelfManager::CSwordSetupDialog::Sword );
|
|
|
|
dlg.showPart( BookshelfManager::CSwordSetupDialog::Sword );
|
|
|
|
dlg.exec();
|
|
|
|
dlg.exec();
|
|
|
@ -549,7 +549,7 @@ void BibleTime::initBackends() {
|
|
|
|
|
|
|
|
|
|
|
|
case CSwordBackend::NoModules: //no modules installed, but config exists
|
|
|
|
case CSwordBackend::NoModules: //no modules installed, but config exists
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KStartupLogo::hideSplash();
|
|
|
|
TDEStartupLogo::hideSplash();
|
|
|
|
BookshelfManager::CSwordSetupDialog dlg;
|
|
|
|
BookshelfManager::CSwordSetupDialog dlg;
|
|
|
|
dlg.showPart( BookshelfManager::CSwordSetupDialog::Install );
|
|
|
|
dlg.showPart( BookshelfManager::CSwordSetupDialog::Install );
|
|
|
|
dlg.exec();
|
|
|
|
dlg.exec();
|
|
|
@ -558,7 +558,7 @@ void BibleTime::initBackends() {
|
|
|
|
|
|
|
|
|
|
|
|
default: //unknown error
|
|
|
|
default: //unknown error
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KStartupLogo::hideSplash();
|
|
|
|
TDEStartupLogo::hideSplash();
|
|
|
|
BookshelfManager::CSwordSetupDialog dlg;
|
|
|
|
BookshelfManager::CSwordSetupDialog dlg;
|
|
|
|
dlg.showPart( BookshelfManager::CSwordSetupDialog::Sword );
|
|
|
|
dlg.showPart( BookshelfManager::CSwordSetupDialog::Sword );
|
|
|
|
dlg.exec();
|
|
|
|
dlg.exec();
|
|
|
@ -567,7 +567,7 @@ void BibleTime::initBackends() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KStartupLogo::setStatusMessage(i18n("Checking indices") + TQString("..."));
|
|
|
|
TDEStartupLogo::setStatusMessage(i18n("Checking indices") + TQString("..."));
|
|
|
|
//This function will
|
|
|
|
//This function will
|
|
|
|
// - delete all orphaned indexes (no module present) if autoDeleteOrphanedIndices is true
|
|
|
|
// - delete all orphaned indexes (no module present) if autoDeleteOrphanedIndices is true
|
|
|
|
// - delete all indices of modules where hasIndex() returns false
|
|
|
|
// - delete all indices of modules where hasIndex() returns false
|
|
|
|