diff options
author | Michele Calgaro <[email protected]> | 2025-01-21 22:05:54 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2025-01-21 22:05:54 +0900 |
commit | 8ff4fb7305dea750742ad6d7fd69746ad8cacfdb (patch) | |
tree | 6d41e7526bf5c341b72f8e6ca8c25ae85ee9c0da | |
parent | f836925f06ad3d0fa75346d24cab82ead0949196 (diff) | |
download | bibletime-master.tar.gz bibletime-master.zip |
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r-- | bibletime/bibletime.cpp | 12 | ||||
-rw-r--r-- | bibletime/bibletime_init.cpp | 2 | ||||
-rw-r--r-- | bibletime/bibletime_slots.cpp | 4 | ||||
-rw-r--r-- | bibletime/bibletimeapp.cpp | 2 | ||||
-rw-r--r-- | bibletime/frontend/cbtconfig.cpp | 6 | ||||
-rw-r--r-- | bibletime/frontend/cexportmanager.cpp | 4 | ||||
-rw-r--r-- | bibletime/frontend/cmdiarea.cpp | 2 | ||||
-rw-r--r-- | bibletime/frontend/cmoduleindexdialog.cpp | 4 | ||||
-rw-r--r-- | bibletime/frontend/cswordsetupdialog.cpp | 16 | ||||
-rw-r--r-- | bibletime/frontend/display/chtmlreaddisplay.cpp | 2 | ||||
-rw-r--r-- | bibletime/frontend/kstartuplogo.cpp | 2 | ||||
-rw-r--r-- | bibletime/frontend/searchdialog/csearchanalysis.cpp | 2 | ||||
-rw-r--r-- | bibletime/frontend/searchdialog/csearchdialogpages.cpp | 4 | ||||
-rw-r--r-- | bibletime/main.cpp | 2 | ||||
-rw-r--r-- | doc/en/howto/unicode/index.docbook | 2 | ||||
-rw-r--r-- | translations/howto.pot | 2 |
16 files changed, 34 insertions, 34 deletions
diff --git a/bibletime/bibletime.cpp b/bibletime/bibletime.cpp index 4c5b00d..5fa8112 100644 --- a/bibletime/bibletime.cpp +++ b/bibletime/bibletime.cpp @@ -186,7 +186,7 @@ void BibleTime::readSettings() { /** Creates a new presenter in the MDI area according to the type of the module. */ CDisplayWindow* BibleTime::createReadDisplayWindow(ListCSwordModuleInfo modules, const TQString& key) { - kapp->setOverrideCursor( waitCursor ); + tdeApp->setOverrideCursor( waitCursor ); CDisplayWindow* displayWindow = CDisplayWindow::createReadInstance(modules, m_mdi); if ( displayWindow ) { @@ -196,7 +196,7 @@ CDisplayWindow* BibleTime::createReadDisplayWindow(ListCSwordModuleInfo modules, displayWindow->lookup(key); } - kapp->restoreOverrideCursor(); + tdeApp->restoreOverrideCursor(); return displayWindow; } @@ -210,7 +210,7 @@ CDisplayWindow* BibleTime::createReadDisplayWindow(CSwordModuleInfo* module, con } CDisplayWindow* BibleTime::createWriteDisplayWindow(CSwordModuleInfo* module, const TQString& key, const CDisplayWindow::WriteWindowType& type) { - kapp->setOverrideCursor( waitCursor ); + tdeApp->setOverrideCursor( waitCursor ); ListCSwordModuleInfo modules; modules.append(module); @@ -222,7 +222,7 @@ CDisplayWindow* BibleTime::createWriteDisplayWindow(CSwordModuleInfo* module, co displayWindow->lookup(key); } - kapp->restoreOverrideCursor(); + tdeApp->restoreOverrideCursor(); return displayWindow; } @@ -277,12 +277,12 @@ void BibleTime::restoreWorkspace() { /** Sets the caption of the mainwindow */ void BibleTime::setCaption( const TQString& ) { - TDEMainWindow::setPlainCaption( TDEApplication::kApplication()->makeStdCaption( m_mdi->currentApplicationCaption() ) ); + TDEMainWindow::setPlainCaption( tdeApp->makeStdCaption( m_mdi->currentApplicationCaption() ) ); } /** Sets the plain caption of the main window */ void BibleTime::setPlainCaption( const TQString& ) { - TDEMainWindow::setPlainCaption( TDEApplication::kApplication()->makeStdCaption( m_mdi->currentApplicationCaption() ) ); + TDEMainWindow::setPlainCaption( tdeApp->makeStdCaption( m_mdi->currentApplicationCaption() ) ); } /** Processes the commandline options given to BibleTime. */ diff --git a/bibletime/bibletime_init.cpp b/bibletime/bibletime_init.cpp index c557671..3c4ae41 100644 --- a/bibletime/bibletime_init.cpp +++ b/bibletime/bibletime_init.cpp @@ -104,7 +104,7 @@ void BibleTime::initActions() { TDEStartupLogo::setStatusMessage(i18n("Initializing menu- and toolbars") + TQString("...")); TDEAction* action = 0; - action = KStdAction::quit(kapp, TQ_SLOT( quit() ), actionCollection()); + action = KStdAction::quit(tdeApp, TQ_SLOT( quit() ), actionCollection()); action->setToolTip( CResMgr::mainMenu::file::quit::tooltip ); #if TDE_VERSION_MINOR < 1 diff --git a/bibletime/bibletime_slots.cpp b/bibletime/bibletime_slots.cpp index c6f64f8..006ab72 100644 --- a/bibletime/bibletime_slots.cpp +++ b/bibletime/bibletime_slots.cpp @@ -385,11 +385,11 @@ void BibleTime::slotSearchDefaultBible() { } void BibleTime::openOnlineHelp_Handbook() { - kapp->invokeHelp("", "bibletime/handbook/"); + tdeApp->invokeHelp("", "bibletime/handbook/"); } void BibleTime::openOnlineHelp_Howto() { - kapp->invokeHelp("", "bibletime/howto/"); + tdeApp->invokeHelp("", "bibletime/howto/"); } /** Saves the current settings into the currently activatred profile. */ diff --git a/bibletime/bibletimeapp.cpp b/bibletime/bibletimeapp.cpp index 2fe0014..97649e0 100644 --- a/bibletime/bibletimeapp.cpp +++ b/bibletime/bibletimeapp.cpp @@ -40,7 +40,7 @@ void BibleTimeApp::initDCOP() { Q_ASSERT(dcopOk); if (dcopOk) { - const TQCString appId = dcopClient()->registerAs(kapp->name(), false); + const TQCString appId = dcopClient()->registerAs(tdeApp->name(), false); // dcopClient()->setDefaultObject("BibleTimeInterface"); } } diff --git a/bibletime/frontend/cbtconfig.cpp b/bibletime/frontend/cbtconfig.cpp index 682ef5c..db723d9 100644 --- a/bibletime/frontend/cbtconfig.cpp +++ b/bibletime/frontend/cbtconfig.cpp @@ -665,11 +665,11 @@ void CBTConfig::setModuleEncryptionKey( const TQString& module, const TQString& TDEConfig* const CBTConfig::getConfig() { TDEConfig* config = TDEGlobal::config(); - if (TDEApplication::kApplication()->sessionSaving()) { + if (tdeApp->sessionSaving()) { tqWarning("Using session config"); - // config = TDEApplication::kApplication()->sessionConfig(); + // config = tdeApp->sessionConfig(); } - else if (TDEApplication::kApplication()->isRestored()) { + else if (tdeApp->isRestored()) { tqWarning("isRestored(): Using session config"); } diff --git a/bibletime/frontend/cexportmanager.cpp b/bibletime/frontend/cexportmanager.cpp index 07171f8..b5c61a2 100644 --- a/bibletime/frontend/cexportmanager.cpp +++ b/bibletime/frontend/cexportmanager.cpp @@ -498,7 +498,7 @@ void CExportManager::setProgressRange( const int items ) { dlg->setMinimumDuration(0); dlg->show(); // dlg->repaint(); - TDEApplication::kApplication()->processEvents(); //do not lock the GUI! + tdeApp->processEvents(); //do not lock the GUI! } } @@ -539,5 +539,5 @@ void CExportManager::closeProgressDialog() { dlg->reset(); } - TDEApplication::kApplication()->processEvents(); //do not lock the GUI! + tdeApp->processEvents(); //do not lock the GUI! } diff --git a/bibletime/frontend/cmdiarea.cpp b/bibletime/frontend/cmdiarea.cpp index 51b181c..4a6472d 100644 --- a/bibletime/frontend/cmdiarea.cpp +++ b/bibletime/frontend/cmdiarea.cpp @@ -90,7 +90,7 @@ void CMDIArea::childEvent( TQChildEvent * e ) { if (!windowList().count()) { m_appCaption = TQString(); - emit sigSetToplevelCaption( TDEApplication::kApplication()->makeStdCaption(m_appCaption) ); + emit sigSetToplevelCaption( tdeApp->makeStdCaption(m_appCaption) ); emit sigLastPresenterClosed(); } diff --git a/bibletime/frontend/cmoduleindexdialog.cpp b/bibletime/frontend/cmoduleindexdialog.cpp index eb8470c..3368098 100644 --- a/bibletime/frontend/cmoduleindexdialog.cpp +++ b/bibletime/frontend/cmoduleindexdialog.cpp @@ -87,14 +87,14 @@ void CModuleIndexDialog::slotModuleProgress( int percentage ) { // tqDebug("progress %d", percentage); progress->progressBar()->setProgress( m_currentModuleIndex * 100 + percentage ); - TDEApplication::kApplication()->processEvents( 10 ); //10 ms only + tdeApp->processEvents( 10 ); //10 ms only } void CModuleIndexDialog::slotFinished( ) { tqDebug("indexing finished()"); progress->progressBar()->setProgress( progress->progressBar()->totalSteps() ); - TDEApplication::kApplication()->processEvents( 1 ); //1 ms only + tdeApp->processEvents( 1 ); //1 ms only } #include "cmoduleindexdialog.moc" diff --git a/bibletime/frontend/cswordsetupdialog.cpp b/bibletime/frontend/cswordsetupdialog.cpp index 56a76fa..93e937e 100644 --- a/bibletime/frontend/cswordsetupdialog.cpp +++ b/bibletime/frontend/cswordsetupdialog.cpp @@ -449,7 +449,7 @@ the module remote installation feature!</b>") void CSwordSetupDialog::populateRemoveModuleListView() { CSwordBackend myBackend; - TDEApplication::kApplication()->processEvents(); + tdeApp->processEvents(); myBackend.initModules(); m_removeModuleListView->clear(); @@ -487,7 +487,7 @@ the module remote installation feature!</b>") m_progressDialog->setMinimumDuration(0); //show immediately m_progressDialog->setAutoClose(false); m_progressDialog->show(); - TDEApplication::kApplication()->processEvents(); + tdeApp->processEvents(); connect( m_progressDialog, TQ_SIGNAL(cancelClicked()), @@ -527,7 +527,7 @@ the module remote installation feature!</b>") } bool CSwordSetupDialog::populateInstallModuleListView( const TQString& sourceName ) { - TDEApplication::kApplication()->processEvents(); + tdeApp->processEvents(); Q_ASSERT(m_installModuleListView); if (!m_installModuleListView) { // this may be an update after removing modules return false; @@ -561,7 +561,7 @@ the module remote installation feature!</b>") CSwordBackend* local_backend = CPointers::backend(); Q_ASSERT(local_backend); // tqWarning("local backend has path %s", local_backend->); - TDEApplication::kApplication()->processEvents(); + tdeApp->processEvents(); //local_backend.initModules(); // tqWarning("config path3 is %s", remote_backend->configPath); @@ -727,7 +727,7 @@ the module remote installation feature!</b>") m_progressDialog->setMinimumDuration(0); //show immediately m_progressDialog->setAutoClose(false); m_progressDialog->show(); - TDEApplication::kApplication()->processEvents(); + tdeApp->processEvents(); connect( m_progressDialog, TQ_SIGNAL(cancelClicked()), @@ -797,7 +797,7 @@ the module remote installation feature!</b>") m_progressDialog->progressBar()->setProgress(total+100*m_installedModuleCount); m_progressDialog->setLabel( i18n("[%1]: %2% complete").arg(m_installingModule).arg(total) ); } - TDEApplication::kApplication()->processEvents(); + tdeApp->processEvents(); } void CSwordSetupDialog::slot_showInstallSourcePage() { @@ -910,14 +910,14 @@ the module remote installation feature!</b>") if (m_currentInstallMgr) { m_currentInstallMgr->terminate(); } - TDEApplication::kApplication()->processEvents(); + tdeApp->processEvents(); } void CSwordSetupDialog::slot_moduleRefreshCompleted(const int /*total*/, const int current) { if (m_progressDialog) { m_progressDialog->progressBar()->setProgress(current); } - TDEApplication::kApplication()->processEvents(); + tdeApp->processEvents(); } } // NAMESPACE diff --git a/bibletime/frontend/display/chtmlreaddisplay.cpp b/bibletime/frontend/display/chtmlreaddisplay.cpp index 0162e34..dd1367d 100644 --- a/bibletime/frontend/display/chtmlreaddisplay.cpp +++ b/bibletime/frontend/display/chtmlreaddisplay.cpp @@ -240,7 +240,7 @@ void CHTMLReadDisplay::urlSelected( const TQString& url, int button, int state, moveToAnchor(url.mid(1)); } else if (url.left(7) == "http://") { //open the bowser configured by kdeb - TDEApplication::kApplication()->invokeBrowser( url ); //ToDo: Not yet tested + tdeApp->invokeBrowser( url ); //ToDo: Not yet tested } } diff --git a/bibletime/frontend/kstartuplogo.cpp b/bibletime/frontend/kstartuplogo.cpp index 9f9b819..e369630 100644 --- a/bibletime/frontend/kstartuplogo.cpp +++ b/bibletime/frontend/kstartuplogo.cpp @@ -95,7 +95,7 @@ TDEStartupLogo::TDEStartupLogo() void TDEStartupLogo::setText(const TQString text) { //Please not make the text bold & let the first character be blank textLabel->setText( TQString::fromLatin1(" %1").arg(text) ); - TDEApplication::kApplication()->processEvents(); + tdeApp->processEvents(); } /** Makes the splashscreen the toplevel window. */ diff --git a/bibletime/frontend/searchdialog/csearchanalysis.cpp b/bibletime/frontend/searchdialog/csearchanalysis.cpp index c1262db..e01289a 100644 --- a/bibletime/frontend/searchdialog/csearchanalysis.cpp +++ b/bibletime/frontend/searchdialog/csearchanalysis.cpp @@ -160,7 +160,7 @@ void CSearchAnalysis::analyse(ListCSwordModuleInfo modules) { moduleIndex = 0; ListCSwordModuleInfo::iterator end_it = m_moduleList.end(); for (ListCSwordModuleInfo::iterator it(m_moduleList.begin()); it != end_it; ++it) { - TDEApplication::kApplication()->processEvents( 10 ); //10 ms only + tdeApp->processEvents( 10 ); //10 ms only if (!m_lastPosList.contains(*it)) { m_lastPosList.insert(*it,0); } diff --git a/bibletime/frontend/searchdialog/csearchdialogpages.cpp b/bibletime/frontend/searchdialog/csearchdialogpages.cpp index c30aa5f..73cbfd6 100644 --- a/bibletime/frontend/searchdialog/csearchdialogpages.cpp +++ b/bibletime/frontend/searchdialog/csearchdialogpages.cpp @@ -73,7 +73,7 @@ void StrongsResultClass::initStrongsResults(void) { count = result.Count(); if (!count) return; - TDEApplication::kApplication()->processEvents( 1 ); //1 ms only + tdeApp->processEvents( 1 ); //1 ms only srList.clear(); // for whatever reason the text "Parsing...translations." does not appear. // this is not critical but the text is necessary to get the dialog box @@ -85,7 +85,7 @@ void StrongsResultClass::initStrongsResults(void) { progress->raise(); for (index = 0; index < count; index++){ progress->progressBar()->setProgress( int( (index*100) / count ) ); - TDEApplication::kApplication()->processEvents( 1 ); //1 ms only + tdeApp->processEvents( 1 ); //1 ms only key = TQString::fromUtf8(result.GetElement(index)->getText()); text = render.renderSingleKey(key, modules, settings); diff --git a/bibletime/main.cpp b/bibletime/main.cpp index 4703854..91a655d 100644 --- a/bibletime/main.cpp +++ b/bibletime/main.cpp @@ -245,7 +245,7 @@ int main(int argc, char* argv[]) { showDebugMessages = true; } - if (kapp->isRestored()) { + if (tdeApp->isRestored()) { // tqWarning("Restoring BibleTime"); //RESTORE( BibleTime ); int n = 1; diff --git a/doc/en/howto/unicode/index.docbook b/doc/en/howto/unicode/index.docbook index 2570dcc..627d84c 100644 --- a/doc/en/howto/unicode/index.docbook +++ b/doc/en/howto/unicode/index.docbook @@ -1,7 +1,7 @@ <?xml version="1.0" ?> <!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [ <!ENTITY bibletime '<application>BibleTime</application>'> - <!ENTITY kapp "&bibletimehandbook;"> + <!ENTITY tdeApp "&bibletimehandbook;"> <!ENTITY % addindex "IGNORE"> <!ENTITY % English "INCLUDE"><!-- change language only here --> diff --git a/translations/howto.pot b/translations/howto.pot index e21313f..ca8960b 100644 --- a/translations/howto.pot +++ b/translations/howto.pot @@ -21,7 +21,7 @@ msgstr "" msgid "<application>BibleTime</application>" msgstr "" -#. type: Content of the kapp entity +#. type: Content of the tdeApp entity #: index.docbook:4 msgid "&bibletimehandbook;" msgstr "" |