summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:45:52 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:45:52 -0600
commit6adb71382c3d5277c3dcbc4ec24c5ff36b4c07ef (patch)
tree44659d1cc0c37eb995e572bc1b979e75a74210fb
parente2385b701b464dc2259fcd5f3819c98f2c8c4438 (diff)
downloadtdegraphics-6adb71382c3d5277c3dcbc4ec24c5ff36b4c07ef.tar.gz
tdegraphics-6adb71382c3d5277c3dcbc4ec24c5ff36b4c07ef.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
-rw-r--r--kcoloredit/palette.cpp2
-rw-r--r--kdvi/dviFile.cpp2
-rw-r--r--kdvi/dviRenderer.cpp12
-rw-r--r--kdvi/dviRenderer.h8
-rw-r--r--kdvi/dviRenderer_export.cpp32
-rw-r--r--kdvi/dviRenderer_prescan.cpp2
-rw-r--r--kdvi/fontEncoding.cpp2
-rw-r--r--kdvi/fontMap.cpp4
-rw-r--r--kdvi/fontpool.cpp8
-rw-r--r--kdvi/fontpool.h4
-rw-r--r--kdvi/psgs.cpp4
-rw-r--r--kfaxview/libkfaximage/kfaximage.cpp2
-rw-r--r--kgamma/kcmkgamma/kgamma.cpp2
-rw-r--r--kgamma/kcmkgamma/kgamma.h4
-rw-r--r--kghostview/kgv_view.cpp10
-rw-r--r--kghostview/kgvconfigdialog.cpp2
-rw-r--r--kghostview/kgvdocument.cpp20
-rw-r--r--kghostview/kgvdocument.h2
-rw-r--r--kghostview/kgvshell.cpp22
-rw-r--r--kghostview/kpswidget.cpp28
-rw-r--r--kghostview/kpswidget.h10
-rw-r--r--kghostview/logwindow.cpp2
-rw-r--r--kiconedit/kiconconfig.cpp2
-rw-r--r--kiconedit/knew.cpp2
-rw-r--r--kmrml/kmrml/kcontrol/indexcleaner.cpp10
-rw-r--r--kmrml/kmrml/kcontrol/indexcleaner.h6
-rw-r--r--kmrml/kmrml/kcontrol/indexer.cpp12
-rw-r--r--kmrml/kmrml/kcontrol/indexer.h4
-rw-r--r--kmrml/kmrml/kcontrol/indextest.cpp2
-rw-r--r--kmrml/kmrml/kcontrol/kcmkmrml.cpp4
-rw-r--r--kmrml/kmrml/kcontrol/mainpage.cpp2
-rw-r--r--kmrml/kmrml/lib/kmrml_config.cpp4
-rw-r--r--kmrml/kmrml/mrml.cpp4
-rw-r--r--kmrml/kmrml/mrml_part.cpp2
-rw-r--r--kmrml/kmrml/mrml_view.cpp4
-rw-r--r--kmrml/kmrml/server/watcher.cpp18
-rw-r--r--kmrml/kmrml/server/watcher.h6
-rw-r--r--kolourpaint/kpdocumentsaveoptions.cpp2
-rw-r--r--kolourpaint/kpdocumentsaveoptionswidget.cpp8
-rw-r--r--kolourpaint/kpmainwindow_file.cpp2
-rw-r--r--kolourpaint/kpmainwindow_help.cpp2
-rw-r--r--kolourpaint/pixmapfx/kpeffectflatten.cpp4
-rw-r--r--kolourpaint/pixmapfx/kppixmapfx.cpp2
-rw-r--r--kolourpaint/tools/kptoolresizescale.cpp2
-rw-r--r--kolourpaint/widgets/kptooltoolbar.cpp4
-rw-r--r--kooka/img_saver.cpp10
-rw-r--r--kooka/kocrbase.cpp4
-rw-r--r--kooka/kocrgocr.cpp4
-rw-r--r--kooka/kocrkadmos.cpp6
-rw-r--r--kooka/kocrocrad.cpp14
-rw-r--r--kooka/kocrocrad.h6
-rw-r--r--kooka/kooka.cpp8
-rw-r--r--kooka/kookapref.cpp4
-rw-r--r--kooka/kookaview.cpp8
-rw-r--r--kooka/ksaneocr.cpp48
-rw-r--r--kooka/ksaneocr.h16
-rw-r--r--kooka/main.cpp4
-rw-r--r--kooka/scanpackager.cpp6
-rw-r--r--kooka/thumbview.cpp4
-rw-r--r--kpdf/core/generator_pdf/generator_pdf.cpp2
-rw-r--r--kpdf/part.cpp6
-rw-r--r--kpdf/shell/shell.cpp18
-rw-r--r--kpdf/ui/pageview.cpp6
-rw-r--r--kpdf/ui/presentationwidget.cpp2
-rw-r--r--kpdf/ui/propertiesdialog.cpp2
-rw-r--r--kpovmodeler/pmcommentedit.cpp2
-rw-r--r--kpovmodeler/pmdialogview.cpp2
-rw-r--r--kpovmodeler/pmdockwidget.cpp6
-rw-r--r--kpovmodeler/pmlibrarymanager.cpp2
-rw-r--r--kpovmodeler/pmpart.h4
-rw-r--r--kpovmodeler/pmpovrayoutputwidget.cpp2
-rw-r--r--kpovmodeler/pmpovrayrenderwidget.cpp24
-rw-r--r--kpovmodeler/pmpovrayrenderwidget.h12
-rw-r--r--kpovmodeler/pmpovraywidget.cpp2
-rw-r--r--kpovmodeler/pmrawedit.cpp2
-rw-r--r--kpovmodeler/pmshell.cpp10
-rw-r--r--kpovmodeler/pmtreeview.cpp4
-rw-r--r--kruler/klineal.cpp12
-rw-r--r--ksnapshot/ksnapshot.cpp6
-rw-r--r--ksnapshot/ksnapshot.h2
-rw-r--r--ksnapshot/regiongrabber.cpp2
-rw-r--r--ksvg/impl/SVGTestsImpl.cc2
-rw-r--r--ksvg/plugin/ksvg_factory.cpp2
-rw-r--r--kuickshow/src/filecache.cpp2
-rw-r--r--kuickshow/src/filefinder.cpp8
-rw-r--r--kuickshow/src/filewidget.cpp12
-rw-r--r--kuickshow/src/imagewindow.cpp10
-rw-r--r--kuickshow/src/kuickconfigdlg.cpp2
-rw-r--r--kuickshow/src/kuickdata.cpp4
-rw-r--r--kuickshow/src/kuickshow.cpp8
-rw-r--r--kuickshow/src/printing.cpp2
-rw-r--r--kview/config/kviewconfmodules.cpp6
-rw-r--r--kview/kview.cpp26
-rw-r--r--kview/kviewviewer/kviewkonqextension.cpp2
-rw-r--r--kview/kviewviewer/kviewviewer.cpp2
-rw-r--r--kview/modules/presenter/kviewpresenter.cpp2
-rw-r--r--kview/modules/scale/kfloatspinbox.cpp4
-rw-r--r--kviewshell/documentWidget.cpp4
-rw-r--r--kviewshell/kviewpart.cpp4
-rw-r--r--kviewshell/kviewshell.cpp4
-rw-r--r--kviewshell/marklist.cpp8
-rw-r--r--kviewshell/pageSize.cpp6
-rw-r--r--kviewshell/searchWidget.cpp6
-rw-r--r--libkscan/devselector.cpp8
-rw-r--r--libkscan/kscandevice.cpp4
-rw-r--r--libkscan/kscanslider.cpp2
-rw-r--r--libkscan/previewer.cpp4
-rw-r--r--libkscan/scandialog.cpp16
108 files changed, 362 insertions, 362 deletions
diff --git a/kcoloredit/palette.cpp b/kcoloredit/palette.cpp
index 42758b41..0c0a0747 100644
--- a/kcoloredit/palette.cpp
+++ b/kcoloredit/palette.cpp
@@ -47,7 +47,7 @@ void Palette::init() {
TQStringList Palette::kdePalettes() {
TQStringList paletteList;
- KGlobal::dirs()->findAllResources("config", palettesDir + "/*", false, true, paletteList);
+ TDEGlobal::dirs()->findAllResources("config", palettesDir + "/*", false, true, paletteList);
return paletteList;
}
diff --git a/kdvi/dviFile.cpp b/kdvi/dviFile.cpp
index 7fb2bef7..1b508367 100644
--- a/kdvi/dviFile.cpp
+++ b/kdvi/dviFile.cpp
@@ -377,7 +377,7 @@ TQString dvifile::convertPDFtoPS(const TQString &PDFFilename)
// Use pdf2ps to do the conversion
KProcIO proc;
proc << "pdf2ps" << PDFFilename << convertedFileName;
- if (proc.start(KProcess::Block) == false)
+ if (proc.start(TDEProcess::Block) == false)
convertedFileName = TQString(); // Indicates that conversion failed, won't try again.
if (!TQFile::exists(convertedFileName))
convertedFileName = TQString(); // Indicates that conversion failed, won't try again.
diff --git a/kdvi/dviRenderer.cpp b/kdvi/dviRenderer.cpp
index 8700c8a2..dfa4c678 100644
--- a/kdvi/dviRenderer.cpp
+++ b/kdvi/dviRenderer.cpp
@@ -767,8 +767,8 @@ void dviRenderer::handleSRCLink(const TQString &linkText, TQMouseEvent *e, Docum
// henceforth dimiss the output of the older programm. "If it
// hasn't failed until now, we don't care."
if (proc != 0) {
- tqApp->disconnect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), 0, 0);
- tqApp->disconnect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), 0, 0);
+ tqApp->disconnect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), 0, 0);
+ tqApp->disconnect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), 0, 0);
proc = 0;
}
@@ -778,9 +778,9 @@ void dviRenderer::handleSRCLink(const TQString &linkText, TQMouseEvent *e, Docum
kdError(4300) << "Could not allocate ShellProcess for the editor command." << endl;
return;
}
- tqApp->connect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(KProcess *, char *, int)));
- tqApp->connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(KProcess *, char *, int)));
- tqApp->connect(proc, TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(editorCommand_terminated(KProcess *)));
+ tqApp->connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
+ tqApp->connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
+ tqApp->connect(proc, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(editorCommand_terminated(TDEProcess *)));
// Merge the editor-specific editor message here.
export_errorString = i18n("<qt>The external program<br><br><tt><strong>%1</strong></tt><br/><br/>which was used to call the editor "
"for inverse search, reported an error. You might wish to look at the <strong>document info "
@@ -797,7 +797,7 @@ void dviRenderer::handleSRCLink(const TQString &linkText, TQMouseEvent *e, Docum
proc->clearArguments();
*proc << command;
proc->closeStdin();
- if (proc->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false) {
+ if (proc->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput) == false) {
kdError(4300) << "Editor failed to start" << endl;
return;
}
diff --git a/kdvi/dviRenderer.h b/kdvi/dviRenderer.h
index 355b0530..38d4d897 100644
--- a/kdvi/dviRenderer.h
+++ b/kdvi/dviRenderer.h
@@ -30,7 +30,7 @@ class infoDialog;
class KAction;
class KDVIMultiPage;
class KPrinter;
-class KProcess;
+class TDEProcess;
class KProgressDialog;
class KShellProcess;
class PreBookmark;
@@ -145,9 +145,9 @@ public slots:
virtual void getText(RenderedDocumentPage* page);
/** Slots used in conjunction with external programs */
- void dvips_output_receiver(KProcess *, char *buffer, int buflen);
- void dvips_terminated(KProcess *);
- void editorCommand_terminated(KProcess *);
+ void dvips_output_receiver(TDEProcess *, char *buffer, int buflen);
+ void dvips_terminated(TDEProcess *);
+ void editorCommand_terminated(TDEProcess *);
signals:
/** Passed through to the top-level kpart. */
diff --git a/kdvi/dviRenderer_export.cpp b/kdvi/dviRenderer_export.cpp
index 2b4ffd65..9fd0809e 100644
--- a/kdvi/dviRenderer_export.cpp
+++ b/kdvi/dviRenderer_export.cpp
@@ -61,8 +61,8 @@ void dviRenderer::exportPDF()
// has been called meanwhile. See also the exportPS method.
if (proc != 0) {
// Make sure all further output of the programm is ignored
- tqApp->disconnect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), 0, 0);
- tqApp->disconnect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), 0, 0);
+ tqApp->disconnect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), 0, 0);
+ tqApp->disconnect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), 0, 0);
proc = 0;
}
@@ -130,9 +130,9 @@ void dviRenderer::exportPDF()
}
tqApp->disconnect( this, TQT_SIGNAL(mySignal()), 0, 0 );
- tqApp->connect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(KProcess *, char *, int)));
- tqApp->connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(KProcess *, char *, int)));
- tqApp->connect(proc, TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(dvips_terminated(KProcess *)));
+ tqApp->connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
+ tqApp->connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
+ tqApp->connect(proc, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(dvips_terminated(TDEProcess *)));
export_errorString = i18n("<qt>The external program 'dvipdf', which was used to export the file, reported an error. "
"You might wish to look at the <strong>document info dialog</strong> which you will "
@@ -145,7 +145,7 @@ void dviRenderer::exportPDF()
*proc << TQString("-o %1").arg(KShellProcess::quote(fileName));
*proc << KShellProcess::quote(dviFile->filename);
proc->closeStdin();
- if (proc->start(KProcess::NotifyOnExit, KProcess::AllOutput) == false) {
+ if (proc->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput) == false) {
kdError(4300) << "dvipdfm failed to start" << endl;
return;
}
@@ -167,8 +167,8 @@ void dviRenderer::exportPS(const TQString& fname, const TQString& options, KPrin
// enough to ignore the exit status of the editor if another command
// has been called meanwhile. See also the exportPDF method.
if (proc != 0) {
- tqApp->disconnect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), 0, 0);
- tqApp->disconnect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), 0, 0);
+ tqApp->disconnect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), 0, 0);
+ tqApp->disconnect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), 0, 0);
proc = 0;
}
@@ -294,9 +294,9 @@ void dviRenderer::exportPS(const TQString& fname, const TQString& options, KPrin
return;
}
- tqApp->connect(proc, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(KProcess *, char *, int)));
- tqApp->connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(KProcess *, char *, int)));
- tqApp->connect(proc, TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(dvips_terminated(KProcess *)));
+ tqApp->connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
+ tqApp->connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQT_SLOT(dvips_output_receiver(TDEProcess *, char *, int)));
+ tqApp->connect(proc, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(dvips_terminated(TDEProcess *)));
export_errorString = i18n("<qt>The external program 'dvips', which was used to export the file, reported an error. "
"You might wish to look at the <strong>document info dialog</strong> which you will "
"find in the File-Menu for a precise error report.</qt>") ;
@@ -312,7 +312,7 @@ void dviRenderer::exportPS(const TQString& fname, const TQString& options, KPrin
*proc << TQString("%1").arg(KShellProcess::quote(sourceFileName));
*proc << TQString("-o %1").arg(KShellProcess::quote(fileName));
proc->closeStdin();
- if (proc->start(KProcess::NotifyOnExit, KProcess::Stderr) == false) {
+ if (proc->start(TDEProcess::NotifyOnExit, TDEProcess::Stderr) == false) {
kdError(4300) << "dvips failed to start" << endl;
return;
}
@@ -320,7 +320,7 @@ void dviRenderer::exportPS(const TQString& fname, const TQString& options, KPrin
}
-void dviRenderer::dvips_output_receiver(KProcess *, char *buffer, int buflen)
+void dviRenderer::dvips_output_receiver(TDEProcess *, char *buffer, int buflen)
{
// Paranoia.
if (buflen < 0)
@@ -333,7 +333,7 @@ void dviRenderer::dvips_output_receiver(KProcess *, char *buffer, int buflen)
}
-void dviRenderer::dvips_terminated(KProcess *sproc)
+void dviRenderer::dvips_terminated(TDEProcess *sproc)
{
// Give an error message from the message string. However, if the
// sproc is not the "current external process of interest", i.e. not
@@ -351,7 +351,7 @@ void dviRenderer::dvips_terminated(KProcess *sproc)
}
-void dviRenderer::editorCommand_terminated(KProcess *sproc)
+void dviRenderer::editorCommand_terminated(TDEProcess *sproc)
{
// Give an error message from the message string. However, if the
// sproc is not the "current external process of interest", i.e. not
@@ -372,7 +372,7 @@ void dviRenderer::editorCommand_terminated(KProcess *sproc)
void dviRenderer::abortExternalProgramm()
{
- delete proc; // Deleting the KProcess kills the child.
+ delete proc; // Deleting the TDEProcess kills the child.
proc = 0;
if (export_tmpFileName.isEmpty() != true) {
diff --git a/kdvi/dviRenderer_prescan.cpp b/kdvi/dviRenderer_prescan.cpp
index 81a3b40f..ea923130 100644
--- a/kdvi/dviRenderer_prescan.cpp
+++ b/kdvi/dviRenderer_prescan.cpp
@@ -292,7 +292,7 @@ void dviRenderer::prescan_ParsePSHeaderSpecial(const TQString& cp)
// Otherwise, use kpsewhich to find the eps file.
KProcIO proc;
proc << "kpsewhich" << cp;
- proc.start(KProcess::Block);
+ proc.start(TDEProcess::Block);
proc.readln(_file);
}
diff --git a/kdvi/fontEncoding.cpp b/kdvi/fontEncoding.cpp
index 9f2d4de2..71ed6d9f 100644
--- a/kdvi/fontEncoding.cpp
+++ b/kdvi/fontEncoding.cpp
@@ -28,7 +28,7 @@ fontEncoding::fontEncoding(const TQString &encName)
KProcIO proc;
TQString encFileName;
proc << "kpsewhich" << encName;
- if (proc.start(KProcess::Block) == false) {
+ if (proc.start(TDEProcess::Block) == false) {
kdError(4300) << "fontEncoding::fontEncoding(...): kpsewhich could not be started." << endl;
return;
}
diff --git a/kdvi/fontMap.cpp b/kdvi/fontMap.cpp
index 8ef9b2c7..7b4e35a8 100644
--- a/kdvi/fontMap.cpp
+++ b/kdvi/fontMap.cpp
@@ -33,7 +33,7 @@ fontMap::fontMap()
// teTeX 3.0 format first.
KProcIO proc;
proc << "kpsewhich" << "--format=map" << "ps2pk.map";
- if (proc.start(KProcess::Block) == false) {
+ if (proc.start(TDEProcess::Block) == false) {
kdError(4700) << "fontMap::fontMap(): kpsewhich could not be started." << endl;
return;
}
@@ -45,7 +45,7 @@ fontMap::fontMap()
// Map file not found? Then we try the teTeX < 3.0 way of finding
// the file.
proc << "kpsewhich" << "--format=dvips config" << "ps2pk.map";
- if (proc.start(KProcess::Block) == false) {
+ if (proc.start(TDEProcess::Block) == false) {
kdError(4700) << "fontMap::fontMap(): kpsewhich could not be started." << endl;
return;
}
diff --git a/kdvi/fontpool.cpp b/kdvi/fontpool.cpp
index 463d123b..a9d207eb 100644
--- a/kdvi/fontpool.cpp
+++ b/kdvi/fontpool.cpp
@@ -304,8 +304,8 @@ void fontPool::locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFo
// If PK fonts are generated, the kpsewhich command will re-route
// the output of MetaFont into its stderr. Here we make sure this
// output is intercepted and parsed.
- tqApp->connect(&kpsewhichIO, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)),
- this, TQT_SLOT(mf_output_receiver(KProcess *, char *, int)));
+ tqApp->connect(&kpsewhichIO, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ this, TQT_SLOT(mf_output_receiver(TDEProcess *, char *, int)));
kpsewhichIO.setUseShell(true);
@@ -357,7 +357,7 @@ void fontPool::locateFonts(bool makePK, bool locateTFMonly, bool *virtualFontsFo
kpsewhichIO << shellProcessCmdLine;
TQString importanceOfKPSEWHICH = i18n("<p>KDVI relies on the <b>kpsewhich</b> program to locate font files "
"on your hard disc and to generate PK fonts, if necessary.</p>");
- if (kpsewhichIO.start(KProcess::NotifyOnExit, false) == false) {
+ if (kpsewhichIO.start(TDEProcess::NotifyOnExit, false) == false) {
TQString msg = i18n( "<p>The shell process for the kpsewhich program could not "
"be started. Consequently, some font files could not be found, "
"and your document might by unreadable. If this error is reproducable "
@@ -544,7 +544,7 @@ void fontPool::release_fonts()
}
-void fontPool::mf_output_receiver(KProcess *, char *buffer, int buflen)
+void fontPool::mf_output_receiver(TDEProcess *, char *buffer, int buflen)
{
// Paranoia.
if (buflen < 0)
diff --git a/kdvi/fontpool.h b/kdvi/fontpool.h
index b3c11846..d5575ff9 100644
--- a/kdvi/fontpool.h
+++ b/kdvi/fontpool.h
@@ -20,7 +20,7 @@
#include FT_FREETYPE_H
#endif
-class KProcess;
+class TDEProcess;
class KShellProcess;
@@ -210,7 +210,7 @@ private slots:
// transmitted to the fontpool via this slot. This method calles
// suitable methods in the fontProgres Dialog, and collects the
// output of MetaFontt int the "MetafontOutput" member
- void mf_output_receiver(KProcess *, char *, int);
+ void mf_output_receiver(TDEProcess *, char *, int);
};
#endif //ifndef _FONTPOOL_H
diff --git a/kdvi/psgs.cpp b/kdvi/psgs.cpp
index d7f087e4..7336d51f 100644
--- a/kdvi/psgs.cpp
+++ b/kdvi/psgs.cpp
@@ -224,7 +224,7 @@ void ghostscript_interface::gs_generate_graphics_file(const PageNumber& page, co
#endif
proc << argus;
- if (proc.start(KProcess::Block) == false) {
+ if (proc.start(TDEProcess::Block) == false) {
// Starting ghostscript did not work.
// TODO: Issue error message, switch PS support off.
kdError(4300) << "ghostview could not be started" << endl;
@@ -331,7 +331,7 @@ TQString ghostscript_interface::locateEPSfile(const TQString &filename, const KU
TQString EPSfilename;
KProcIO proc;
proc << "kpsewhich" << filename;
- proc.start(KProcess::Block);
+ proc.start(TDEProcess::Block);
proc.readln(EPSfilename);
return EPSfilename.stripWhiteSpace();
diff --git a/kfaxview/libkfaximage/kfaximage.cpp b/kfaxview/libkfaximage/kfaximage.cpp
index a3570209..1869aebb 100644
--- a/kfaxview/libkfaximage/kfaximage.cpp
+++ b/kfaxview/libkfaximage/kfaximage.cpp
@@ -41,7 +41,7 @@ static const char bigTIFF[] = "\x4d\x4d\x00\x2a";
KFaxImage::KFaxImage( const TQString &filename, TQObject *parent, const char *name )
: TQObject(parent,name)
{
- KGlobal::locale()->insertCatalogue( TQString::fromLatin1("libkfaximage") );
+ TDEGlobal::locale()->insertCatalogue( TQString::fromLatin1("libkfaximage") );
loadImage(filename);
}
diff --git a/kgamma/kcmkgamma/kgamma.cpp b/kgamma/kcmkgamma/kgamma.cpp
index 412accb7..2a129daf 100644
--- a/kgamma/kcmkgamma/kgamma.cpp
+++ b/kgamma/kcmkgamma/kgamma.cpp
@@ -82,7 +82,7 @@ KGamma::KGamma(TQWidget *parent, const char *name, const TQStringList&)
}
xv->setScreen(currentScreen);
- rootProcess = new KProcess;
+ rootProcess = new TDEProcess;
setupUI();
saved = false;
diff --git a/kgamma/kcmkgamma/kgamma.h b/kgamma/kcmkgamma/kgamma.h
index e7b5810b..132c349b 100644
--- a/kgamma/kcmkgamma/kgamma.h
+++ b/kgamma/kcmkgamma/kgamma.h
@@ -23,7 +23,7 @@ class GammaCtrl;
class TQCheckBox;
class TQComboBox;
class XVidExtWrap;
-class KProcess;
+class TDEProcess;
class KGamma: public KCModule
{
@@ -71,7 +71,7 @@ class KGamma: public KCModule
GammaCtrl *gctrl, *rgctrl, *ggctrl, *bgctrl;
TQCheckBox *xf86cfgbox, *syncbox;
TQComboBox *screenselect;
- KProcess *rootProcess;
+ TDEProcess *rootProcess;
XVidExtWrap *xv;
};
diff --git a/kghostview/kgv_view.cpp b/kghostview/kgv_view.cpp
index 08619841..b8a57a6e 100644
--- a/kghostview/kgv_view.cpp
+++ b/kghostview/kgv_view.cpp
@@ -264,8 +264,8 @@ KGVPart::KGVPart( TQWidget* parentWidget, const char*,
for ( TQValueList<double>::iterator first = mags.begin(), last = mags.end();
first != last;
++first ) {
- TQString str = TQString( "%1%" ).arg( KGlobal::locale()->formatNumber( *first * 100.0, 2 ));
- str.remove( KGlobal::locale()->decimalSymbol() + "00" );
+ TQString str = TQString( "%1%" ).arg( TDEGlobal::locale()->formatNumber( *first * 100.0, 2 ));
+ str.remove( TDEGlobal::locale()->decimalSymbol() + "00" );
zooms << str;
if ( *first == 1.0 ) idx = cur;
++cur;
@@ -600,8 +600,8 @@ void KGVPart::updateZoomActions()
}
// Show percentage that isn't predefined
- TQString str = TQString( "%1%" ).arg( KGlobal::locale()->formatNumber( zoom, 2 ));
- str.remove( KGlobal::locale()->decimalSymbol() + "00" );
+ TQString str = TQString( "%1%" ).arg( TDEGlobal::locale()->formatNumber( zoom, 2 ));
+ str.remove( TDEGlobal::locale()->decimalSymbol() + "00" );
items.insert( items.at(idx), 1, str );
_zoomTo->setItems( items );
_zoomTo->setCurrentItem( idx );
@@ -902,7 +902,7 @@ void KGVPart::slotZoom( const TQString& nz )
TQString z = nz;
double zoom;
z.remove( z.find( '%' ), 1 );
- zoom = KGlobal::locale()->readNumber( z ) / 100;
+ zoom = TDEGlobal::locale()->readNumber( z ) / 100;
kdDebug( 4500 ) << "ZOOM = " << nz << ", setting zoom = " << zoom << endl;
DisplayOptions options = miniWidget()->displayOptions();
diff --git a/kghostview/kgvconfigdialog.cpp b/kghostview/kgvconfigdialog.cpp
index 3fb7e1b4..3333a845 100644
--- a/kghostview/kgvconfigdialog.cpp
+++ b/kghostview/kgvconfigdialog.cpp
@@ -46,7 +46,7 @@ namespace {
TQString getGSVersion( TQString fullPathToExec )
{
TQString res;
- TQString chkVersion = KProcess::quote(fullPathToExec) + " --version";
+ TQString chkVersion = TDEProcess::quote(fullPathToExec) + " --version";
FILE* p = popen( TQFile::encodeName(chkVersion), "r" );
if( p ) {
// FIXME: a badly configured interpreter can hang us
diff --git a/kghostview/kgvdocument.cpp b/kghostview/kgvdocument.cpp
index 681724a4..96ff7e96 100644
--- a/kghostview/kgvdocument.cpp
+++ b/kghostview/kgvdocument.cpp
@@ -345,7 +345,7 @@ bool KGVDocument::convertFromPDF( const TQString& saveFileName,
{
// TODO -- timeout/fail on this conversion (it can hang on a bad pdf)
// TODO -- use output from gs (leave out -q) to drive a progress bar
- KProcess process;
+ TDEProcess process;
process << _interpreterPath
<< "-q"
<< "-dNOPAUSE"
@@ -367,7 +367,7 @@ bool KGVDocument::convertFromPDF( const TQString& saveFileName,
for ( ; it != args.end() ; ++it )
kdDebug(4500) << ( *it ) << endl;*/
- if( !process.start( KProcess::Block ) )
+ if( !process.start( TDEProcess::Block ) )
{
kdError() << "convertFromPDF: Couldn't start gs process" << endl;
// TODO -- error message (gs not found?)
@@ -771,7 +771,7 @@ bool KGVDocument::psCopyDoc( const TQString& inputFile,
void KGVDocument::runPdf2ps( const TQString& pdfName,
const TQString& dscName )
{
- KProcess process;
+ TDEProcess process;
process << _interpreterPath
<< "-dNODISPLAY"
<< "-dQUIET"
@@ -786,14 +786,14 @@ e=%1" ).arg( dscName )
<< "-c"
<< "quit";
- connect( &process, TQT_SIGNAL( processExited( KProcess* ) ),
- this, TQT_SLOT( pdf2psExited( KProcess* ) ) );
+ connect( &process, TQT_SIGNAL( processExited( TDEProcess* ) ),
+ this, TQT_SLOT( pdf2psExited( TDEProcess* ) ) );
kdDebug(4500) << "KGVDocument: pdf2ps started" << endl;
- process.start( KProcess::NotifyOnExit );
+ process.start( TDEProcess::NotifyOnExit );
}
-void KGVDocument::pdf2psExited( KProcess* process )
+void KGVDocument::pdf2psExited( TDEProcess* process )
{
kdDebug(4500) << "KGVDocument: pdf2ps exited" << endl;
@@ -816,7 +816,7 @@ void Pdf2dsc::run( const TQString& pdfName, const TQString& dscName )
{
kill();
- _process = new KProcess;
+ _process = new TDEProcess;
*_process << _ghostscriptPath
<< "-dSAFER"
<< "-dPARANOIDSAFER"
@@ -832,11 +832,11 @@ void Pdf2dsc::run( const TQString& pdfName, const TQString& dscName )
<< "-c"
<< "quit";
- connect( _process, TQT_SIGNAL( processExited( KProcess* ) ),
+ connect( _process, TQT_SIGNAL( processExited( TDEProcess* ) ),
this, TQT_SLOT( processExited() ) );
kdDebug(4500) << "Pdf2dsc: started" << endl;
- _process->start( KProcess::NotifyOnExit );
+ _process->start( TDEProcess::NotifyOnExit );
}
void Pdf2dsc::kill()
diff --git a/kghostview/kgvdocument.h b/kghostview/kgvdocument.h
index c207d627..3a9764f3 100644
--- a/kghostview/kgvdocument.h
+++ b/kghostview/kgvdocument.h
@@ -176,7 +176,7 @@ protected slots:
void processExited();
private:
- KProcess* _process;
+ TDEProcess* _process;
TQString _ghostscriptPath;
};
diff --git a/kghostview/kgvshell.cpp b/kghostview/kgvshell.cpp
index d6a2fe4f..9bb974e2 100644
--- a/kghostview/kgvshell.cpp
+++ b/kghostview/kgvshell.cpp
@@ -193,7 +193,7 @@ KGVShell::saveProperties( KConfig* config )
void
KGVShell::readSettings()
{
- recent->loadEntries( KGlobal::config() );
+ recent->loadEntries( TDEGlobal::config() );
TQStringList items = recent->items();
// Code copied from kviewshell.cpp:
@@ -210,10 +210,10 @@ KGVShell::readSettings()
}
}
- applyMainWindowSettings(KGlobal::config(), "MainWindow");
+ applyMainWindowSettings(TDEGlobal::config(), "MainWindow");
- KGlobal::config()->setDesktopGroup();
- bool fullScreen = KGlobal::config()->readBoolEntry( "FullScreen", false );
+ TDEGlobal::config()->setDesktopGroup();
+ bool fullScreen = TDEGlobal::config()->readBoolEntry( "FullScreen", false );
setFullScreen( fullScreen );
_showMenuBarAction->setChecked( menuBar()->isVisible() );
}
@@ -221,14 +221,14 @@ KGVShell::readSettings()
void
KGVShell::writeSettings()
{
- saveMainWindowSettings(KGlobal::config(), "MainWindow");
+ saveMainWindowSettings(TDEGlobal::config(), "MainWindow");
- recent->saveEntries( KGlobal::config() );
+ recent->saveEntries( TDEGlobal::config() );
- KGlobal::config()->setDesktopGroup();
- KGlobal::config()->writeEntry( "FullScreen", m_fullScreenAction->isChecked());
+ TDEGlobal::config()->setDesktopGroup();
+ TDEGlobal::config()->writeEntry( "FullScreen", m_fullScreenAction->isChecked());
- KGlobal::config()->sync();
+ TDEGlobal::config()->sync();
}
void
@@ -350,7 +350,7 @@ void KGVShell::slotUpdateFullScreen()
void KGVShell::slotConfigureToolbars()
{
- saveMainWindowSettings( KGlobal::config(), "MainWindow" );
+ saveMainWindowSettings( TDEGlobal::config(), "MainWindow" );
KEditToolbar dlg( factory() );
connect(&dlg,TQT_SIGNAL(newToolbarConfig()),this,TQT_SLOT(slotNewToolbarConfig()));
dlg.exec();
@@ -358,7 +358,7 @@ void KGVShell::slotConfigureToolbars()
void KGVShell::slotNewToolbarConfig()
{
- applyMainWindowSettings( KGlobal::config(), "MainWindow" );
+ applyMainWindowSettings( TDEGlobal::config(), "MainWindow" );
}
void KGVShell::slotRMBClick()
diff --git a/kghostview/kpswidget.cpp b/kghostview/kpswidget.cpp
index eafd3831..a5e66757 100644
--- a/kghostview/kpswidget.cpp
+++ b/kghostview/kpswidget.cpp
@@ -342,7 +342,7 @@ bool KPSWidget::startInterpreter()
{
setupWidget();
- _process = new KProcess;
+ _process = new TDEProcess;
if ( _doubleBuffer ) _process->setEnvironment( "GHOSTVIEW", TQString( "%1 %2" ).arg( winId() ).arg( _backgroundPixmap.handle() ) );
else _process->setEnvironment( "GHOSTVIEW", TQString::number( winId() ) );
@@ -358,21 +358,21 @@ bool KPSWidget::startInterpreter()
else
*_process << _fileName << "-c" << "quit";
- connect( _process, TQT_SIGNAL( processExited( KProcess* ) ),
- this, TQT_SLOT( slotProcessExited( KProcess* ) ) );
- connect( _process, TQT_SIGNAL( receivedStdout( KProcess*, char*, int ) ),
- this, TQT_SLOT( gs_output( KProcess*, char*, int ) ) );
- connect( _process, TQT_SIGNAL( receivedStderr( KProcess*, char*, int ) ),
- this, TQT_SLOT( gs_output( KProcess*, char*, int ) ) );
- connect( _process, TQT_SIGNAL( wroteStdin( KProcess*) ),
- this, TQT_SLOT( gs_input( KProcess* ) ) );
+ connect( _process, TQT_SIGNAL( processExited( TDEProcess* ) ),
+ this, TQT_SLOT( slotProcessExited( TDEProcess* ) ) );
+ connect( _process, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ),
+ this, TQT_SLOT( gs_output( TDEProcess*, char*, int ) ) );
+ connect( _process, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ),
+ this, TQT_SLOT( gs_output( TDEProcess*, char*, int ) ) );
+ connect( _process, TQT_SIGNAL( wroteStdin( TDEProcess*) ),
+ this, TQT_SLOT( gs_input( TDEProcess* ) ) );
kapp->flushX();
// Finally fire up the interpreter.
kdDebug(4500) << "KPSWidget: starting interpreter" << endl;
- if( _process->start( KProcess::NotifyOnExit,
- _usePipe ? KProcess::All : KProcess::AllOutput ) )
+ if( _process->start( TDEProcess::NotifyOnExit,
+ _usePipe ? TDEProcess::All : TDEProcess::AllOutput ) )
{
_interpreterBusy = true;
setCursor( waitCursor );
@@ -412,7 +412,7 @@ void KPSWidget::interpreterFailed()
stopInterpreter();
}
-void KPSWidget::slotProcessExited( KProcess* process )
+void KPSWidget::slotProcessExited( TDEProcess* process )
{
kdDebug(4500) << "KPSWidget: process exited" << endl;
@@ -430,12 +430,12 @@ void KPSWidget::slotProcessExited( KProcess* process )
}
}
-void KPSWidget::gs_output( KProcess*, char* buffer, int len )
+void KPSWidget::gs_output( TDEProcess*, char* buffer, int len )
{
emit output( buffer, len );
}
-void KPSWidget::gs_input( KProcess* process )
+void KPSWidget::gs_input( TDEProcess* process )
{
kdDebug(4500) << "KPSWidget::gs_input" << endl;
diff --git a/kghostview/kpswidget.h b/kghostview/kpswidget.h
index 40f8614e..71ffe704 100644
--- a/kghostview/kpswidget.h
+++ b/kghostview/kpswidget.h
@@ -30,7 +30,7 @@
#include <X11/X.h>
-class KProcess;
+class TDEProcess;
class KGVConfigDialog;
class MessagesDialog;
@@ -201,10 +201,10 @@ protected:
void setPalette( Configuration::EnumPalette::type );
protected slots:
- void gs_input( KProcess* );
- void gs_output( KProcess*, char* buffer, int len );
+ void gs_input( TDEProcess* );
+ void gs_output( TDEProcess*, char* buffer, int len );
void interpreterFailed();
- void slotProcessExited( KProcess* );
+ void slotProcessExited( TDEProcess* );
private:
Window _gsWindow; // Destination of ghostscript messages.
@@ -246,7 +246,7 @@ private:
*/
bool _widgetDirty;
- KProcess* _process;
+ TDEProcess* _process;
char* _buffer;
std::queue<Record> _inputQueue;
diff --git a/kghostview/logwindow.cpp b/kghostview/logwindow.cpp
index 207e88f1..82e85a99 100644
--- a/kghostview/logwindow.cpp
+++ b/kghostview/logwindow.cpp
@@ -43,7 +43,7 @@ LogWindow::LogWindow( const TQString& caption,
_logView->setTextFormat( TQt::PlainText );
_logView->setReadOnly( true );
_logView->setWordWrap( TQTextEdit::NoWrap );
- _logView->setFont( KGlobalSettings::fixedFont() );
+ _logView->setFont( TDEGlobalSettings::fixedFont() );
_logView->setMinimumWidth( 80 * fontMetrics().width( " " ) );
connect( this, TQT_SIGNAL( user1Clicked() ), TQT_SLOT( clear() ) );
diff --git a/kiconedit/kiconconfig.cpp b/kiconedit/kiconconfig.cpp
index 207629b4..1a2d7bf2 100644
--- a/kiconedit/kiconconfig.cpp
+++ b/kiconedit/kiconconfig.cpp
@@ -48,7 +48,7 @@
// little helper:
static inline TQPixmap loadIcon( const char * name )
{
- return KGlobal::instance()->iconLoader()
+ return TDEGlobal::instance()->iconLoader()
->loadIcon( TQString::fromLatin1(name), KIcon::NoGroup, KIcon::SizeMedium );
}
diff --git a/kiconedit/knew.cpp b/kiconedit/knew.cpp
index 4f4bdb89..c48e11cc 100644
--- a/kiconedit/knew.cpp
+++ b/kiconedit/knew.cpp
@@ -37,7 +37,7 @@ KIconTemplateContainer* KIconTemplateContainer::instance = 0;
void createStandardTemplates(KIconTemplateContainer *list)
{
- KIconLoader *kil = KGlobal::iconLoader();
+ KIconLoader *kil = TDEGlobal::iconLoader();
KIconTemplate it;
it.path = kil->iconPath("standard", KIcon::User);
diff --git a/kmrml/kmrml/kcontrol/indexcleaner.cpp b/kmrml/kmrml/kcontrol/indexcleaner.cpp
index 8c75bf9e..be2fbc29 100644
--- a/kmrml/kmrml/kcontrol/indexcleaner.cpp
+++ b/kmrml/kmrml/kcontrol/indexcleaner.cpp
@@ -8,7 +8,7 @@
#if TDE_VERSION < 306
#define QUOTE( x ) x
#else
- #define QUOTE( x ) KProcess::quote( x )
+ #define QUOTE( x ) TDEProcess::quote( x )
#endif
using namespace KMrmlConfig;
@@ -39,7 +39,7 @@ void IndexCleaner::start()
startNext();
}
-void IndexCleaner::slotExited( KProcess *proc )
+void IndexCleaner::slotExited( TDEProcess *proc )
{
emit advance( m_stepSize );
@@ -63,11 +63,11 @@ void IndexCleaner::startNext()
#if TDE_VERSION < 306
m_process = new KShellProcess();
#else
- m_process = new KProcess();
+ m_process = new TDEProcess();
m_process->setUseShell( true );
#endif
- connect( m_process, TQT_SIGNAL( processExited( KProcess * )),
- TQT_SLOT( slotExited( KProcess * ) ));
+ connect( m_process, TQT_SIGNAL( processExited( TDEProcess * )),
+ TQT_SLOT( slotExited( TDEProcess * ) ));
TQString cmd = m_config->removeCollectionCommandLine();
diff --git a/kmrml/kmrml/kcontrol/indexcleaner.h b/kmrml/kmrml/kcontrol/indexcleaner.h
index 0db17887..05396870 100644
--- a/kmrml/kmrml/kcontrol/indexcleaner.h
+++ b/kmrml/kmrml/kcontrol/indexcleaner.h
@@ -11,7 +11,7 @@
#include <tqobject.h>
#include <tqstringlist.h>
-class KProcess;
+class TDEProcess;
namespace KMrml
{
@@ -37,7 +37,7 @@ namespace KMrmlConfig
void finished();
private slots:
- void slotExited( KProcess * );
+ void slotExited( TDEProcess * );
private:
int m_stepSize;
@@ -45,7 +45,7 @@ namespace KMrmlConfig
TQStringList m_dirs;
const KMrml::Config *m_config;
- KProcess *m_process;
+ TDEProcess *m_process;
};
}
diff --git a/kmrml/kmrml/kcontrol/indexer.cpp b/kmrml/kmrml/kcontrol/indexer.cpp
index 44535c44..2555ce6f 100644
--- a/kmrml/kmrml/kcontrol/indexer.cpp
+++ b/kmrml/kmrml/kcontrol/indexer.cpp
@@ -30,7 +30,7 @@
#if TDE_VERSION < 306
#define QUOTE( x ) x
#else
- #define QUOTE( x ) KProcess::quote( x )
+ #define QUOTE( x ) TDEProcess::quote( x )
#endif
using namespace KMrmlConfig;
@@ -46,8 +46,8 @@ Indexer::Indexer( const KMrml::Config* config,
m_process->setUseShell( true );
#endif
m_process->setEnvironment( "LC_ALL", "C" );
- connect( m_process, TQT_SIGNAL( processExited( KProcess * )),
- TQT_SLOT( processFinished( KProcess * )));
+ connect( m_process, TQT_SIGNAL( processExited( TDEProcess * )),
+ TQT_SLOT( processFinished( TDEProcess * )));
connect( m_process, TQT_SIGNAL( readReady( KProcIO * )),
TQT_SLOT( slotCanRead( KProcIO * )) );
}
@@ -67,7 +67,7 @@ void Indexer::startIndexing( const TQStringList& dirs )
processNext();
}
-void Indexer::processFinished( KProcess *proc )
+void Indexer::processFinished( TDEProcess *proc )
{
// still more directories to index?
if ( !m_dirs.isEmpty() )
@@ -118,9 +118,9 @@ void Indexer::processNext()
void Indexer::slotCanRead( KProcIO *proc )
{
- static const TQString& sprogress = KGlobal::staticQString("PROGRESS: ");
+ static const TQString& sprogress = TDEGlobal::staticQString("PROGRESS: ");
static const TQString& r1 = /* PROGRESS: 1 of 6 done (15%) */
- KGlobal::staticQString( "(\\d+) of (\\d+) done \\((\\d+)%\\)" );
+ TDEGlobal::staticQString( "(\\d+) of (\\d+) done \\((\\d+)%\\)" );
TQString line;
int bytes = -1;
diff --git a/kmrml/kmrml/kcontrol/indexer.h b/kmrml/kmrml/kcontrol/indexer.h
index 1f0f6dbe..72755081 100644
--- a/kmrml/kmrml/kcontrol/indexer.h
+++ b/kmrml/kmrml/kcontrol/indexer.h
@@ -23,7 +23,7 @@
#include <kmrml_config.h>
-class KProcess;
+class TDEProcess;
class KProcIO;
namespace KMrmlConfig
@@ -48,7 +48,7 @@ namespace KMrmlConfig
private slots:
void slotCanRead( KProcIO * );
- void processFinished( KProcess * );
+ void processFinished( TDEProcess * );
private:
void processNext();
diff --git a/kmrml/kmrml/kcontrol/indextest.cpp b/kmrml/kmrml/kcontrol/indextest.cpp
index 1b86867b..9571a88f 100644
--- a/kmrml/kmrml/kcontrol/indextest.cpp
+++ b/kmrml/kmrml/kcontrol/indextest.cpp
@@ -10,7 +10,7 @@ using namespace KMrmlConfig;
IndexTest::IndexTest()
{
- KMrml::Config *config = new KMrml::Config( KGlobal::config() );
+ KMrml::Config *config = new KMrml::Config( TDEGlobal::config() );
Indexer *indexer = new Indexer( *config, this );
connect( indexer, TQT_SIGNAL( finished( bool )), TQT_SLOT( slotFinished( bool )));
connect( indexer, TQT_SIGNAL( progress( int, const TQString& )),
diff --git a/kmrml/kmrml/kcontrol/kcmkmrml.cpp b/kmrml/kmrml/kcontrol/kcmkmrml.cpp
index 294d7581..2a79cd5d 100644
--- a/kmrml/kmrml/kcontrol/kcmkmrml.cpp
+++ b/kmrml/kmrml/kcontrol/kcmkmrml.cpp
@@ -75,8 +75,8 @@ KCMKMrml::~KCMKMrml()
void KCMKMrml::checkGiftInstallation()
{
- TQString giftExe = KGlobal::dirs()->findExe( "gift" );
- TQString giftAddCollectionExe = KGlobal::dirs()->findExe( "gift-add-collection.pl" );
+ TQString giftExe = TDEGlobal::dirs()->findExe( "gift" );
+ TQString giftAddCollectionExe = TDEGlobal::dirs()->findExe( "gift-add-collection.pl" );
if ( giftExe.isEmpty() || giftAddCollectionExe.isEmpty() )
{
diff --git a/kmrml/kmrml/kcontrol/mainpage.cpp b/kmrml/kmrml/kcontrol/mainpage.cpp
index ca491ead..b861cda4 100644
--- a/kmrml/kmrml/kcontrol/mainpage.cpp
+++ b/kmrml/kmrml/kcontrol/mainpage.cpp
@@ -73,7 +73,7 @@ MainPage::MainPage( TQWidget *parent, const char *name )
#if TDE_VERSION >= 306
KURLRequester *requester = new KURLRequester( this, "dir requester" );
requester->setMode( KFile::Directory | KFile::ExistingOnly | KFile::LocalOnly );
- requester->setURL( KGlobalSettings::documentPath() );
+ requester->setURL( TDEGlobalSettings::documentPath() );
connect( requester, TQT_SIGNAL( openFileDialog( KURLRequester * )),
TQT_SLOT( slotRequesterClicked( KURLRequester * )));
diff --git a/kmrml/kmrml/lib/kmrml_config.cpp b/kmrml/kmrml/lib/kmrml_config.cpp
index 94aafa4a..63bc5e8a 100644
--- a/kmrml/kmrml/lib/kmrml_config.cpp
+++ b/kmrml/kmrml/lib/kmrml_config.cpp
@@ -32,7 +32,7 @@
#if TDE_VERSION < 307
#define QUOTE( x ) x
#else
- #define QUOTE( x ) KProcess::quote( x )
+ #define QUOTE( x ) TDEProcess::quote( x )
#endif
using namespace KMrml;
@@ -251,7 +251,7 @@ TQString Config::mrmldCommandline() const
TQString Config::mrmldDataDir()
{
- TQString dir = KGlobal::dirs()->saveLocation( "data",
+ TQString dir = TDEGlobal::dirs()->saveLocation( "data",
"kmrml/mrmld-data/" );
if ( dir.isEmpty() ) // fallback
dir = TQDir::homeDirPath() + "/";
diff --git a/kmrml/kmrml/mrml.cpp b/kmrml/kmrml/mrml.cpp
index ab4cfcfc..5fc30e8c 100644
--- a/kmrml/kmrml/mrml.cpp
+++ b/kmrml/kmrml/mrml.cpp
@@ -40,7 +40,7 @@ extern "C" {
{
KLocale::setMainCatalogue("tdelibs");
TDEInstance instance( "kio_mrml" );
- KGlobal::locale()->insertCatalogue( "kmrml" );
+ TDEGlobal::locale()->insertCatalogue( "kmrml" );
kdDebug() << "Starting MRML " << getpid() << endl;
@@ -62,7 +62,7 @@ const int Mrml::bufsize = 8192;
Mrml::Mrml( const TQCString& pool_socket, const TQCString& app_socket )
: TCPSlaveBase( 12789, "mrml", pool_socket, app_socket ),
- m_config( KGlobal::config() )
+ m_config( TDEGlobal::config() )
{
MrmlShared::ref();
}
diff --git a/kmrml/kmrml/mrml_part.cpp b/kmrml/kmrml/mrml_part.cpp
index 80ac57c0..c418ae67 100644
--- a/kmrml/kmrml/mrml_part.cpp
+++ b/kmrml/kmrml/mrml_part.cpp
@@ -85,7 +85,7 @@ TDEInstance * PartFactory::instance()
{
if ( !s_instance ) {
s_instance = new TDEInstance( "kmrml" );
- KGlobal::locale()->insertCatalogue( "kmrml" );
+ TDEGlobal::locale()->insertCatalogue( "kmrml" );
}
return s_instance;
}
diff --git a/kmrml/kmrml/mrml_view.cpp b/kmrml/kmrml/mrml_view.cpp
index 9555d9a1..6b7ed49c 100644
--- a/kmrml/kmrml/mrml_view.cpp
+++ b/kmrml/kmrml/mrml_view.cpp
@@ -405,7 +405,7 @@ void MrmlViewItem::mouseMoveEvent( TQMouseEvent *e )
if ( (e->state() & Qt::LeftButton) && !pressedPos.isNull() ) {
TQPoint dist = e->pos() - pressedPos;
- if ( dist.manhattanLength() > KGlobalSettings::dndEventDelay() ) {
+ if ( dist.manhattanLength() > TDEGlobalSettings::dndEventDelay() ) {
// start drag here
KURL::List urls;
// ### support multiple files?
@@ -421,7 +421,7 @@ void MrmlViewItem::mouseReleaseEvent( TQMouseEvent *e )
{
if ( hitsPixmap( e->pos() )) {
TQPoint dist = e->pos() - pressedPos;
- if ( dist.manhattanLength() < KGlobalSettings::dndEventDelay() ) {
+ if ( dist.manhattanLength() < TDEGlobalSettings::dndEventDelay() ) {
emit view()->activated( m_url, e->button() );
}
}
diff --git a/kmrml/kmrml/server/watcher.cpp b/kmrml/kmrml/server/watcher.cpp
index fe393933..1d7f464a 100644
--- a/kmrml/kmrml/server/watcher.cpp
+++ b/kmrml/kmrml/server/watcher.cpp
@@ -75,7 +75,7 @@ bool Watcher::requireDaemon( const TQCString& clientAppId,
daemon->apps.append( clientAppId );
#if TDE_VERSION >= 306
- daemon->process = new KProcess();
+ daemon->process = new TDEProcess();
daemon->process->setUseShell( true );
#else
daemon->process = new KShellProcess();
@@ -84,8 +84,8 @@ bool Watcher::requireDaemon( const TQCString& clientAppId,
daemon->process->setEnvironment( "LANG", "C" );
daemon->process->setEnvironment( "LANGUAGE", "C" );
*daemon->process << commandline;
- connect( daemon->process, TQT_SIGNAL( processExited( KProcess * ) ),
- TQT_SLOT( slotProcExited( KProcess * )));
+ connect( daemon->process, TQT_SIGNAL( processExited( TDEProcess * ) ),
+ TQT_SLOT( slotProcExited( TDEProcess * )));
return startDaemon( daemon );
}
}
@@ -128,7 +128,7 @@ TQStringList Watcher::runningDaemons() const
return result;
}
-void Watcher::slotProcExited( KProcess *proc )
+void Watcher::slotProcExited( TDEProcess *proc )
{
DaemonData *daemon = findDaemonFromProcess( proc );
@@ -166,7 +166,7 @@ void Watcher::slotProcExited( KProcess *proc )
bool Watcher::startDaemon( DaemonData *daemon )
{
- if ( daemon->process->start( KProcess::NotifyOnExit ) )
+ if ( daemon->process->start( TDEProcess::NotifyOnExit ) )
return true;
else
@@ -194,8 +194,8 @@ void Watcher::slotTimeout()
{
if ( daemon->apps.isEmpty() )
{
- // the daemon and KProcess might get deleted by killing the
- // KProcess (through slotProcExited()), so don't dereference
+ // the daemon and TDEProcess might get deleted by killing the
+ // TDEProcess (through slotProcExited()), so don't dereference
// daemon after proc->kill()
TQString key = daemon->daemonKey;
@@ -208,7 +208,7 @@ void Watcher::slotTimeout()
}
}
-DaemonData * Watcher::findDaemonFromProcess( KProcess *proc )
+DaemonData * Watcher::findDaemonFromProcess( TDEProcess *proc )
{
DaemonData *daemon;
TQDictIterator<DaemonData> it( m_daemons );
@@ -265,7 +265,7 @@ void Watcher::emitFailure( DaemonData *daemon )
if ( daemon )
{
daemonDied( daemon->daemonKey, daemon->process->pid() );
- m_daemons.remove( daemon->daemonKey ); // deletes daemon + KProcess
+ m_daemons.remove( daemon->daemonKey ); // deletes daemon + TDEProcess
}
}
diff --git a/kmrml/kmrml/server/watcher.h b/kmrml/kmrml/server/watcher.h
index 00338480..e9cc0656 100644
--- a/kmrml/kmrml/server/watcher.h
+++ b/kmrml/kmrml/server/watcher.h
@@ -54,7 +54,7 @@ namespace KMrml
uint timeout;
TQStrList apps;
int restartOnFailure;
- KProcess *process;
+ TDEProcess *process;
TQTimer *timer;
};
@@ -90,14 +90,14 @@ namespace KMrml
private:
void unrequireDaemon( DaemonData *daemon, const TQCString& clientAppId);
- DaemonData *findDaemonFromProcess( KProcess *proc );
+ DaemonData *findDaemonFromProcess( TDEProcess *proc );
DaemonData *findDaemonFromTimer( TQTimer *timer );
void emitExited( DaemonData *daemon );
void emitFailure( DaemonData *daemon );
private slots:
- void slotProcExited( KProcess *proc );
+ void slotProcExited( TDEProcess *proc );
void slotAppUnregistered( const TQCString& appId );
TQDict<DaemonData> m_daemons;
diff --git a/kolourpaint/kpdocumentsaveoptions.cpp b/kolourpaint/kpdocumentsaveoptions.cpp
index 6bbb81d4..849863d7 100644
--- a/kolourpaint/kpdocumentsaveoptions.cpp
+++ b/kolourpaint/kpdocumentsaveoptions.cpp
@@ -371,7 +371,7 @@ static TQStringList mimeTypesSupportingProperty (const TQString &property,
{
TQStringList mimeTypeList;
- KConfigGroupSaver cfgGroupSaver (KGlobal::config (),
+ KConfigGroupSaver cfgGroupSaver (TDEGlobal::config (),
kpSettingsGroupMimeTypeProperties);
KConfigBase *cfg = cfgGroupSaver.config ();
diff --git a/kolourpaint/kpdocumentsaveoptionswidget.cpp b/kolourpaint/kpdocumentsaveoptionswidget.cpp
index 219d65ca..b602494f 100644
--- a/kolourpaint/kpdocumentsaveoptionswidget.cpp
+++ b/kolourpaint/kpdocumentsaveoptionswidget.cpp
@@ -157,7 +157,7 @@ void kpDocumentSaveOptionsPreviewDialog::setFilePixmapAndSize (const TQPixmap &p
const TQString alternateText6 = i18n ("%1B (%2%)");
const TQString alternateText7 = i18n ("%1B (approx. %2%)");
m_fileSizeLabel->setText (i18n ("%1 bytes (approx. %2%)")
- .arg (KGlobal::locale ()->formatLong (m_fileSize))
+ .arg (TDEGlobal::locale ()->formatLong (m_fileSize))
.arg (percent));
}
@@ -742,7 +742,7 @@ void kpDocumentSaveOptionsWidget::showPreview (bool yes)
this, TQT_SLOT (hidePreview ()));
- KConfigGroupSaver cfgGroupSaver (KGlobal::config (), kpSettingsGroupPreviewSave);
+ KConfigGroupSaver cfgGroupSaver (TDEGlobal::config (), kpSettingsGroupPreviewSave);
KConfigBase *cfg = cfgGroupSaver.config ();
if (cfg->hasKey (kpSettingPreviewSaveUpdateDelay))
@@ -769,7 +769,7 @@ void kpDocumentSaveOptionsWidget::showPreview (bool yes)
#if DEBUG_KP_DOCUMENT_SAVE_OPTIONS_WIDGET
kdDebug () << "\tread cfg preview dialog last rel geometry" << endl;
#endif
- KConfigGroupSaver cfgGroupSaver (KGlobal::config (), kpSettingsGroupPreviewSave);
+ KConfigGroupSaver cfgGroupSaver (TDEGlobal::config (), kpSettingsGroupPreviewSave);
KConfigBase *cfg = cfgGroupSaver.config ();
m_previewDialogLastRelativeGeometry = cfg->readRectEntry (
@@ -845,7 +845,7 @@ void kpDocumentSaveOptionsWidget::showPreview (bool yes)
{
m_updatePreviewDialogLastRelativeGeometryTimer->stop ();
- KConfigGroupSaver cfgGroupSaver (KGlobal::config (), kpSettingsGroupPreviewSave);
+ KConfigGroupSaver cfgGroupSaver (TDEGlobal::config (), kpSettingsGroupPreviewSave);
KConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingPreviewSaveGeometry, m_previewDialogLastRelativeGeometry);
diff --git a/kolourpaint/kpmainwindow_file.cpp b/kolourpaint/kpmainwindow_file.cpp
index d7e77f1c..5c6897c2 100644
--- a/kolourpaint/kpmainwindow_file.cpp
+++ b/kolourpaint/kpmainwindow_file.cpp
@@ -997,7 +997,7 @@ static bool shouldPrintImageCenteredOnPage ()
#endif
bool ret;
- KConfigGroupSaver cfgGroupSaver (KGlobal::config (),
+ KConfigGroupSaver cfgGroupSaver (TDEGlobal::config (),
kpSettingsGroupGeneral);
KConfigBase *cfg = cfgGroupSaver.config ();
diff --git a/kolourpaint/kpmainwindow_help.cpp b/kolourpaint/kpmainwindow_help.cpp
index 830ed6e8..ecb17e13 100644
--- a/kolourpaint/kpmainwindow_help.cpp
+++ b/kolourpaint/kpmainwindow_help.cpp
@@ -73,7 +73,7 @@ void kpMainWindow::enableHelpMenuDocumentActions (bool /*enable*/)
// SYNC: tdebase/twin/twinbindings.cpp
static TQString printScreenShortcutString ()
{
- KConfigGroupSaver cfgGroupSaver (KGlobal::config (), "Global Shortcuts");
+ KConfigGroupSaver cfgGroupSaver (TDEGlobal::config (), "Global Shortcuts");
KConfigBase *cfg = cfgGroupSaver.config ();
// TODO: i18n() entry name? twinbindings.cpp seems to but it doesn't
diff --git a/kolourpaint/pixmapfx/kpeffectflatten.cpp b/kolourpaint/pixmapfx/kpeffectflatten.cpp
index 1768aa96..471a3293 100644
--- a/kolourpaint/pixmapfx/kpeffectflatten.cpp
+++ b/kolourpaint/pixmapfx/kpeffectflatten.cpp
@@ -137,7 +137,7 @@ kpEffectFlattenWidget::kpEffectFlattenWidget (bool actOnSelection,
{
if (!s_lastColor1.isValid () || !s_lastColor2.isValid ())
{
- KConfigGroupSaver cfgGroupSaver (KGlobal::config (), kpSettingsGroupFlattenEffect);
+ KConfigGroupSaver cfgGroupSaver (TDEGlobal::config (), kpSettingsGroupFlattenEffect);
KConfigBase *cfg = cfgGroupSaver.config ();
s_lastColor1 = cfg->readColorEntry (kpSettingFlattenEffectColor1);
@@ -183,7 +183,7 @@ kpEffectFlattenWidget::~kpEffectFlattenWidget ()
s_lastColor2 = color2 ();
- KConfigGroupSaver cfgGroupSaver (KGlobal::config (), kpSettingsGroupFlattenEffect);
+ KConfigGroupSaver cfgGroupSaver (TDEGlobal::config (), kpSettingsGroupFlattenEffect);
KConfigBase *cfg = cfgGroupSaver.config ();
cfg->writeEntry (kpSettingFlattenEffectColor1, s_lastColor1);
diff --git a/kolourpaint/pixmapfx/kppixmapfx.cpp b/kolourpaint/pixmapfx/kppixmapfx.cpp
index 2543f962..6525854a 100644
--- a/kolourpaint/pixmapfx/kppixmapfx.cpp
+++ b/kolourpaint/pixmapfx/kppixmapfx.cpp
@@ -492,7 +492,7 @@ TQPixmap kpPixmapFX::convertToPixmapAsLosslessAsPossible (const TQImage &image,
int configDitherIfNumColorsGreaterThan = 323;
- KConfigGroupSaver cfgGroupSaver (KGlobal::config (),
+ KConfigGroupSaver cfgGroupSaver (TDEGlobal::config (),
kpSettingsGroupGeneral);
KConfigBase *cfg = cfgGroupSaver.config ();
diff --git a/kolourpaint/tools/kptoolresizescale.cpp b/kolourpaint/tools/kptoolresizescale.cpp
index 80962c77..58c17abd 100644
--- a/kolourpaint/tools/kptoolresizescale.cpp
+++ b/kolourpaint/tools/kptoolresizescale.cpp
@@ -604,7 +604,7 @@ static TQIconSet toolButtonIconSet (const TQString &iconName)
// No "disabled" pixmap is generated by UserIconSet() so generate it
// ourselves:
- TQPixmap disabledIcon = KGlobal::iconLoader ()->iconEffect ()->apply (
+ TQPixmap disabledIcon = TDEGlobal::iconLoader ()->iconEffect ()->apply (
UserIcon (iconName),
KIcon::Toolbar, KIcon::DisabledState);
diff --git a/kolourpaint/widgets/kptooltoolbar.cpp b/kolourpaint/widgets/kptooltoolbar.cpp
index 4982d7ef..56dde564 100644
--- a/kolourpaint/widgets/kptooltoolbar.cpp
+++ b/kolourpaint/widgets/kptooltoolbar.cpp
@@ -175,7 +175,7 @@ int kpToolToolBar::defaultIconSize ()
#endif
- KConfigGroupSaver cfgGroupSaver (KGlobal::config (),
+ KConfigGroupSaver cfgGroupSaver (TDEGlobal::config (),
kpSettingsGroupTools);
KConfigBase *cfg = cfgGroupSaver.config ();
@@ -200,7 +200,7 @@ int kpToolToolBar::defaultIconSize ()
if (m_defaultIconSize <= 0)
{
// Adapt according to screen geometry
- const TQRect desktopSize = KGlobalSettings::desktopGeometry (this);
+ const TQRect desktopSize = TDEGlobalSettings::desktopGeometry (this);
#if DEBUG_KP_TOOL_TOOL_BAR
kdDebug () << "\tadapting to screen size=" << desktopSize << endl;
#endif
diff --git a/kooka/img_saver.cpp b/kooka/img_saver.cpp
index 7132339c..229194af 100644
--- a/kooka/img_saver.cpp
+++ b/kooka/img_saver.cpp
@@ -335,7 +335,7 @@ ImgSaveStat ImgSaver::saveImage( TQImage *image )
kdDebug(28000) << "saveImage: Directory is " << directory << endl;
TQString filename = createFilename( format );
- KConfig *konf = KGlobal::config ();
+ KConfig *konf = TDEGlobal::config ();
konf->setGroup( OP_FILE_GROUP );
if( konf->readBoolEntry( OP_ASK_FILENAME, false ) )
@@ -425,7 +425,7 @@ ImgSaveStat ImgSaver::saveImage( TQImage *image, const KURL& filename, const TQS
TQString ImgSaver::findFormat( picType type )
{
TQString format;
- KConfig *konf = KGlobal::config ();
+ KConfig *konf = TDEGlobal::config ();
konf->setGroup( OP_FILE_GROUP );
if( type == PT_THUMBNAIL )
@@ -552,7 +552,7 @@ bool ImgSaver::isRememberedFormat( picType type, TQString format ) const
TQString ImgSaver::getFormatForType( picType type ) const
{
- KConfig *konf = KGlobal::config ();
+ KConfig *konf = TDEGlobal::config ();
TQ_CHECK_PTR( konf );
konf->setGroup( OP_FILE_GROUP );
@@ -582,7 +582,7 @@ TQString ImgSaver::getFormatForType( picType type ) const
void ImgSaver::storeFormatForType( picType type, TQString format, bool ask )
{
- KConfig *konf = KGlobal::config ();
+ KConfig *konf = TDEGlobal::config ();
TQ_CHECK_PTR( konf );
konf->setGroup( OP_FILE_GROUP );
@@ -691,7 +691,7 @@ ImgSaveStat ImgSaver::save( TQImage *image, const TQString &filename,
void ImgSaver::readConfig( void )
{
- KConfig *konf = KGlobal::config ();
+ KConfig *konf = TDEGlobal::config ();
TQ_CHECK_PTR( konf );
konf->setGroup( OP_FILE_GROUP );
ask_for_format = konf->readBoolEntry( OP_FILE_ASK_FORMAT, true );
diff --git a/kooka/kocrbase.cpp b/kooka/kocrbase.cpp
index 0de5c88c..171d1b4d 100644
--- a/kooka/kocrbase.cpp
+++ b/kooka/kocrbase.cpp
@@ -81,7 +81,7 @@ KOCRBase::KOCRBase( TQWidget *parent, KSpellConfig *spellConfig,
kdDebug(28000) << "OCR Base Dialog!" << endl;
// Layout-Boxes
- KConfig *konf = KGlobal::config ();
+ KConfig *konf = TDEGlobal::config ();
KConfigGroupSaver gs( konf, CFG_OCR_KSPELL );
m_userWantsSpellCheck = konf->readBoolEntry(CFG_WANT_KSPELL, true);
@@ -359,7 +359,7 @@ void KOCRBase::slWantSpellcheck( bool wantIt )
}
m_userWantsSpellCheck = wantIt;
- KConfig *konf = KGlobal::config ();
+ KConfig *konf = TDEGlobal::config ();
KConfigGroupSaver gs( konf, CFG_OCR_KSPELL );
konf->writeEntry( CFG_WANT_KSPELL, wantIt );
}
diff --git a/kooka/kocrgocr.cpp b/kooka/kocrgocr.cpp
index 0f879124..fc7e45a7 100644
--- a/kooka/kocrgocr.cpp
+++ b/kooka/kocrgocr.cpp
@@ -93,7 +93,7 @@ EngineError KGOCRDialog::setupGui()
TQVBox *page = ocrPage();
TQ_CHECK_PTR( page );
- KConfig *conf = KGlobal::config ();
+ KConfig *conf = TDEGlobal::config ();
conf->setGroup( CFG_GROUP_OCR_DIA );
//Qt::Horizontal line
@@ -179,7 +179,7 @@ KGOCRDialog::~KGOCRDialog()
void KGOCRDialog::writeConfig( void )
{
- KConfig *conf = KGlobal::config ();
+ KConfig *conf = TDEGlobal::config ();
conf->setGroup( CFG_GROUP_OCR_DIA );
conf->writeEntry( CFG_GOCR_BINARY, TQString(getOCRCmd()));
diff --git a/kooka/kocrkadmos.cpp b/kooka/kocrkadmos.cpp
index 3fed9b2a..58191256 100644
--- a/kooka/kocrkadmos.cpp
+++ b/kooka/kocrkadmos.cpp
@@ -100,7 +100,7 @@ EngineError KadmosDialog::findClassifiers()
{
findClassifierPath();
- KLocale *locale = KGlobal::locale();
+ KLocale *locale = TDEGlobal::locale();
TQStringList allCountries = locale->allLanguagesTwoAlpha ();
for ( TQStringList::Iterator it = allCountries.begin();
it != allCountries.end(); ++it )
@@ -236,7 +236,7 @@ EngineError KadmosDialog::findClassifierPath()
KStandardDirs stdDir;
EngineError err = ENG_OK;
- KConfig *conf = KGlobal::config ();
+ KConfig *conf = TDEGlobal::config ();
KConfigGroupSaver gs( conf, CFG_GROUP_KADMOS );
m_customClassifierPath = conf->readPathEntry( CFG_KADMOS_CLASSIFIER_PATH );
@@ -341,7 +341,7 @@ void KadmosDialog::slFontChanged( int id )
{
m_cbLang->clear();
- KConfig *conf = KGlobal::config ();
+ KConfig *conf = TDEGlobal::config ();
KConfigGroupSaver gs( conf, CFG_GROUP_KADMOS );
diff --git a/kooka/kocrocrad.cpp b/kooka/kocrocrad.cpp
index 00bfb47b..340bc4ad 100644
--- a/kooka/kocrocrad.cpp
+++ b/kooka/kocrocrad.cpp
@@ -104,7 +104,7 @@ EngineError ocradDialog::setupGui()
TQVBox *page = ocrPage();
TQ_CHECK_PTR( page );
- KConfig *conf = KGlobal::config ();
+ KConfig *conf = TDEGlobal::config ();
conf->setGroup( CFG_GROUP_OCR_DIA );
//Qt::Horizontal line
@@ -177,7 +177,7 @@ ocradDialog::~ocradDialog()
void ocradDialog::writeConfig( void )
{
- KConfig *conf = KGlobal::config ();
+ KConfig *conf = TDEGlobal::config ();
conf->setGroup( CFG_GROUP_OCR_DIA );
conf->writeEntry( CFG_OCRAD_BINARY, TQString(getOCRCmd()));
@@ -207,22 +207,22 @@ void ocradDialog::version( const TQString& exe )
{
if( m_proc ) delete m_proc;
- m_proc = new KProcess;
+ m_proc = new TDEProcess;
kdDebug(28000) << "Using " << exe << " as command" << endl;
*m_proc << exe;
*m_proc << TQString("-V");
- connect( m_proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int )),
- this, TQT_SLOT(slReceiveStdIn(KProcess *, char *, int )));
+ connect( m_proc, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int )),
+ this, TQT_SLOT(slReceiveStdIn(TDEProcess *, char *, int )));
- if( ! m_proc->start( KProcess::NotifyOnExit, KProcess::Stdout ) )
+ if( ! m_proc->start( TDEProcess::NotifyOnExit, TDEProcess::Stdout ) )
{
slReceiveStdIn( 0, (char*) "unknown", 7 );
}
}
-void ocradDialog::slReceiveStdIn( KProcess*, char *buffer, int buflen)
+void ocradDialog::slReceiveStdIn( TDEProcess*, char *buffer, int buflen)
{
TQString vstr = TQString::fromUtf8(buffer, buflen);
diff --git a/kooka/kocrocrad.h b/kooka/kocrocrad.h
index 0612b8a3..22b4fa1f 100644
--- a/kooka/kocrocrad.h
+++ b/kooka/kocrocrad.h
@@ -48,7 +48,7 @@
class KSpellConfig;
class KURLRequester;
-class KProcess;
+class TDEProcess;
class TQLabel;
class TQComboBox;
@@ -92,7 +92,7 @@ private:
void version( const TQString& exe );
private slots:
- void slReceiveStdIn( KProcess *proc, char *buffer, int buflen);
+ void slReceiveStdIn( TDEProcess *proc, char *buffer, int buflen);
private:
@@ -100,7 +100,7 @@ private:
KURLRequester *m_orfUrlRequester;
TQComboBox *m_layoutMode;
TQLabel *m_binaryLabel;
- KProcess *m_proc;
+ TDEProcess *m_proc;
int m_version;
};
diff --git a/kooka/kooka.cpp b/kooka/kooka.cpp
index 4750bf07..8d944913 100644
--- a/kooka/kooka.cpp
+++ b/kooka/kooka.cpp
@@ -75,7 +75,7 @@ Kooka::Kooka( const TQCString& deviceToUse)
setXMLFile( "kookaui.rc", true );
setAcceptDrops(false); // Waba: Not (yet?) supported
- KConfig *konf = KGlobal::config ();
+ KConfig *konf = TDEGlobal::config ();
readDockConfig ( konf, DOCK_SIZES );
// then, setup our actions
@@ -109,7 +109,7 @@ void Kooka::createMyGUI( KParts::Part *part )
Kooka::~Kooka()
{
- KConfig *konf = KGlobal::config ();
+ KConfig *konf = TDEGlobal::config ();
m_view->slCloseScanDevice();
writeDockConfig ( konf, DOCK_SIZES );
delete m_printer;
@@ -385,7 +385,7 @@ void Kooka::optionsShowPreviewer()
void Kooka::optionsConfigureToolbars()
{
// use the standard toolbar editor
- saveMainWindowSettings(KGlobal::config(), autoSaveGroup());
+ saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
KEditToolbar dlg(factory());
connect(&dlg, TQT_SIGNAL(newToolbarConfig()), TQT_SLOT(newToolbarConfig()));
dlg.exec();
@@ -394,7 +394,7 @@ void Kooka::optionsConfigureToolbars()
void Kooka::newToolbarConfig()
{
// OK/Apply pressed in the toolbar editor
- applyMainWindowSettings(KGlobal::config(), autoSaveGroup());
+ applyMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
}
void Kooka::optionsPreferences()
diff --git a/kooka/kookapref.cpp b/kooka/kookapref.cpp
index 6b88fb33..d6bb729b 100644
--- a/kooka/kookapref.cpp
+++ b/kooka/kookapref.cpp
@@ -62,7 +62,7 @@ KookaPreferences::KookaPreferences()
// this is the base class for your preferences dialog. it is now
// a Treelist dialog.. but there are a number of other
// possibilities (including Tab, Swallow, and just Plain)
- konf = KGlobal::config ();
+ konf = TDEGlobal::config ();
setupStartupPage();
setupSaveFormatPage();
@@ -200,7 +200,7 @@ TQString KookaPreferences::tryFindBinary( const TQString& bin, const TQString& c
{
/* First check the config files for an entry */
- KConfig *cfg = KGlobal::config();
+ KConfig *cfg = TDEGlobal::config();
cfg->setGroup(CFG_GROUP_OCR_DIA);
TQString res = cfg->readPathEntry( configKey /* CFG_GOCR_BINARY */, "notFound" );
diff --git a/kooka/kookaview.cpp b/kooka/kookaview.cpp
index 85a29d60..45f101f9 100644
--- a/kooka/kookaview.cpp
+++ b/kooka/kookaview.cpp
@@ -96,7 +96,7 @@ KookaView::KookaView( KParts::DockMainWindow *parent, const TQCString& deviceToU
m_mainWindow(parent),
m_ocrResEdit(0)
{
- KIconLoader *loader = KGlobal::iconLoader();
+ KIconLoader *loader = TDEGlobal::iconLoader();
scan_params = 0L;
preview_canvas = 0L;
@@ -294,7 +294,7 @@ KookaView::KookaView( KParts::DockMainWindow *parent, const TQCString& deviceToU
KookaView::~KookaView()
{
- saveProperties( KGlobal::config () );
+ saveProperties( TDEGlobal::config () );
delete preview_canvas;
kdDebug(28000)<< "Finished saving config data" << endl;
@@ -438,7 +438,7 @@ void KookaView::loadStartupImage( void )
kdDebug( 28000) << "Starting to load startup image" << endl;
/* Now set the configured stuff */
- KConfig *konf = KGlobal::config ();
+ KConfig *konf = TDEGlobal::config ();
if( konf )
{
konf->setGroup(GROUP_STARTUP);
@@ -555,7 +555,7 @@ void KookaView::startOCR( KookaImage *img )
{
if( ocrFabric == 0L )
{
- ocrFabric = new KSANEOCR( m_mainDock, KGlobal::config() );
+ ocrFabric = new KSANEOCR( m_mainDock, TDEGlobal::config() );
ocrFabric->setImageCanvas( img_canvas );
connect( ocrFabric, TQT_SIGNAL( newOCRResultText( const TQString& )),
diff --git a/kooka/ksaneocr.cpp b/kooka/ksaneocr.cpp
index f22d83fd..bbaa15a8 100644
--- a/kooka/ksaneocr.cpp
+++ b/kooka/ksaneocr.cpp
@@ -85,7 +85,7 @@ KSANEOCR::KSANEOCR( TQWidget*, KConfig *cfg ):
m_applyFilter(false),
m_unlinkORF(true)
{
- KConfig *konf = KGlobal::config ();
+ KConfig *konf = TDEGlobal::config ();
m_ocrEngine = OCRAD;
m_img = 0L;
m_tmpFile = 0L;
@@ -393,7 +393,7 @@ void KSANEOCR::startOCRAD( )
daemon = 0;
}
- daemon = new KProcess;
+ daemon = new TDEProcess;
TQ_CHECK_PTR(daemon);
*daemon << cmd;
@@ -403,7 +403,7 @@ void KSANEOCR::startOCRAD( )
*daemon << TQString("-l");
*daemon << TQString::number( ocrDia->layoutDetectionMode());
- KConfig *konf = KGlobal::config ();
+ KConfig *konf = TDEGlobal::config ();
KConfigGroupSaver( konf, CFG_GROUP_OCRAD );
TQString format = konf->readEntry( CFG_OCRAD_FORMAT, "utf8");
@@ -425,14 +425,14 @@ void KSANEOCR::startOCRAD( )
m_ocrResultText = "";
- connect(daemon, TQT_SIGNAL(processExited(KProcess *)),
- this, TQT_SLOT( ocradExited(KProcess*)));
- connect(daemon, TQT_SIGNAL(receivedStdout(KProcess *, char*, int)),
- this, TQT_SLOT( ocradStdIn(KProcess*, char*, int)));
- connect(daemon, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)),
- this, TQT_SLOT( ocradStdErr(KProcess*, char*, int)));
+ connect(daemon, TQT_SIGNAL(processExited(TDEProcess *)),
+ this, TQT_SLOT( ocradExited(TDEProcess*)));
+ connect(daemon, TQT_SIGNAL(receivedStdout(TDEProcess *, char*, int)),
+ this, TQT_SLOT( ocradStdIn(TDEProcess*, char*, int)));
+ connect(daemon, TQT_SIGNAL(receivedStderr(TDEProcess *, char*, int)),
+ this, TQT_SLOT( ocradStdErr(TDEProcess*, char*, int)));
- if (!daemon->start(KProcess::NotifyOnExit, KProcess::All))
+ if (!daemon->start(TDEProcess::NotifyOnExit, TDEProcess::All))
{
kdDebug(28000) << "Error starting ocrad-daemon!" << endl;
}
@@ -445,7 +445,7 @@ void KSANEOCR::startOCRAD( )
}
-void KSANEOCR::ocradExited(KProcess* )
+void KSANEOCR::ocradExited(TDEProcess* )
{
kdDebug(28000) << "ocrad exit " << endl;
TQString err;
@@ -462,14 +462,14 @@ void KSANEOCR::ocradExited(KProcess* )
}
-void KSANEOCR::ocradStdErr(KProcess*, char* buffer, int buflen)
+void KSANEOCR::ocradStdErr(TDEProcess*, char* buffer, int buflen)
{
TQString errorBuffer = TQString::fromLocal8Bit(buffer, buflen);
kdDebug(28000) << "ocrad says on stderr: " << errorBuffer << endl;
}
-void KSANEOCR::ocradStdIn(KProcess*, char* buffer, int buflen)
+void KSANEOCR::ocradStdIn(TDEProcess*, char* buffer, int buflen)
{
TQString errorBuffer = TQString::fromLocal8Bit(buffer, buflen);
kdDebug(28000) << "ocrad says on stdin: " << errorBuffer << endl;
@@ -531,16 +531,16 @@ void KSANEOCR::startOCRProcess( void )
daemon = 0;
}
- daemon = new KProcess;
+ daemon = new TDEProcess;
TQ_CHECK_PTR(daemon);
m_ocrResultText = "";
- connect(daemon, TQT_SIGNAL(processExited(KProcess *)),
- this, TQT_SLOT( gocrExited(KProcess*)));
- connect(daemon, TQT_SIGNAL(receivedStdout(KProcess *, char*, int)),
- this, TQT_SLOT( gocrStdIn(KProcess*, char*, int)));
- connect(daemon, TQT_SIGNAL(receivedStderr(KProcess *, char*, int)),
- this, TQT_SLOT( gocrStdErr(KProcess*, char*, int)));
+ connect(daemon, TQT_SIGNAL(processExited(TDEProcess *)),
+ this, TQT_SLOT( gocrExited(TDEProcess*)));
+ connect(daemon, TQT_SIGNAL(receivedStdout(TDEProcess *, char*, int)),
+ this, TQT_SLOT( gocrStdIn(TDEProcess*, char*, int)));
+ connect(daemon, TQT_SIGNAL(receivedStderr(TDEProcess *, char*, int)),
+ this, TQT_SLOT( gocrStdErr(TDEProcess*, char*, int)));
TQString opt;
*daemon << TQFile::encodeName(cmd).data();
@@ -570,7 +570,7 @@ void KSANEOCR::startOCRProcess( void )
m_ocrCurrLine = 0; // Important in gocrStdIn to store the results
- if (!daemon->start(KProcess::NotifyOnExit, KProcess::All))
+ if (!daemon->start(TDEProcess::NotifyOnExit, TDEProcess::All))
{
kdDebug(28000) << "Error starting daemon!" << endl;
}
@@ -715,7 +715,7 @@ void KSANEOCR::slotKadmosResult()
/*
*
*/
-void KSANEOCR::gocrExited(KProcess* d)
+void KSANEOCR::gocrExited(TDEProcess* d)
{
kdDebug(28000) << "daemonExited start !" << endl;
@@ -1051,7 +1051,7 @@ void KSANEOCR::cleanUpFiles( void )
}
-void KSANEOCR::gocrStdErr(KProcess*, char* buffer, int buflen)
+void KSANEOCR::gocrStdErr(TDEProcess*, char* buffer, int buflen)
{
TQString errorBuffer = TQString::fromLocal8Bit(buffer, buflen);
kdDebug(28000) << "gocr says: " << errorBuffer << endl;
@@ -1059,7 +1059,7 @@ void KSANEOCR::gocrStdErr(KProcess*, char* buffer, int buflen)
}
-void KSANEOCR::gocrStdIn(KProcess*, char* buffer, int buflen)
+void KSANEOCR::gocrStdIn(TDEProcess*, char* buffer, int buflen)
{
TQString aux = TQString::fromLocal8Bit(buffer, buflen);
diff --git a/kooka/ksaneocr.h b/kooka/ksaneocr.h
index 1a94a718..7d312aaf 100644
--- a/kooka/ksaneocr.h
+++ b/kooka/ksaneocr.h
@@ -52,7 +52,7 @@
class KOCRBase;
class KookaImage;
class KTempFile;
-class KProcess;
+class TDEProcess;
class TQRect;
class TQPixmap;
class TQStringList;
@@ -222,13 +222,13 @@ private slots:
void slotKadmosResult();
void startOCRProcess( void );
- void gocrStdIn(KProcess*, char* buffer, int buflen);
- void gocrStdErr(KProcess*, char* buffer, int buflen);
- void gocrExited(KProcess*);
+ void gocrStdIn(TDEProcess*, char* buffer, int buflen);
+ void gocrStdErr(TDEProcess*, char* buffer, int buflen);
+ void gocrExited(TDEProcess*);
- void ocradStdIn(KProcess*, char* buffer, int buflen);
- void ocradStdErr(KProcess*, char* buffer, int buflen);
- void ocradExited(KProcess*);
+ void ocradStdIn(TDEProcess*, char* buffer, int buflen);
+ void ocradStdErr(TDEProcess*, char* buffer, int buflen);
+ void ocradExited(TDEProcess*);
/*
* reads orf files from a file and fills the result structures
@@ -241,7 +241,7 @@ private:
KOCRBase *m_ocrProcessDia;
- KProcess *daemon;
+ TDEProcess *daemon;
bool visibleOCRRunning;
KTempFile *m_tmpFile;
diff --git a/kooka/main.cpp b/kooka/main.cpp
index 3b8d6ec0..95788ebe 100644
--- a/kooka/main.cpp
+++ b/kooka/main.cpp
@@ -85,9 +85,9 @@ int main( int argc, char *argv[] )
TDECmdLineArgs::addCmdLineOptions( options ); // Add my own options.
TDEApplication app;
- KGlobal::locale()->insertCatalogue("libkscan");
+ TDEGlobal::locale()->insertCatalogue("libkscan");
KImageIO::registerFormats();
- KIconLoader *loader = KGlobal::iconLoader();
+ KIconLoader *loader = TDEGlobal::iconLoader();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
TQCString devToUse = args->getOption( "d" );
diff --git a/kooka/scanpackager.cpp b/kooka/scanpackager.cpp
index a54fde7c..71b97246 100644
--- a/kooka/scanpackager.cpp
+++ b/kooka/scanpackager.cpp
@@ -117,7 +117,7 @@ ScanPackager::ScanPackager( TQWidget *parent ) : KFileTreeView( parent )
m_currImportDir = m_currCopyDir;
/* Preload frequently used icons */
- KIconLoader *loader = KGlobal::iconLoader();
+ KIconLoader *loader = TDEGlobal::iconLoader();
m_floppyPixmap = loader->loadIcon( "3floppy_unmount", KIcon::Small );
m_grayPixmap = loader->loadIcon( "palette_gray", KIcon::Small );
m_bwPixmap = loader->loadIcon( "palette_lineart", KIcon::Small );
@@ -145,7 +145,7 @@ void ScanPackager::openRoots()
KFileTreeBranch* ScanPackager::openRoot( const KURL& root, bool )
{
- KIconLoader *loader = KGlobal::iconLoader();
+ KIconLoader *loader = TDEGlobal::iconLoader();
/* working on the global branch. FIXME */
m_defaultBranch = addBranch( root, i18n("Kooka Gallery"),
@@ -581,7 +581,7 @@ void ScanPackager::loadImageForItem( KFileTreeViewItem *item )
kdDebug(28000) << "subImage-count: " << img->subImagesCount() << endl;
if( img->subImagesCount() > 1 )
{
- KIconLoader *loader = KGlobal::iconLoader();
+ KIconLoader *loader = TDEGlobal::iconLoader();
kdDebug(28000) << "SubImages existing!" << endl;
/* Start at the image with index 1, that makes one less than are actually in the
diff --git a/kooka/thumbview.cpp b/kooka/thumbview.cpp
index 570459f4..a61dbb6d 100644
--- a/kooka/thumbview.cpp
+++ b/kooka/thumbview.cpp
@@ -86,7 +86,7 @@ ThumbView::~ThumbView()
bool ThumbView::readSettings()
{
- KConfig *cfg = KGlobal::config();
+ KConfig *cfg = TDEGlobal::config();
cfg->setGroup( THUMB_GROUP );
bool dirty = false;
@@ -481,7 +481,7 @@ void ThumbView::clear()
void ThumbView::saveConfig()
{
- KConfig *cfg = KGlobal::config();
+ KConfig *cfg = TDEGlobal::config();
cfg->setGroup( THUMB_GROUP );
cfg->writeEntry( MARGIN_COLOR1, m_marginColor1 );
diff --git a/kpdf/core/generator_pdf/generator_pdf.cpp b/kpdf/core/generator_pdf/generator_pdf.cpp
index 65e3a55a..2f1f857f 100644
--- a/kpdf/core/generator_pdf/generator_pdf.cpp
+++ b/kpdf/core/generator_pdf/generator_pdf.cpp
@@ -842,7 +842,7 @@ TQString PDFGenerator::getDocumentDate( const TQString & data ) const
TQDate d( year, mon, day ); //CHECK: it was mon-1, Jan->0 (??)
TQTime t( hour, min, sec );
if ( d.isValid() && t.isValid() )
- result = KGlobal::locale()->formatDateTime( TQDateTime(d, t), false, true );
+ result = TDEGlobal::locale()->formatDateTime( TQDateTime(d, t), false, true );
else
result = s;
}
diff --git a/kpdf/part.cpp b/kpdf/part.cpp
index 9b798526..43373047 100644
--- a/kpdf/part.cpp
+++ b/kpdf/part.cpp
@@ -127,7 +127,7 @@ Part::Part(TQWidget *parentWidget, const char *widgetName,
connect(this, TQT_SIGNAL(canceled(const TQString &)), this, TQT_SLOT(emitWindowCaption()));
// load catalog for translation
- KGlobal::locale()->insertCatalogue("kpdf");
+ TDEGlobal::locale()->insertCatalogue("kpdf");
// create browser extension (for printing when embedded into browser)
m_bExtension = new BrowserExtension(this);
@@ -428,11 +428,11 @@ bool Part::openFile()
tf.close();
m_temporaryLocalFile = tf.name();
- KProcess *p = new KProcess;
+ TDEProcess *p = new TDEProcess;
*p << app;
*p << m_file << m_temporaryLocalFile;
m_pageView->showText(i18n("Converting from ps to pdf..."), 0);
- connect(p, TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(psTransformEnded()));
+ connect(p, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(psTransformEnded()));
p -> start();
return true;
}
diff --git a/kpdf/shell/shell.cpp b/kpdf/shell/shell.cpp
index 9a2f99b1..f89ffc65 100644
--- a/kpdf/shell/shell.cpp
+++ b/kpdf/shell/shell.cpp
@@ -92,7 +92,7 @@ void Shell::init()
connect( m_part, TQT_SIGNAL( enablePrintAction(bool) ), m_printAction, TQT_SLOT( setEnabled(bool)));
readSettings();
- if (!KGlobal::config()->hasGroup("MainWindow"))
+ if (!TDEGlobal::config()->hasGroup("MainWindow"))
{
KMainWindowInterface kmwi(this);
kmwi.maximize();
@@ -127,21 +127,21 @@ void Shell::openURL( const KURL & url )
void Shell::readSettings()
{
- m_recent->loadEntries( KGlobal::config() );
+ m_recent->loadEntries( TDEGlobal::config() );
m_recent->setEnabled( true ); // force enabling
m_recent->setToolTip( i18n("Click to open a file\nClick and hold to open a recent file") );
- KGlobal::config()->setDesktopGroup();
- bool fullScreen = KGlobal::config()->readBoolEntry( "FullScreen", false );
+ TDEGlobal::config()->setDesktopGroup();
+ bool fullScreen = TDEGlobal::config()->readBoolEntry( "FullScreen", false );
setFullScreen( fullScreen );
}
void Shell::writeSettings()
{
- m_recent->saveEntries( KGlobal::config() );
- KGlobal::config()->setDesktopGroup();
- KGlobal::config()->writeEntry( "FullScreen", m_fullScreenAction->isChecked());
- KGlobal::config()->sync();
+ m_recent->saveEntries( TDEGlobal::config() );
+ TDEGlobal::config()->setDesktopGroup();
+ TDEGlobal::config()->writeEntry( "FullScreen", m_fullScreenAction->isChecked());
+ TDEGlobal::config()->sync();
}
void Shell::setupActions()
@@ -204,7 +204,7 @@ Shell::optionsConfigureToolbars()
void
Shell::applyNewToolbarConfig()
{
- applyMainWindowSettings(KGlobal::config(), "MainWindow");
+ applyMainWindowSettings(TDEGlobal::config(), "MainWindow");
}
void Shell::slotQuit()
diff --git a/kpdf/ui/pageview.cpp b/kpdf/ui/pageview.cpp
index 9642f7a9..cc40fdb2 100644
--- a/kpdf/ui/pageview.cpp
+++ b/kpdf/ui/pageview.cpp
@@ -1513,7 +1513,7 @@ void PageView::updateZoom( ZoomMode newZoomMode )
{
case ZoomFixed:{ //ZoomFixed case
TQString z = d->aZoom->currentText();
- newFactor = KGlobal::locale()->readNumber( z.remove( z.find( '%' ), 1 ) ) / 100.0;
+ newFactor = TDEGlobal::locale()->readNumber( z.remove( z.find( '%' ), 1 ) ) / 100.0;
}break;
case ZoomIn:
newFactor += (newFactor > 0.99) ? ( newFactor > 1.99 ? 0.5 : 0.2 ) : 0.1;
@@ -1597,8 +1597,8 @@ void PageView::updateZoomText()
inserted = true;
if ( !inserted )
selIdx++;
- TQString localValue( KGlobal::locale()->formatNumber( value * 100.0, 2 ) );
- localValue.remove( KGlobal::locale()->decimalSymbol() + double_oh );
+ TQString localValue( TDEGlobal::locale()->formatNumber( value * 100.0, 2 ) );
+ localValue.remove( TDEGlobal::locale()->decimalSymbol() + double_oh );
translated << TQString( "%1%" ).arg( localValue );
}
d->aZoom->setItems( translated );
diff --git a/kpdf/ui/presentationwidget.cpp b/kpdf/ui/presentationwidget.cpp
index 865d8e50..6639dbc5 100644
--- a/kpdf/ui/presentationwidget.cpp
+++ b/kpdf/ui/presentationwidget.cpp
@@ -299,7 +299,7 @@ void PresentationWidget::paintEvent( TQPaintEvent * pe )
{
if (m_width == -1)
{
- TQRect d = KGlobalSettings::desktopGeometry(this);
+ TQRect d = TDEGlobalSettings::desktopGeometry(this);
m_width = d.width();
m_height = d.height();
diff --git a/kpdf/ui/propertiesdialog.cpp b/kpdf/ui/propertiesdialog.cpp
index 718a0635..e00d8cfe 100644
--- a/kpdf/ui/propertiesdialog.cpp
+++ b/kpdf/ui/propertiesdialog.cpp
@@ -88,7 +88,7 @@ PropertiesDialog::PropertiesDialog(TQWidget *parent, KPDFDocument *doc)
width = TQMAX( width, page2Layout->sizeHint().width() + marginHint() + spacingHint() + 31 );
}
// stay inside the 2/3 of the screen width
- TQRect screenContainer = KGlobalSettings::desktopGeometry( this );
+ TQRect screenContainer = TDEGlobalSettings::desktopGeometry( this );
width = TQMIN( width, 2*screenContainer.width()/3 );
resize(width, 1);
}
diff --git a/kpovmodeler/pmcommentedit.cpp b/kpovmodeler/pmcommentedit.cpp
index 92cdbfa3..2fd58468 100644
--- a/kpovmodeler/pmcommentedit.cpp
+++ b/kpovmodeler/pmcommentedit.cpp
@@ -36,7 +36,7 @@ void PMCommentEdit::createTopWidgets( )
m_pEdit = new TQMultiLineEdit( this );
m_pEdit->setTextFormat( TQt::PlainText );
m_pEdit->setWordWrap( TQTextEdit::NoWrap );
- m_pEdit->setFont( KGlobalSettings::fixedFont( ) );
+ m_pEdit->setFont( TDEGlobalSettings::fixedFont( ) );
topLayout( )->addWidget( m_pEdit, 2 );
connect( m_pEdit, TQT_SIGNAL( textChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
diff --git a/kpovmodeler/pmdialogview.cpp b/kpovmodeler/pmdialogview.cpp
index fce0e170..6a2c1455 100644
--- a/kpovmodeler/pmdialogview.cpp
+++ b/kpovmodeler/pmdialogview.cpp
@@ -281,7 +281,7 @@ void PMDialogView::slotHelp( )
{
// Instead of calling invokeBrowser run konqueror directly.
// invokeBrowser was ignoring html anchors.
- url = "konqueror " + KProcess::quote(url);
+ url = "konqueror " + TDEProcess::quote(url);
KRun::runCommand( url );
}
}
diff --git a/kpovmodeler/pmdockwidget.cpp b/kpovmodeler/pmdockwidget.cpp
index 46a028ea..2eff4a8c 100644
--- a/kpovmodeler/pmdockwidget.cpp
+++ b/kpovmodeler/pmdockwidget.cpp
@@ -179,7 +179,7 @@ void PMDockMainWindow::createGUI( Part * part )
if( !d->m_bShellGUIActivated )
{
- loadPlugins( TQT_TQOBJECT(this), this, KGlobal::instance() );
+ loadPlugins( TQT_TQOBJECT(this), this, TDEGlobal::instance() );
createShellGUI();
d->m_bShellGUIActivated = true;
}
@@ -2003,7 +2003,7 @@ void PMDockManager::readConfig(TQDomElement &base)
void PMDockManager::writeConfig( KConfig* c, TQString group )
{
//debug("BEGIN Write Config");
- if ( !c ) c = KGlobal::config();
+ if ( !c ) c = TDEGlobal::config();
if ( group.isEmpty() ) group = "dock_setting_default";
c->setGroup( group );
@@ -2121,7 +2121,7 @@ void PMDockManager::writeConfig( KConfig* c, TQString group )
#include <tqmessagebox.h>
void PMDockManager::readConfig( KConfig* c, TQString group )
{
- if ( !c ) c = KGlobal::config();
+ if ( !c ) c = TDEGlobal::config();
if ( group.isEmpty() ) group = "dock_setting_default";
c->setGroup( group );
diff --git a/kpovmodeler/pmlibrarymanager.cpp b/kpovmodeler/pmlibrarymanager.cpp
index 0e4b17dd..358789a1 100644
--- a/kpovmodeler/pmlibrarymanager.cpp
+++ b/kpovmodeler/pmlibrarymanager.cpp
@@ -82,7 +82,7 @@ void PMLibraryManager::scanLibraries( )
TQStringList libraryDirectories;
// Search for sub directories in /usr/share/kpovmodeler/library
- libraryDirectories = KGlobal::dirs( )->findDirs( "data", "kpovmodeler/library" );
+ libraryDirectories = TDEGlobal::dirs( )->findDirs( "data", "kpovmodeler/library" );
for( TQStringList::Iterator i = libraryDirectories.begin( ); i != libraryDirectories.end( ); ++i )
{
diff --git a/kpovmodeler/pmpart.h b/kpovmodeler/pmpart.h
index b276aaa5..ee2b071d 100644
--- a/kpovmodeler/pmpart.h
+++ b/kpovmodeler/pmpart.h
@@ -62,7 +62,7 @@ class KSelectAction;
class PMComboAction;
class PMSpinBoxAction;
class PMLabelAction;
-class KProcess;
+class TDEProcess;
/**
* The part for kpovmodeler (povray document)
@@ -1032,7 +1032,7 @@ public:
PMBrowserExtension( PMPart* parent )
: KParts::BrowserExtension( parent, "PMBrowserExtension" )
{
- KGlobal::locale()->insertCatalogue("kpovmodeler");
+ TDEGlobal::locale()->insertCatalogue("kpovmodeler");
}
virtual ~PMBrowserExtension( )
diff --git a/kpovmodeler/pmpovrayoutputwidget.cpp b/kpovmodeler/pmpovrayoutputwidget.cpp
index b2230272..bf3962a8 100644
--- a/kpovmodeler/pmpovrayoutputwidget.cpp
+++ b/kpovmodeler/pmpovrayoutputwidget.cpp
@@ -37,7 +37,7 @@ PMPovrayOutputWidget::PMPovrayOutputWidget( TQWidget* parent, const char* name )
m_pTextView = new TQTextEdit( this );
topLayout->addWidget( m_pTextView, 1 );
- m_pTextView->setFont( KGlobalSettings::fixedFont( ) );
+ m_pTextView->setFont( TDEGlobalSettings::fixedFont( ) );
m_pTextView->setTextFormat( TQt::PlainText );
m_pTextView->setReadOnly( true );
diff --git a/kpovmodeler/pmpovrayrenderwidget.cpp b/kpovmodeler/pmpovrayrenderwidget.cpp
index ce7ff716..560d8303 100644
--- a/kpovmodeler/pmpovrayrenderwidget.cpp
+++ b/kpovmodeler/pmpovrayrenderwidget.cpp
@@ -86,13 +86,13 @@ bool PMPovrayRenderWidget::render( const TQByteArray& scene,
dstr->writeRawBytes( scene.data( ), scene.size( ) );
m_pTempFile->close( );
- m_pProcess = new KProcess( );
- connect( m_pProcess, TQT_SIGNAL( receivedStdout( KProcess*, char*, int ) ),
- TQT_SLOT( slotPovrayImage( KProcess*, char*, int ) ) );
- connect( m_pProcess, TQT_SIGNAL( receivedStderr( KProcess*, char*, int ) ),
- TQT_SLOT( slotPovrayMessage( KProcess*, char*, int ) ) );
- connect( m_pProcess, TQT_SIGNAL( processExited( KProcess* ) ),
- TQT_SLOT( slotRenderingFinished( KProcess* ) ) );
+ m_pProcess = new TDEProcess( );
+ connect( m_pProcess, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ),
+ TQT_SLOT( slotPovrayImage( TDEProcess*, char*, int ) ) );
+ connect( m_pProcess, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ),
+ TQT_SLOT( slotPovrayMessage( TDEProcess*, char*, int ) ) );
+ connect( m_pProcess, TQT_SIGNAL( processExited( TDEProcess* ) ),
+ TQT_SLOT( slotRenderingFinished( TDEProcess* ) ) );
*m_pProcess << s_povrayCommand;
@@ -136,7 +136,7 @@ bool PMPovrayRenderWidget::render( const TQByteArray& scene,
m_bPixmapUpToDate = false;
repaint( );
- if( !m_pProcess->start( KProcess::NotifyOnExit, KProcess::AllOutput ) )
+ if( !m_pProcess->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput ) )
{
KMessageBox::error( this, i18n( "Couldn't call povray.\n"
"Please check your installation "
@@ -179,7 +179,7 @@ void PMPovrayRenderWidget::resumeRendering( )
}
}
-void PMPovrayRenderWidget::slotPovrayMessage( KProcess*,
+void PMPovrayRenderWidget::slotPovrayMessage( TDEProcess*,
char* buffer, int buflen )
{
TQString str;
@@ -188,7 +188,7 @@ void PMPovrayRenderWidget::slotPovrayMessage( KProcess*,
emit povrayMessage( str );
}
-void PMPovrayRenderWidget::slotPovrayImage( KProcess*, char* buffer, int buflen )
+void PMPovrayRenderWidget::slotPovrayImage( TDEProcess*, char* buffer, int buflen )
{
int index = 0;
int i;
@@ -349,7 +349,7 @@ void PMPovrayRenderWidget::setPixel( int x, int y, uint c )
}
/**
-void PMPovrayRenderWidget::slotWroteStdin( KProcess* )
+void PMPovrayRenderWidget::slotWroteStdin( TDEProcess* )
{
if( m_pProcess )
m_pProcess->closeStdin( );
@@ -357,7 +357,7 @@ void PMPovrayRenderWidget::slotWroteStdin( KProcess* )
}
*/
-void PMPovrayRenderWidget::slotRenderingFinished( KProcess* )
+void PMPovrayRenderWidget::slotRenderingFinished( TDEProcess* )
{
if( m_pProcess->normalExit( ) )
emit( finished( m_pProcess->exitStatus( ) ) );
diff --git a/kpovmodeler/pmpovrayrenderwidget.h b/kpovmodeler/pmpovrayrenderwidget.h
index 48dc7d35..0f2900f9 100644
--- a/kpovmodeler/pmpovrayrenderwidget.h
+++ b/kpovmodeler/pmpovrayrenderwidget.h
@@ -31,7 +31,7 @@
#include "pmrendermode.h"
#include "pmdragwidget.h"
-class KProcess;
+class TDEProcess;
class KConfig;
class KURL;
class KTempFile;
@@ -130,19 +130,19 @@ protected slots:
/**
* Receive povray messages
*/
- void slotPovrayMessage( KProcess* proc, char* buffer, int buflen );
+ void slotPovrayMessage( TDEProcess* proc, char* buffer, int buflen );
/**
* Receive rendered image
*/
- void slotPovrayImage( KProcess* proc, char* buffer, int buflen );
+ void slotPovrayImage( TDEProcess* proc, char* buffer, int buflen );
/**
* Called when output has been written to the povray process
*/
- //void slotWroteStdin( KProcess* proc );
+ //void slotWroteStdin( TDEProcess* proc );
/**
* Called when the process has finished
*/
- void slotRenderingFinished( KProcess* proc );
+ void slotRenderingFinished( TDEProcess* proc );
protected:
virtual void paintEvent( TQPaintEvent* );
@@ -151,7 +151,7 @@ private:
void setPixel( int x, int y, uint c );
void cleanup( );
- KProcess* m_pProcess;
+ TDEProcess* m_pProcess;
bool m_bSuspended;
PMRenderMode m_renderMode;
TQImage m_image;
diff --git a/kpovmodeler/pmpovraywidget.cpp b/kpovmodeler/pmpovraywidget.cpp
index 04564b93..4cca5e50 100644
--- a/kpovmodeler/pmpovraywidget.cpp
+++ b/kpovmodeler/pmpovraywidget.cpp
@@ -158,7 +158,7 @@ bool PMPovrayWidget::render( const TQByteArray& scene, const PMRenderMode& m,
if( h > dw->height( ) )
h = dw->height( );
#else
- TQRect dw = KGlobalSettings::desktopGeometry(this);
+ TQRect dw = TDEGlobalSettings::desktopGeometry(this);
if( w > dw.width() )
w = dw.width();
if( h > dw.height() )
diff --git a/kpovmodeler/pmrawedit.cpp b/kpovmodeler/pmrawedit.cpp
index 98cc5ec1..5720d615 100644
--- a/kpovmodeler/pmrawedit.cpp
+++ b/kpovmodeler/pmrawedit.cpp
@@ -39,7 +39,7 @@ void PMRawEdit::createTopWidgets( )
m_pEdit = new TQMultiLineEdit( this );
m_pEdit->setTextFormat( TQt::PlainText );
m_pEdit->setWordWrap( TQTextEdit::NoWrap );
- m_pEdit->setFont( KGlobalSettings::fixedFont( ) );
+ m_pEdit->setFont( TDEGlobalSettings::fixedFont( ) );
topLayout( )->addWidget( m_pEdit, 2 );
connect( m_pEdit, TQT_SIGNAL( textChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
diff --git a/kpovmodeler/pmshell.cpp b/kpovmodeler/pmshell.cpp
index fd0c5a73..fe7e8f6d 100644
--- a/kpovmodeler/pmshell.cpp
+++ b/kpovmodeler/pmshell.cpp
@@ -531,7 +531,7 @@ void PMShell::slotSettings( )
void PMShell::slotConfigureToolbars( )
{
- saveMainWindowSettings( KGlobal::config( ), "Appearance" );
+ saveMainWindowSettings( TDEGlobal::config( ), "Appearance" );
KEditToolbar dlg( factory( ) );
connect( &dlg, TQT_SIGNAL( newToolbarConfig( ) ),
this, TQT_SLOT( slotNewToolbarConfig( ) ) );
@@ -543,22 +543,22 @@ void PMShell::slotNewToolbarConfig( )
createGUI( 0 );
createShellGUI( false );
createGUI( m_pPart );
- applyMainWindowSettings( KGlobal::config( ), "Appearance" );
+ applyMainWindowSettings( TDEGlobal::config( ), "Appearance" );
}
void PMShell::updateGUI( )
{
- saveMainWindowSettings( KGlobal::config( ), "Appearance" );
+ saveMainWindowSettings( TDEGlobal::config( ), "Appearance" );
createGUI( 0 );
createShellGUI( false );
createGUI( m_pPart );
- applyMainWindowSettings( KGlobal::config( ), "Appearance" );
+ applyMainWindowSettings( TDEGlobal::config( ), "Appearance" );
}
void PMShell::saveOptions( )
{
kdDebug( PMArea ) << "Saving configuration" << endl;
- KConfig* config = KGlobal::config( );
+ KConfig* config = TDEGlobal::config( );
// set group
config->setGroup( "Appearance" );
diff --git a/kpovmodeler/pmtreeview.cpp b/kpovmodeler/pmtreeview.cpp
index a555e12e..e1fa9e97 100644
--- a/kpovmodeler/pmtreeview.cpp
+++ b/kpovmodeler/pmtreeview.cpp
@@ -541,8 +541,8 @@ void PMTreeView::viewportMouseMoveEvent( TQMouseEvent *e )
int y = e->pos( ).y( );
//Is it time to start a drag?
- if( abs( x - m_pressedPos.x( ) ) > KGlobalSettings::dndEventDelay( ) ||
- abs( y - m_pressedPos.y( ) ) > KGlobalSettings::dndEventDelay( ) )
+ if( abs( x - m_pressedPos.x( ) ) > TDEGlobalSettings::dndEventDelay( ) ||
+ abs( y - m_pressedPos.y( ) ) > TDEGlobalSettings::dndEventDelay( ) )
{
m_selectOnReleaseEvent = false;
diff --git a/kruler/klineal.cpp b/kruler/klineal.cpp
index b5e45250..b539f6e9 100644
--- a/kruler/klineal.cpp
+++ b/kruler/klineal.cpp
@@ -96,7 +96,7 @@ KLineal::KLineal(TQWidget*parent,const char* name):KMainWindow(parent,name){
setMaximumSize(8000,8000);
KConfig *cfg = kapp->config();
TQColor defaultColor = DEFAULT_RULER_COLOR;
- TQFont defaultFont(KGlobalSettings::generalFont().family(), 8);
+ TQFont defaultFont(TDEGlobalSettings::generalFont().family(), 8);
defaultFont.setPixelSize(8);
if (cfg) {
cfg->setGroup(CFG_GROUP_SETTINGS);
@@ -114,7 +114,7 @@ KLineal::KLineal(TQWidget*parent,const char* name):KMainWindow(parent,name){
mLabel = new TQLabel(this);
mLabel->setGeometry(0,height()-12,32,12);
mLabel->setBackgroundOrigin(ParentOrigin);
- TQFont labelFont(KGlobalSettings::generalFont().family(), 10);
+ TQFont labelFont(TDEGlobalSettings::generalFont().family(), 10);
labelFont.setPixelSize(10);
mLabel->setFont(labelFont);
TQWhatsThis::add(mLabel,
@@ -125,7 +125,7 @@ KLineal::KLineal(TQWidget*parent,const char* name):KMainWindow(parent,name){
mColorLabel->resize(45,12);
mColorLabel->setPaletteBackgroundColor(mColor);
mColorLabel->hide();
- TQFont colorFont(KGlobalSettings::fixedFont().family(), 10);
+ TQFont colorFont(TDEGlobalSettings::fixedFont().family(), 10);
colorFont.setPixelSize(10);
mColorLabel->setFont(colorFont);
mColorLabel->move(mLabel->pos() + TQPoint(0, 20));
@@ -283,7 +283,7 @@ void KLineal::setOrientation(int inOrientation) {
rotateRect(r, center, nineties);
- TQRect desktop = KGlobalSettings::desktopGeometry(this);
+ TQRect desktop = TDEGlobalSettings::desktopGeometry(this);
if (r.top() < desktop.top())
r.moveTop( desktop.top() );
if (r.bottom() > desktop.bottom())
@@ -321,7 +321,7 @@ void KLineal::reLength(int percentOfScreen) {
if (percentOfScreen < 10) {
return;
}
- TQRect r = KGlobalSettings::desktopGeometry(this);
+ TQRect r = TDEGlobalSettings::desktopGeometry(this);
if (mOrientation == North || mOrientation == South) {
mLongEdgeLen = r.width() * percentOfScreen / 100;
@@ -351,7 +351,7 @@ void KLineal::setFullLength() {
reLength(100);
}
void KLineal::choseColor() {
- TQRect r = KGlobalSettings::desktopGeometry(this);
+ TQRect r = TDEGlobalSettings::desktopGeometry(this);
TQPoint pos = TQCursor::pos();
if (pos.x() + mColorSelector.width() > r.width()) {
diff --git a/ksnapshot/ksnapshot.cpp b/ksnapshot/ksnapshot.cpp
index e5237351..a6e1abcb 100644
--- a/ksnapshot/ksnapshot.cpp
+++ b/ksnapshot/ksnapshot.cpp
@@ -94,7 +94,7 @@ KSnapshot::KSnapshot(TQWidget *parent, const char *name, bool grabCurrent)
grabber->releaseMouse();
grabber->hide();
- KConfig *conf=KGlobal::config();
+ KConfig *conf=TDEGlobal::config();
conf->setGroup("GENERAL");
mainWidget->setDelay(conf->readNumEntry("delay",0));
mainWidget->setMode( conf->readNumEntry( "mode", 0 ) );
@@ -110,7 +110,7 @@ KSnapshot::KSnapshot(TQWidget *parent, const char *name, bool grabCurrent)
connect( &updateTimer, TQT_SIGNAL( timeout() ), TQT_TQOBJECT(this), TQT_SLOT( updatePreview() ) );
TQTimer::singleShot( 0, TQT_TQOBJECT(this), TQT_SLOT( updateCaption() ) );
- KHelpMenu *helpMenu = new KHelpMenu(this, KGlobal::instance()->aboutData(), false);
+ KHelpMenu *helpMenu = new KHelpMenu(this, TDEGlobal::instance()->aboutData(), false);
TQPushButton *helpButton = actionButton( Help );
helpButton->setPopup(helpMenu->menu());
@@ -361,7 +361,7 @@ void KSnapshot::slotWindowGrabbed( const TQPixmap &pix )
void KSnapshot::closeEvent( TQCloseEvent * e )
{
- KConfig *conf=KGlobal::config();
+ KConfig *conf=TDEGlobal::config();
conf->setGroup("GENERAL");
conf->writeEntry("delay",mainWidget->delay());
conf->writeEntry("mode",mainWidget->mode());
diff --git a/ksnapshot/ksnapshot.h b/ksnapshot/ksnapshot.h
index a0490c9f..4ccaaeb6 100644
--- a/ksnapshot/ksnapshot.h
+++ b/ksnapshot/ksnapshot.h
@@ -74,7 +74,7 @@ class KSnapshotPreview : public TQLabel
void mouseMoveEvent(TQMouseEvent * e)
{
if (mClickPt != TQPoint(0, 0) &&
- (e->pos() - mClickPt).manhattanLength() > KGlobalSettings::dndEventDelay())
+ (e->pos() - mClickPt).manhattanLength() > TDEGlobalSettings::dndEventDelay())
{
mClickPt = TQPoint(0, 0);
emit startDrag();
diff --git a/ksnapshot/regiongrabber.cpp b/ksnapshot/regiongrabber.cpp
index 101f3ef6..9db7ed2f 100644
--- a/ksnapshot/regiongrabber.cpp
+++ b/ksnapshot/regiongrabber.cpp
@@ -57,7 +57,7 @@ void SizeTip::positionTip( const TQRect &rect )
if ( rect.intersects( tipRect ) )
{
- TQRect deskR = KGlobalSettings::desktopGeometry( TQPoint( 0, 0 ) );
+ TQRect deskR = TDEGlobalSettings::desktopGeometry( TQPoint( 0, 0 ) );
tipRect.moveCenter( TQPoint( deskR.width()/2, deskR.height()/2 ) );
if ( !rect.contains( tipRect, true ) && rect.intersects( tipRect ) )
diff --git a/ksvg/impl/SVGTestsImpl.cc b/ksvg/impl/SVGTestsImpl.cc
index b88de60a..4ead2a8c 100644
--- a/ksvg/impl/SVGTestsImpl.cc
+++ b/ksvg/impl/SVGTestsImpl.cc
@@ -92,7 +92,7 @@ bool SVGTestsImpl::ok()
for(unsigned int i = 0;i < m_systemLanguage->numberOfItems();i++)
{
TQString value = m_systemLanguage->getItem(i)->string();
- if(value.isEmpty() || value != (KGlobal::locale()->language()).left(2))
+ if(value.isEmpty() || value != (TDEGlobal::locale()->language()).left(2))
return false;
}
return true;
diff --git a/ksvg/plugin/ksvg_factory.cpp b/ksvg/plugin/ksvg_factory.cpp
index a273e5bf..d6f5ed6c 100644
--- a/ksvg/plugin/ksvg_factory.cpp
+++ b/ksvg/plugin/ksvg_factory.cpp
@@ -35,7 +35,7 @@ extern "C"
{
void *init_libksvgplugin()
{
- KGlobal::locale()->insertCatalogue("ksvgplugin");
+ TDEGlobal::locale()->insertCatalogue("ksvgplugin");
return new KSVGPluginFactory();
}
}
diff --git a/kuickshow/src/filecache.cpp b/kuickshow/src/filecache.cpp
index 2fb4f6df..bb205a36 100644
--- a/kuickshow/src/filecache.cpp
+++ b/kuickshow/src/filecache.cpp
@@ -68,7 +68,7 @@ TQString FileCache::tempDir()
KTempDir * FileCache::createTempDir()
{
- TQString tmpName = TQString::fromLatin1( KGlobal::instance()->instanceName() );
+ TQString tmpName = TQString::fromLatin1( TDEGlobal::instance()->instanceName() );
tmpName.append( TQString::number( getpid() ) );
TQString dirName = locateLocal( "tmp", tmpName );
KTempDir *dir = new KTempDir( dirName );
diff --git a/kuickshow/src/filefinder.cpp b/kuickshow/src/filefinder.cpp
index ae9914fe..f6a07e32 100644
--- a/kuickshow/src/filefinder.cpp
+++ b/kuickshow/src/filefinder.cpp
@@ -51,16 +51,16 @@ FileFinder::FileFinder( TQWidget *parent, const char *name )
setAutoDeleteCompletionObject( true );
setFocusPolicy( TQ_ClickFocus );
- KConfig *config = KGlobal::config();
+ KConfig *config = TDEGlobal::config();
KConfigGroupSaver cs( config, "GeneralConfiguration" );
- setCompletionMode( (KGlobalSettings::Completion)
+ setCompletionMode( (TDEGlobalSettings::Completion)
config->readNumEntry( "FileFinderCompletionMode",
- KGlobalSettings::completionMode()));
+ TDEGlobalSettings::completionMode()));
}
FileFinder::~FileFinder()
{
- KConfig *config = KGlobal::config();
+ KConfig *config = TDEGlobal::config();
KConfigGroupSaver cs( config, "GeneralConfiguration" );
config->writeEntry( "FileFinderCompletionMode", completionMode() );
}
diff --git a/kuickshow/src/filewidget.cpp b/kuickshow/src/filewidget.cpp
index 2662df41..ae7e79b6 100644
--- a/kuickshow/src/filewidget.cpp
+++ b/kuickshow/src/filewidget.cpp
@@ -43,16 +43,16 @@ FileWidget::FileWidget( const KURL& url, TQWidget *parent, const char *name )
setEnableDirHighlighting( true );
#if TDE_VERSION >= 310
- setViewConfig( KGlobal::config(), "Filebrowser" );
+ setViewConfig( TDEGlobal::config(), "Filebrowser" );
#endif
- readConfig( KGlobal::config(), "Filebrowser" );
+ readConfig( TDEGlobal::config(), "Filebrowser" );
setView( KFile::Default );
// setOnlyDoubleClickSelectsFiles( true );
reloadConfiguration();
- completionObject()->setCompletionMode( KGlobalSettings::CompletionAuto );
- dirCompletionObject()->setCompletionMode( KGlobalSettings::CompletionAuto);
+ completionObject()->setCompletionMode( TDEGlobalSettings::CompletionAuto );
+ dirCompletionObject()->setCompletionMode( TDEGlobalSettings::CompletionAuto);
slotViewChanged();
connect( this, TQT_SIGNAL( viewChanged( KFileView * )),
@@ -155,8 +155,8 @@ void FileWidget::findCompletion( const TQString& text )
text.find('/') != -1 ) {
TQString t = m_fileFinder->completion()->makeCompletion( text );
- if (m_fileFinder->completionMode() == KGlobalSettings::CompletionPopup ||
- m_fileFinder->completionMode() == KGlobalSettings::CompletionPopupAuto)
+ if (m_fileFinder->completionMode() == TDEGlobalSettings::CompletionPopup ||
+ m_fileFinder->completionMode() == TDEGlobalSettings::CompletionPopupAuto)
m_fileFinder->setCompletedItems(
m_fileFinder->completion()->allMatches() );
else
diff --git a/kuickshow/src/imagewindow.cpp b/kuickshow/src/imagewindow.cpp
index 51367f28..6b71a758 100644
--- a/kuickshow/src/imagewindow.cpp
+++ b/kuickshow/src/imagewindow.cpp
@@ -321,7 +321,7 @@ void ImageWindow::centerImage()
int w, h;
if ( myIsFullscreen )
{
- TQRect desktopRect = KGlobalSettings::desktopGeometry( this );
+ TQRect desktopRect = TDEGlobalSettings::desktopGeometry( this );
w = desktopRect.width();
h = desktopRect.height();
}
@@ -1128,7 +1128,7 @@ int ImageWindow::desktopWidth( bool totalScreen ) const
{
if ( myIsFullscreen || totalScreen )
{
- return KGlobalSettings::desktopGeometry(topLevelWidget()).width();
+ return TDEGlobalSettings::desktopGeometry(topLevelWidget()).width();
} else
return Kuick::workArea().width();
}
@@ -1137,7 +1137,7 @@ int ImageWindow::desktopWidth( bool totalScreen ) const
int ImageWindow::desktopHeight( bool totalScreen ) const
{
if ( myIsFullscreen || totalScreen ) {
- return KGlobalSettings::desktopGeometry(topLevelWidget()).height();
+ return TDEGlobalSettings::desktopGeometry(topLevelWidget()).height();
} else {
return Kuick::workArea().height();
}
@@ -1146,7 +1146,7 @@ int ImageWindow::desktopHeight( bool totalScreen ) const
TQSize ImageWindow::maxImageSize() const
{
if ( myIsFullscreen ) {
- return KGlobalSettings::desktopGeometry(topLevelWidget()).size();
+ return TDEGlobalSettings::desktopGeometry(topLevelWidget()).size();
}
else {
return Kuick::workArea().size() - Kuick::frameSize( winId() );
@@ -1193,7 +1193,7 @@ bool ImageWindow::canZoomTo( int newWidth, int newHeight )
if ( !ImlibWidget::canZoomTo( newWidth, newHeight ) )
return false;
- TQSize desktopSize = KGlobalSettings::desktopGeometry(topLevelWidget()).size();
+ TQSize desktopSize = TDEGlobalSettings::desktopGeometry(topLevelWidget()).size();
int desktopArea = desktopSize.width() * desktopSize.height();
int imageArea = newWidth * newHeight;
diff --git a/kuickshow/src/kuickconfigdlg.cpp b/kuickshow/src/kuickconfigdlg.cpp
index 140c90d5..263e98e7 100644
--- a/kuickshow/src/kuickconfigdlg.cpp
+++ b/kuickshow/src/kuickconfigdlg.cpp
@@ -81,7 +81,7 @@ void KuickConfigDialog::applyConfig()
imageKeyChooser->save();
browserKeyChooser->save();
- KGlobal::config()->sync();
+ TDEGlobal::config()->sync();
}
diff --git a/kuickshow/src/kuickdata.cpp b/kuickshow/src/kuickdata.cpp
index 528d1aa0..d0c3a9dd 100644
--- a/kuickshow/src/kuickdata.cpp
+++ b/kuickshow/src/kuickdata.cpp
@@ -70,7 +70,7 @@ KuickData::~KuickData()
void KuickData::load()
{
- KConfig *kc = KGlobal::config();
+ KConfig *kc = TDEGlobal::config();
KuickData def;
@@ -134,7 +134,7 @@ void KuickData::load()
void KuickData::save()
{
- KConfig *kc = KGlobal::config();
+ KConfig *kc = TDEGlobal::config();
kc->setGroup( "GeneralConfiguration" );
kc->writeEntry( "FileFilter", fileFilter );
diff --git a/kuickshow/src/kuickshow.cpp b/kuickshow/src/kuickshow.cpp
index 86be3f7a..0b83deae 100644
--- a/kuickshow/src/kuickshow.cpp
+++ b/kuickshow/src/kuickshow.cpp
@@ -114,7 +114,7 @@ KuickShow::KuickShow( const char *name )
connect( m_slideTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( nextSlide() ));
- KConfig *kc = KGlobal::config();
+ KConfig *kc = TDEGlobal::config();
bool isDir = false; // true if we get a directory on the commandline
@@ -253,7 +253,7 @@ void KuickShow::initGUI( const KURL& startDir )
coll, "kuick_print" );
print->setText( i18n("Print Image...") );
- KAction *configure = new KAction( i18n("Configure %1...").arg( KGlobal::instance()->aboutData()->programName() ), "configure",
+ KAction *configure = new KAction( i18n("Configure %1...").arg( TDEGlobal::instance()->aboutData()->programName() ), "configure",
KShortcut(),
TQT_TQOBJECT(this), TQT_SLOT( configuration() ),
coll, "kuick_configure" );
@@ -374,7 +374,7 @@ void KuickShow::initGUI( const KURL& startDir )
fileWidget->setFocus();
- KConfig *kc = KGlobal::config();
+ KConfig *kc = TDEGlobal::config();
kc->setGroup("SessionSettings");
bool oneWindow = kc->readBoolEntry("OpenImagesInActiveWindow", true );
oneWindowAction->setChecked( oneWindow );
@@ -1197,7 +1197,7 @@ void KuickShow::saveProperties( KConfig *kc )
void KuickShow::saveSettings()
{
- KConfig *kc = KGlobal::config();
+ KConfig *kc = TDEGlobal::config();
kc->setGroup("SessionSettings");
if ( oneWindowAction )
diff --git a/kuickshow/src/printing.cpp b/kuickshow/src/printing.cpp
index 0d003a0a..7d822f96 100644
--- a/kuickshow/src/printing.cpp
+++ b/kuickshow/src/printing.cpp
@@ -82,7 +82,7 @@ bool Printing::printImageWithTQt( const TQString& filename, KPrinter& printer,
p.begin( &printer );
TQPaintDeviceMetrics metrics( &printer );
- p.setFont( KGlobalSettings::generalFont() );
+ p.setFont( TDEGlobalSettings::generalFont() );
TQFontMetrics fm = p.fontMetrics();
int w = metrics.width();
diff --git a/kview/config/kviewconfmodules.cpp b/kview/config/kviewconfmodules.cpp
index e994d8ed..2b0a8537 100644
--- a/kview/config/kviewconfmodules.cpp
+++ b/kview/config/kviewconfmodules.cpp
@@ -57,16 +57,16 @@ KViewGeneralConfig::~KViewGeneralConfig()
void KViewGeneralConfig::save()
{
- KConfigGroup cfgGroup( KGlobal::config(), "KView General" );
+ KConfigGroup cfgGroup( TDEGlobal::config(), "KView General" );
m_savedPosition = m_pResizeGroup->id( m_pResizeGroup->selected() );
cfgGroup.writeEntry( "Resize Mode", m_savedPosition );
emit changed( false );
- KGlobal::config()->sync();
+ TDEGlobal::config()->sync();
}
void KViewGeneralConfig::load()
{
- KConfigGroup cfgGroup( KGlobal::config(), "KView General" );
+ KConfigGroup cfgGroup( TDEGlobal::config(), "KView General" );
int m_savedPosition = cfgGroup.readNumEntry( "Resize Mode", 2 );
if( m_savedPosition < 0 || m_savedPosition > 3 )
m_savedPosition = 2;
diff --git a/kview/kview.cpp b/kview/kview.cpp
index 03951c4a..e48885ac 100644
--- a/kview/kview.cpp
+++ b/kview/kview.cpp
@@ -105,7 +105,7 @@ KView::KView()
connect( m_pCanvas->widget(), TQT_SIGNAL( cursorPos( const TQPoint & ) ), TQT_SLOT( cursorPos( const TQPoint & ) ) );
- m_paRecent->loadEntries( KGlobal::config() );
+ m_paRecent->loadEntries( TDEGlobal::config() );
if (!initialGeometrySet())
resize(500, 350);
readSettings();
@@ -151,8 +151,8 @@ KView::KView()
KView::~KView()
{
- saveSettings( KGlobal::config() );
- KGlobal::config()->sync();
+ saveSettings( TDEGlobal::config() );
+ TDEGlobal::config()->sync();
}
void KView::load( const KURL & url )
@@ -167,7 +167,7 @@ void KView::load( const KURL & url )
// would do:
TQString directory = url.directory();
TQString key = TQString::fromLatin1( "load_image" );
- KConfig * config = KGlobal::config();
+ KConfig * config = TDEGlobal::config();
config->setGroup( TQString::fromLatin1( "Recent Dirs" ) );
TQStringList result = config->readPathListEntry( key );
@@ -243,7 +243,7 @@ void KView::readSettings() // KConfig * config )
{
// read settings from config/kviewrc
kdDebug( 4600 ) << k_funcinfo << endl;
- KConfigGroup cfgGroup( KGlobal::config(), "KView General" );
+ KConfigGroup cfgGroup( TDEGlobal::config(), "KView General" );
m_nResizeMode = cfgGroup.readNumEntry( "Resize Mode", 2 );
kdDebug( 4600 ) << "m_nResizeMode = " << m_nResizeMode << endl;
loadPlugins();
@@ -346,16 +346,16 @@ void KView::slotUpdateFullScreen( bool set )
m_bFullscreen = set;
if( set )
{ // switch to FullScreen mode
- saveMainWindowSettings( KGlobal::config(), "nonFullScreen MainWindow" );
+ saveMainWindowSettings( TDEGlobal::config(), "nonFullScreen MainWindow" );
showFullScreen();
- applyMainWindowSettings( KGlobal::config(), "FullScreen MainWindow" );
+ applyMainWindowSettings( TDEGlobal::config(), "FullScreen MainWindow" );
m_paShowMenubar->setChecked( ! menuBar()->isHidden() );
}
else
{ // leave FullScreen mode
- saveMainWindowSettings( KGlobal::config(), "FullScreen MainWindow" );
+ saveMainWindowSettings( TDEGlobal::config(), "FullScreen MainWindow" );
showNormal();
- applyMainWindowSettings( KGlobal::config(), "nonFullScreen MainWindow" );
+ applyMainWindowSettings( TDEGlobal::config(), "nonFullScreen MainWindow" );
m_paShowMenubar->setChecked( ! menuBar()->isHidden() );
handleResize();
}
@@ -378,14 +378,14 @@ void KView::slotPreferences()
{
dlg = new KSettings::Dialog( this );
//dlg = new KConfigureDialog( KConfigureDialog::Configurable, this );
- //dlg->addPluginInfos( KPluginInfo::fromKPartsInstanceName( instance()->instanceName(), KGlobal::config(), "KParts Plugins" ) );
+ //dlg->addPluginInfos( KPluginInfo::fromKPartsInstanceName( instance()->instanceName(), TDEGlobal::config(), "KParts Plugins" ) );
}
dlg->show();
}
void KView::slotConfigureToolbars()
{
- saveMainWindowSettings( KGlobal::config(), "MainWindow" );
+ saveMainWindowSettings( TDEGlobal::config(), "MainWindow" );
KEditToolbar dlg( factory() );
connect( &dlg, TQT_SIGNAL( newToolbarConfig() ), TQT_SLOT( slotNewToolbarConfig() ) );
dlg.exec();
@@ -393,12 +393,12 @@ void KView::slotConfigureToolbars()
void KView::slotNewToolbarConfig()
{
- applyMainWindowSettings( KGlobal::config(), "MainWindow" );
+ applyMainWindowSettings( TDEGlobal::config(), "MainWindow" );
}
void KView::reloadConfig()
{
- readSettings(); //KGlobal::config() );
+ readSettings(); //TDEGlobal::config() );
}
void KView::enableAction( const char * name, bool b )
diff --git a/kview/kviewviewer/kviewkonqextension.cpp b/kview/kviewviewer/kviewkonqextension.cpp
index 2d4f8bb9..0fba3ab0 100644
--- a/kview/kviewviewer/kviewkonqextension.cpp
+++ b/kview/kviewviewer/kviewkonqextension.cpp
@@ -38,7 +38,7 @@ KViewKonqExtension::KViewKonqExtension( KImageViewer::Canvas * canvas,
m_pViewer( parent ),
m_pCanvas( canvas )
{
- KGlobal::locale()->insertCatalogue("kview");
+ TDEGlobal::locale()->insertCatalogue("kview");
}
void KViewKonqExtension::setXYOffset( int x, int y )
diff --git a/kview/kviewviewer/kviewviewer.cpp b/kview/kviewviewer/kviewviewer.cpp
index dbfa1c92..521e5d8c 100644
--- a/kview/kviewviewer/kviewviewer.cpp
+++ b/kview/kviewviewer/kviewviewer.cpp
@@ -649,7 +649,7 @@ void KViewViewer::setZoom( const TQString & newZoom )
if( newZoom == "33%" )
zoom = 1.0 / 3.0;
else
- zoom = KGlobal::locale()->readNumber( z ) / 100;
+ zoom = TDEGlobal::locale()->readNumber( z ) / 100;
m_pCanvas->setZoom( zoom );
}
diff --git a/kview/modules/presenter/kviewpresenter.cpp b/kview/modules/presenter/kviewpresenter.cpp
index 0fc6bfe2..7335f1af 100644
--- a/kview/modules/presenter/kviewpresenter.cpp
+++ b/kview/modules/presenter/kviewpresenter.cpp
@@ -353,7 +353,7 @@ void KViewPresenter::makeCurrent( TQListViewItem * item )
else
{
m_pCurrentItem = static_cast<ImageListItem*>( item );
- m_pCurrentItem->setPixmap( 0, KGlobal::iconLoader()->loadIcon( "1rightarrow", KIcon::Small ) );
+ m_pCurrentItem->setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "1rightarrow", KIcon::Small ) );
m_pImageList->m_pListView->ensureItemVisible( m_pCurrentItem );
}
}
diff --git a/kview/modules/scale/kfloatspinbox.cpp b/kview/modules/scale/kfloatspinbox.cpp
index 6870a20b..c260119e 100644
--- a/kview/modules/scale/kfloatspinbox.cpp
+++ b/kview/modules/scale/kfloatspinbox.cpp
@@ -86,12 +86,12 @@ void KFloatSpinBox::setValueBlocking( float value )
TQString KFloatSpinBox::mapValueToText( int value )
{
- return KGlobal::locale()->formatNumber( (float)value / (float)m_factor, 4 );
+ return TDEGlobal::locale()->formatNumber( (float)value / (float)m_factor, 4 );
}
int KFloatSpinBox::mapTextToValue( bool * ok )
{
- return (int)( m_factor * KGlobal::locale()->readNumber( text(), ok ) );
+ return (int)( m_factor * TDEGlobal::locale()->readNumber( text(), ok ) );
}
void KFloatSpinBox::valueChange()
diff --git a/kviewshell/documentWidget.cpp b/kviewshell/documentWidget.cpp
index 843403f9..4db64d0b 100644
--- a/kviewshell/documentWidget.cpp
+++ b/kviewshell/documentWidget.cpp
@@ -90,7 +90,7 @@ DocumentWidget::DocumentWidget(TQWidget *parent, PageView *sv, DocumentPageCache
if (!busyIcon)
{
- busyIcon = new TQPixmap(KGlobal::iconLoader()->loadIcon("gear", KIcon::NoGroup, KIcon::SizeMedium));
+ busyIcon = new TQPixmap(TDEGlobal::iconLoader()->loadIcon("gear", KIcon::NoGroup, KIcon::SizeMedium));
URShadow = new TQPixmap();
BRShadow = new TQPixmap();
@@ -316,7 +316,7 @@ void DocumentWidget::paintEvent(TQPaintEvent *e)
#ifdef DEBUG_DOCUMENTWIDGET
kdDebug(1223) << "Underline hyperlink \"" << pageData->hyperLinkList[i].linkText << "\"" << endl;
#endif
- p.fillRect(x, y, w, h, KGlobalSettings::linkColor());
+ p.fillRect(x, y, w, h, TDEGlobalSettings::linkColor());
}
}
}
diff --git a/kviewshell/kviewpart.cpp b/kviewshell/kviewpart.cpp
index e4dbf633..c09ebeb8 100644
--- a/kviewshell/kviewpart.cpp
+++ b/kviewshell/kviewpart.cpp
@@ -61,7 +61,7 @@ KViewPart::KViewPart(TQWidget *parentWidget, const char *widgetName, TQObject *p
: KViewPart_Iface(parent, name), showSidebar(0), saveAction(0), partManager(0),
multiPageLibrary(TQString()), aboutDialog(0)
{
- KGlobal::locale()->insertCatalogue("kviewshell");
+ TDEGlobal::locale()->insertCatalogue("kviewshell");
tmpUnzipped = 0L;
pageChangeIsConnected = false;
@@ -419,7 +419,7 @@ TQString KViewPart::pageSizeDescription()
TQString size = " ";
if (s.formatNumber() == -1) {
- if (KGlobal::locale()-> measureSystem() == KLocale::Metric)
+ if (TDEGlobal::locale()-> measureSystem() == KLocale::Metric)
size += TQString("%1x%2 mm").arg(s.width().getLength_in_mm(), 0, 'f', 0).arg(s.height().getLength_in_mm(), 0, 'f', 0);
else
size += TQString("%1x%2 in").arg(s.width().getLength_in_inch(), 0, 'g', 2).arg(s.height().getLength_in_inch(), 0, 'g', 2);
diff --git a/kviewshell/kviewshell.cpp b/kviewshell/kviewshell.cpp
index e3bde285..e9ffba38 100644
--- a/kviewshell/kviewshell.cpp
+++ b/kviewshell/kviewshell.cpp
@@ -288,7 +288,7 @@ void KViewShell::slotConfigureKeys()
void KViewShell::slotEditToolbar()
{
- saveMainWindowSettings( KGlobal::config(), autoSaveGroup() );
+ saveMainWindowSettings( TDEGlobal::config(), autoSaveGroup() );
KEditToolbar dlg(factory());
connect( &dlg, TQT_SIGNAL( newToolbarConfig() ), TQT_SLOT( slotNewToolbarConfig() ) );
dlg.exec();
@@ -297,7 +297,7 @@ void KViewShell::slotEditToolbar()
void KViewShell::slotNewToolbarConfig()
{
- applyMainWindowSettings( KGlobal::config(), autoSaveGroup() );
+ applyMainWindowSettings( TDEGlobal::config(), autoSaveGroup() );
}
void KViewShell::dragEnterEvent(TQDragEnterEvent *event)
diff --git a/kviewshell/marklist.cpp b/kviewshell/marklist.cpp
index 65c671a1..31b257f2 100644
--- a/kviewshell/marklist.cpp
+++ b/kviewshell/marklist.cpp
@@ -63,7 +63,7 @@ ThumbnailWidget::ThumbnailWidget(MarkListWidget* _parent, const PageNumber& _pag
if (!waitIcon)
{
- waitIcon = new TQPixmap(KGlobal::iconLoader()->loadIcon("gear", KIcon::NoGroup, KIcon::SizeMedium));
+ waitIcon = new TQPixmap(TDEGlobal::iconLoader()->loadIcon("gear", KIcon::NoGroup, KIcon::SizeMedium));
}
}
@@ -188,11 +188,11 @@ MarkListWidget::MarkListWidget(TQWidget* _parent, MarkList* _markList, const Pag
pageLabel = new TQLabel(TQString("%1").arg(pageNumber), this);
bottomLayout->addWidget(pageLabel, 1);
- _backgroundColor = KGlobalSettings::baseColor();
+ _backgroundColor = TDEGlobalSettings::baseColor();
// Alternate between colors.
- if ((pageNumber % 2 == 0) && KGlobalSettings::alternateBackgroundColor().isValid())
- _backgroundColor = KGlobalSettings::alternateBackgroundColor();
+ if ((pageNumber % 2 == 0) && TDEGlobalSettings::alternateBackgroundColor().isValid())
+ _backgroundColor = TDEGlobalSettings::alternateBackgroundColor();
setPaletteBackgroundColor( _backgroundColor );
diff --git a/kviewshell/pageSize.cpp b/kviewshell/pageSize.cpp
index d9182d6b..c1a99744 100644
--- a/kviewshell/pageSize.cpp
+++ b/kviewshell/pageSize.cpp
@@ -210,7 +210,7 @@ TQString pageSize::preferredUnit() const
return staticList[currentSize].preferredUnit;
// User-defined size. Give a preferred unit depening on the locale.
- if (KGlobal::locale()-> measureSystem() == KLocale::Metric)
+ if (TDEGlobal::locale()-> measureSystem() == KLocale::Metric)
return "mm";
else
return "in";
@@ -330,10 +330,10 @@ void pageSize::reconstructCurrentSize()
int pageSize::defaultPageSize()
{
- // FIXME: static_cast<TQPrinter::PageSize>(KGlobal::locale()->pageSize())
+ // FIXME: static_cast<TQPrinter::PageSize>(TDEGlobal::locale()->pageSize())
// is the proper solution here. Then you can determine the values
// without using your hardcoded table too!
- if (KGlobal::locale()-> measureSystem() == KLocale::Metric)
+ if (TDEGlobal::locale()-> measureSystem() == KLocale::Metric)
return defaultMetricPaperSize;
else
return defaultImperialPaperSize;
diff --git a/kviewshell/searchWidget.cpp b/kviewshell/searchWidget.cpp
index 38c0644c..3f4e64f5 100644
--- a/kviewshell/searchWidget.cpp
+++ b/kviewshell/searchWidget.cpp
@@ -46,7 +46,7 @@ SearchWidget::SearchWidget(TQWidget* parent, const char* name, WFlags fl)
layout = new TQHBoxLayout(this, 4, 6, "SearchWidgetLayout");
stopButton = new TQPushButton(this, "stopButton");
- stopButton->setPixmap(KGlobal::iconLoader()->loadIcon("stop", KIcon::Small, KIcon::SizeSmall));
+ stopButton->setPixmap(TDEGlobal::iconLoader()->loadIcon("stop", KIcon::Small, KIcon::SizeSmall));
layout->addWidget(stopButton);
searchLabel = new TQLabel(this, "searchLabel");
@@ -59,12 +59,12 @@ SearchWidget::SearchWidget(TQWidget* parent, const char* name, WFlags fl)
searchLabel->setBuddy(searchText);
findPrevButton = new TQPushButton(this, "findPrevButton");
- findPrevButton->setPixmap(KGlobal::iconLoader()->loadIcon("back", KIcon::NoGroup, KIcon::SizeSmall));
+ findPrevButton->setPixmap(TDEGlobal::iconLoader()->loadIcon("back", KIcon::NoGroup, KIcon::SizeSmall));
TQToolTip::add(findPrevButton, i18n("Find previous"));
layout->addWidget(findPrevButton);
findNextButton = new TQPushButton(this, "findNextButton");
- findNextButton->setPixmap(KGlobal::iconLoader()->loadIcon("forward", KIcon::NoGroup, KIcon::SizeSmall));
+ findNextButton->setPixmap(TDEGlobal::iconLoader()->loadIcon("forward", KIcon::NoGroup, KIcon::SizeSmall));
TQToolTip::add(findNextButton, i18n("Find next"));
layout->addWidget(findNextButton);
diff --git a/libkscan/devselector.cpp b/libkscan/devselector.cpp
index 00d17c06..10bf9b29 100644
--- a/libkscan/devselector.cpp
+++ b/libkscan/devselector.cpp
@@ -69,7 +69,7 @@ DeviceSelector::DeviceSelector( TQWidget *parent, TQStrList& devList,
cbSkipDialog = new TQCheckBox( i18n("&Do not ask on startup again, always use this device"),
page, "CBOX_SKIP_ON_START" );
- KConfig *gcfg = KGlobal::config();
+ KConfig *gcfg = TDEGlobal::config();
gcfg->setGroup(TQString::fromLatin1(GROUP_STARTUP));
bool skipDialog = gcfg->readBoolEntry( STARTUP_SKIP_ASK, false );
cbSkipDialog->setChecked( skipDialog );
@@ -80,7 +80,7 @@ DeviceSelector::DeviceSelector( TQWidget *parent, TQStrList& devList,
TQCString DeviceSelector::getDeviceFromConfig( void ) const
{
- KConfig *gcfg = KGlobal::config();
+ KConfig *gcfg = TDEGlobal::config();
gcfg->setGroup(TQString::fromLatin1(GROUP_STARTUP));
bool skipDialog = gcfg->readBoolEntry( STARTUP_SKIP_ASK, false );
@@ -125,7 +125,7 @@ TQCString DeviceSelector::getSelectedDevice( void ) const
kdDebug(29000) << "The selected device: <" << dev << ">" << endl;
/* Store scanner selection settings */
- KConfig *c = KGlobal::config();
+ KConfig *c = TDEGlobal::config();
c->setGroup(TQString::fromLatin1(GROUP_STARTUP));
/* Write both the scan device and the skip-start-dialog flag global. */
c->writeEntry( STARTUP_SCANDEV, dev, true, true );
@@ -140,7 +140,7 @@ void DeviceSelector::setScanSources( const TQStrList& sources,
const TQStringList& hrSources )
{
bool default_ok = false;
- KConfig *gcfg = KGlobal::config();
+ KConfig *gcfg = TDEGlobal::config();
gcfg->setGroup(TQString::fromLatin1(GROUP_STARTUP));
TQCString defstr = gcfg->readEntry( STARTUP_SCANDEV, "" ).local8Bit();
diff --git a/libkscan/kscandevice.cpp b/libkscan/kscandevice.cpp
index ad6a9f9f..a721a094 100644
--- a/libkscan/kscandevice.cpp
+++ b/libkscan/kscandevice.cpp
@@ -187,7 +187,7 @@ KScanDevice::KScanDevice( TQObject *parent )
pixel_y = 0;
scanner_name = 0L;
- KConfig *konf = KGlobal::config ();
+ KConfig *konf = TDEGlobal::config ();
konf->setGroup( GROUP_STARTUP );
bool netaccess = konf->readBoolEntry( STARTUP_ONLY_LOCAL, false );
kdDebug(29000) << "Query for network scanners " << (netaccess ? "Not enabled" : "Enabled") << endl;
@@ -669,7 +669,7 @@ void KScanDevice::slStopScanning( void )
const TQString KScanDevice::previewFile()
{
- TQString dir = (KGlobal::dirs())->saveLocation( "data", "ScanImages", true );
+ TQString dir = (TDEGlobal::dirs())->saveLocation( "data", "ScanImages", true );
if( !dir.endsWith("/") )
dir += "/";
diff --git a/libkscan/kscanslider.cpp b/libkscan/kscanslider.cpp
index cc51e05b..61d00fbf 100644
--- a/libkscan/kscanslider.cpp
+++ b/libkscan/kscanslider.cpp
@@ -44,7 +44,7 @@ KScanSlider::KScanSlider( TQWidget *parent, const TQString& text,
if( haveStdButt )
{
- KIconLoader *loader = KGlobal::iconLoader();
+ KIconLoader *loader = TDEGlobal::iconLoader();
m_stdButt = new TQPushButton( this );
m_stdButt->setPixmap( loader->loadIcon( "undo",KIcon::Small ));
diff --git a/libkscan/previewer.cpp b/libkscan/previewer.cpp
index 93538e34..b7705f82 100644
--- a/libkscan/previewer.cpp
+++ b/libkscan/previewer.cpp
@@ -125,7 +125,7 @@ Previewer::Previewer(TQWidget *parent, const char *name )
layout->addLayout( left, 2 );
/* Load autoselection values from Config file */
- KConfig *cfg = KGlobal::config();
+ KConfig *cfg = TDEGlobal::config();
cfg->setGroup( GROUP_STARTUP );
/* Units etc. TODO: get from Config */
@@ -305,7 +305,7 @@ bool Previewer::setPreviewImage( const TQImage &image )
TQString Previewer::galleryRoot()
{
- TQString dir = (KGlobal::dirs())->saveLocation( "data", "ScanImages", true );
+ TQString dir = (TDEGlobal::dirs())->saveLocation( "data", "ScanImages", true );
if( !dir.endsWith("/") )
dir += "/";
diff --git a/libkscan/scandialog.cpp b/libkscan/scandialog.cpp
index ae561cb9..3bc492aa 100644
--- a/libkscan/scandialog.cpp
+++ b/libkscan/scandialog.cpp
@@ -55,7 +55,7 @@ ScanDialogFactory::ScanDialogFactory( TQObject *parent, const char *name )
: KScanDialogFactory( parent, name )
{
setName( "ScanDialogFactory" );
- KGlobal::locale()->insertCatalogue( TQString::fromLatin1("libkscan") );
+ TDEGlobal::locale()->insertCatalogue( TQString::fromLatin1("libkscan") );
}
KScanDialog * ScanDialogFactory::createDialog( TQWidget *parent,
@@ -129,7 +129,7 @@ void ScanDialog::createOptionsTab( void )
/* Read settings for startup behavior */
- KConfig *gcfg = KGlobal::config();
+ KConfig *gcfg = TDEGlobal::config();
gcfg->setGroup(TQString::fromLatin1(GROUP_STARTUP));
bool skipDialog = gcfg->readBoolEntry( STARTUP_SKIP_ASK, false );
bool onlyLocal = gcfg->readBoolEntry( STARTUP_ONLY_LOCAL, false );
@@ -153,7 +153,7 @@ void ScanDialog::slotNetworkToggle( bool state)
bool writestate = !state;
kdDebug(29000) << "slotNetworkToggle: Writing state " << writestate << endl;
- KConfig *c = KGlobal::config();
+ KConfig *c = TDEGlobal::config();
c->setGroup(TQString::fromLatin1(GROUP_STARTUP));
c->writeEntry( STARTUP_ONLY_LOCAL, writestate, true, true );
}
@@ -163,7 +163,7 @@ void ScanDialog::slotAskOnStartToggle(bool state)
bool writestate = !state;
kdDebug(29000) << "slotAskOnStartToggle: Writing state " << writestate << endl;
- KConfig *c = KGlobal::config();
+ KConfig *c = TDEGlobal::config();
c->setGroup(TQString::fromLatin1(GROUP_STARTUP));
c->writeEntry( STARTUP_SKIP_ASK, writestate, true, true );
}
@@ -307,10 +307,10 @@ bool ScanDialog::setup()
/* set initial sizes */
setInitialSize( configDialogSize( GROUP_STARTUP ));
- KConfig *kfg = KGlobal::config();
+ KConfig *kfg = TDEGlobal::config();
if( kfg )
{
- TQRect r = KGlobalSettings::desktopGeometry(this);
+ TQRect r = TDEGlobalSettings::desktopGeometry(this);
kfg->setGroup( GROUP_STARTUP );
/* Since this is a vertical splitter, only the width is important */
@@ -329,10 +329,10 @@ void ScanDialog::slotClose()
if( splitter )
{
- KConfig *kfg = KGlobal::config();
+ KConfig *kfg = TDEGlobal::config();
if( kfg )
{
- TQRect r = KGlobalSettings::desktopGeometry(this);
+ TQRect r = TDEGlobalSettings::desktopGeometry(this);
kfg->setGroup( GROUP_STARTUP );
/* Since this is a vertical splitter, only the width is important */