diff options
Diffstat (limited to 'quanta/src/quanta.cpp')
-rw-r--r-- | quanta/src/quanta.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/quanta/src/quanta.cpp b/quanta/src/quanta.cpp index 82c81283..434bff2f 100644 --- a/quanta/src/quanta.cpp +++ b/quanta/src/quanta.cpp @@ -218,7 +218,7 @@ QuantaApp::QuantaApp(int mdiMode) : DCOPObject("WindowManagerIf"), KMdiMainFrm( connect(idleTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotIdleTimerExpired())); m_idleTimerEnabled = true; - qConfig.globalDataDir = KGlobal::dirs()->findResourceDir("data",resourceDir + "toolbar/quantalogo.png"); + qConfig.globalDataDir = TDEGlobal::dirs()->findResourceDir("data",resourceDir + "toolbar/quantalogo.png"); if (qConfig.globalDataDir.isEmpty()) { quantaStarted = false; @@ -316,7 +316,7 @@ QuantaApp::~QuantaApp() } m_toolbarList.clear(); - TQStringList tmpDirs = KGlobal::dirs()->resourceDirs("tmp"); + TQStringList tmpDirs = TDEGlobal::dirs()->resourceDirs("tmp"); tmpDir = tmpDirs[0]; for (uint i = 0; i < tmpDirs.count(); i++) { @@ -511,7 +511,7 @@ bool QuantaApp::slotFileSaveAs(QuantaView *viewToSave) "all/allfiles text/html text/xml application/x-php text/plain", this, i18n("Save File")); KURL saveUrl = data.URLs[0]; bool found; - TQString encoding = KGlobal::charsets()->codecForName(data.encoding, found)->name(); + TQString encoding = TDEGlobal::charsets()->codecForName(data.encoding, found)->name(); KTextEditor::EncodingInterface* encodingIf = dynamic_cast<KTextEditor::EncodingInterface*>(w->doc()); if (encodingIf && encodingIf->encoding() != encoding) encodingIf->setEncoding(encoding); @@ -1042,7 +1042,7 @@ void QuantaApp::slotConfigureToolbars(const TQString& defaultToolbar) TQDomNodeList nodeList; ToolbarEntry *p_toolbar = 0L; - saveMainWindowSettings(KGlobal::config(), autoSaveGroup()); + saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup()); KEditToolbar *dlg; if (!defaultToolbar.isEmpty()) dlg = new KEditToolbar(defaultToolbar, factory(), this); @@ -1129,7 +1129,7 @@ void QuantaApp::slotOptionsConfigureToolbars() void QuantaApp::slotNewToolbarConfig() { - applyMainWindowSettings(KGlobal::config(), autoSaveGroup()); + applyMainWindowSettings(TDEGlobal::config(), autoSaveGroup()); ToolbarTabWidget::ref()->setCurrentPage(currentPageIndex); } @@ -1191,7 +1191,7 @@ void QuantaApp::slotOptions() fileMasks->sbAutoSave->setValue(m_config->readNumEntry("Autosave interval")); //else default value 15 - TQStringList availableEncodingNames(KGlobal::charsets()->availableEncodingNames()); + TQStringList availableEncodingNames(TDEGlobal::charsets()->availableEncodingNames()); fileMasks->encodingCombo->insertStringList( availableEncodingNames ); TQStringList::ConstIterator iter; int iIndex = -1; @@ -1800,7 +1800,7 @@ TQWidget* QuantaApp::createContainer( TQWidget *parent, int index, const TQDomEl //kdDebug(24000) << "tb->iconSize() " << tb->iconSize() << endl; if (toolbarTab->iconText() == KToolBar::IconTextBottom) { - tb->setGeometry(0,0, toolbarTab->width(), tb->iconSize() + TQFontMetrics(KGlobalSettings::toolBarFont()).height() + 10); + tb->setGeometry(0,0, toolbarTab->width(), tb->iconSize() + TQFontMetrics(TDEGlobalSettings::toolBarFont()).height() + 10); toolbarTab->setFixedHeight(toolbarTab->tabHeight() + tb->height() + 3); } else { @@ -2884,7 +2884,7 @@ bool QuantaApp::removeToolbars() } } - TQFile f(KGlobal::instance()->dirs()->saveLocation("data")+resourceDir + "actions.rc" ); + TQFile f(TDEGlobal::instance()->dirs()->saveLocation("data")+resourceDir + "actions.rc" ); if (f.open( IO_ReadWrite | IO_Truncate )) { if (!m_actions->firstChild().firstChild().isNull()) @@ -3935,7 +3935,7 @@ void QuantaApp::slotAutosaveTimer() } /** Get script output */ -void QuantaApp::slotGetScriptOutput(KProcess* ,char* buf,int buflen) +void QuantaApp::slotGetScriptOutput(TDEProcess* ,char* buf,int buflen) { TQCString tmp( buf, buflen + 1 ); m_scriptOutput = TQString(); @@ -3943,14 +3943,14 @@ void QuantaApp::slotGetScriptOutput(KProcess* ,char* buf,int buflen) } /** Get script error*/ -void QuantaApp::slotGetScriptError(KProcess* ,char* buf,int buflen) +void QuantaApp::slotGetScriptError(TDEProcess* ,char* buf,int buflen) { //TODO: Implement some error handling? Q_UNUSED(buf); Q_UNUSED(buflen); } /** Notify when process exits*/ -void QuantaApp::slotProcessExited(KProcess* process) +void QuantaApp::slotProcessExited(TDEProcess* process) { slotProcessTimeout(); delete process; @@ -4767,10 +4767,10 @@ void QuantaApp::slotViewInKFM() } if ( !w->isUntitled() ) { - KProcess *show = new KProcess(TQT_TQOBJECT(this)); + TDEProcess *show = new TDEProcess(TQT_TQOBJECT(this)); KURL url = Project::ref()->urlWithPrefix(w->url()); *show << "kfmclient" << "newTab" << url.url(); - show->start( KProcess::DontCare ); + show->start( TDEProcess::DontCare ); } } @@ -4801,7 +4801,7 @@ void QuantaApp::slotViewInLynx() } if ( !w->isUntitled() ) { - KProcess *show = new KProcess(TQT_TQOBJECT(this)); + TDEProcess *show = new TDEProcess(TQT_TQOBJECT(this)); KURL url = Project::ref()->urlWithPrefix(w->url()); *show << "konsole" << "--nohist" @@ -4811,7 +4811,7 @@ void QuantaApp::slotViewInLynx() << "-e" << "lynx" << url.url(); - show->start( KProcess::DontCare ); + show->start( TDEProcess::DontCare ); } } |