Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 11 years ago
parent 7a392a0405
commit b9e542d0c8

@ -259,7 +259,7 @@
updated on program pause. updated on program pause.
* A configuration option was added to enable/disable the debugger floating toolbar. * A configuration option was added to enable/disable the debugger floating toolbar.
* The debugger backend is written in pure ruby using the code from the 'debug.rb', * The debugger backend is written in pure ruby using the code from the 'debug.rb',
source included with the ruby distribution. It is started via KProcess which handles source included with the ruby distribution. It is started via TDEProcess which handles
redirection of stdout and stderr. The idea came from the way Laurent Julliard redirection of stdout and stderr. The idea came from the way Laurent Julliard
implemented the FreeRIDE ruby debugger - it uses Distributed Ruby (like DCOP) implemented the FreeRIDE ruby debugger - it uses Distributed Ruby (like DCOP)
for messaging. DRuby is ruby-specific and couldn't be used though. for messaging. DRuby is ruby-specific and couldn't be used though.

@ -98,7 +98,7 @@ void AdaGlobalOptionsDlg::readCompilerOpts( TQString compiler )
TQString settings = configCache[compiler]; TQString settings = configCache[compiler];
if (settings.isEmpty()) if (settings.isEmpty())
{ {
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("Ada Compiler"); config->setGroup("Ada Compiler");
settings = config->readPathEntry(compiler); settings = config->readPathEntry(compiler);
} }
@ -108,7 +108,7 @@ void AdaGlobalOptionsDlg::readCompilerOpts( TQString compiler )
void AdaGlobalOptionsDlg::readConfigCache( ) void AdaGlobalOptionsDlg::readConfigCache( )
{ {
/* KConfig *config = KGlobal::config(); /* KConfig *config = TDEGlobal::config();
config->setGroup("Ada Compiler"); config->setGroup("Ada Compiler");
TQMap<TQString, TQString> settings = config->entryMap("Ada Compiler"); TQMap<TQString, TQString> settings = config->entryMap("Ada Compiler");
@ -117,7 +117,7 @@ void AdaGlobalOptionsDlg::readConfigCache( )
void AdaGlobalOptionsDlg::saveConfigCache( ) void AdaGlobalOptionsDlg::saveConfigCache( )
{ {
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("Ada Compiler"); config->setGroup("Ada Compiler");
for (TQMap<TQString, TQString>::iterator it = configCache.begin(); it != configCache.end(); ++it) for (TQMap<TQString, TQString>::iterator it = configCache.begin(); it != configCache.end(); ++it)

@ -346,7 +346,7 @@ void AdaProjectPart::slotBuild()
cmdline += fi.fileName(); cmdline += fi.fileName();
TQString dircmd = "cd "; TQString dircmd = "cd ";
dircmd += KProcess::quote(buildDirectory()); dircmd += TDEProcess::quote(buildDirectory());
dircmd += " && "; dircmd += " && ";
makeFrontend()->queueCommand(buildDirectory(), dircmd + cmdline); makeFrontend()->queueCommand(buildDirectory(), dircmd + cmdline);
@ -443,7 +443,7 @@ KDevCompilerOptions *AdaProjectPart::createCompilerOptions(const TQString &name)
TQString AdaProjectPart::defaultOptions( const TQString compiler ) TQString AdaProjectPart::defaultOptions( const TQString compiler )
{ {
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("Ada Compiler"); config->setGroup("Ada Compiler");
return config->readPathEntry(compiler); return config->readPathEntry(compiler);
} }

@ -170,13 +170,13 @@ void AddExistingDirectoriesDialog::slotOk()
{ {
//copy //copy
//FIXME: check this after 3.0 release and add a possibility to link, not just copy //FIXME: check this after 3.0 release and add a possibility to link, not just copy
KProcess proc; TDEProcess proc;
proc << "cp"; proc << "cp";
proc << "-r"; proc << "-r";
proc << items.current()->url().path(); proc << items.current()->url().path();
proc << m_spitem->path; proc << m_spitem->path;
proc.start(KProcess::Block); proc.start(TDEProcess::Block);
} }
dirs << items.current()->name(); dirs << items.current()->name();
} }

@ -268,12 +268,12 @@ void AddExistingFilesDialog::slotOk()
for ( ; it.current(); ++it ) for ( ; it.current(); ++it )
{ {
KProcess proc; TDEProcess proc;
proc << "cp"; proc << "cp";
proc << ( *it )->url().path(); proc << ( *it )->url().path();
proc << m_spitem->path; proc << m_spitem->path;
proc.start(KProcess::DontCare); proc.start(TDEProcess::DontCare);
progressBar->setValue ( progressBar->value() + 1 ); progressBar->setValue ( progressBar->value() + 1 );
} }
@ -285,13 +285,13 @@ void AddExistingFilesDialog::slotOk()
for ( ; it.current(); ++it ) for ( ; it.current(); ++it )
{ {
KProcess proc; TDEProcess proc;
proc << "ln"; proc << "ln";
proc << "-s"; proc << "-s";
proc << URLUtil::relativePathToFile( m_spitem->path, ( *it )->url().path() ); proc << URLUtil::relativePathToFile( m_spitem->path, ( *it )->url().path() );
proc << m_spitem->path; proc << m_spitem->path;
proc.start(KProcess::DontCare); proc.start(TDEProcess::DontCare);
progressBar->setValue ( progressBar->value() + 1 ); progressBar->setValue ( progressBar->value() + 1 );
} }

@ -94,11 +94,11 @@ void AddIconDialog::accept()
kdDebug(9020) << "Unknown: " << unknown << ", template: " << templateFileName << endl; kdDebug(9020) << "Unknown: " << unknown << ", template: " << templateFileName << endl;
if (!templateFileName.isEmpty()) { if (!templateFileName.isEmpty()) {
KProcess proc; TDEProcess proc;
proc << "cp"; proc << "cp";
proc << templateFileName; proc << templateFileName;
proc << destpath; proc << destpath;
proc.start(KProcess::DontCare); proc.start(TDEProcess::DontCare);
} }
FileItem *fitem = m_widget->createFileItem(name, m_subProject); FileItem *fitem = m_widget->createFileItem(name, m_subProject);

@ -179,11 +179,11 @@ void AddSubprojectDialog::accept()
kdDebug(9020) << "Relative makefile path: " << relmakefile << endl; kdDebug(9020) << "Relative makefile path: " << relmakefile << endl;
TQString cmdline = "cd "; TQString cmdline = "cd ";
cmdline += KProcess::quote(m_part->projectDirectory()); cmdline += TDEProcess::quote(m_part->projectDirectory());
cmdline += " && automake "; cmdline += " && automake ";
cmdline += KProcess::quote(relmakefile); cmdline += TDEProcess::quote(relmakefile);
cmdline += " && CONFIG_HEADERS=config.h CONFIG_FILES="; cmdline += " && CONFIG_HEADERS=config.h CONFIG_FILES=";
cmdline += KProcess::quote(relmakefile); cmdline += TDEProcess::quote(relmakefile);
cmdline += " ./config.status"; cmdline += " ./config.status";
m_part->makeFrontend()->queueCommand( m_part->projectDirectory(), cmdline ); m_part->makeFrontend()->queueCommand( m_part->projectDirectory(), cmdline );

@ -699,7 +699,7 @@ TQString AutoProjectPart::constructMakeCommandLine(const TQString &dir, const TQ
cmdline.prepend(makeEnvironment()); cmdline.prepend(makeEnvironment());
TQString dircmd = "cd "; TQString dircmd = "cd ";
dircmd += KProcess::quote(dir); dircmd += TDEProcess::quote(dir);
dircmd += " && "; dircmd += " && ";
return preCommand + dircmd + cmdline; return preCommand + dircmd + cmdline;
@ -968,13 +968,13 @@ TQString AutoProjectPart::configureCommand() const
// if the build directory doesn't exist, add it's creation to the configureCommand // if the build directory doesn't exist, add it's creation to the configureCommand
if ( !TQFile::exists(builddir)) { if ( !TQFile::exists(builddir)) {
dircmd = "mkdir "; dircmd = "mkdir ";
dircmd += KProcess::quote(builddir); dircmd += TDEProcess::quote(builddir);
dircmd += " && "; dircmd += " && ";
} }
// add "cd into the build directory" to the configureCommand // add "cd into the build directory" to the configureCommand
dircmd += "cd "; dircmd += "cd ";
dircmd += KProcess::quote(builddir); dircmd += TDEProcess::quote(builddir);
dircmd += " && "; dircmd += " && ";
return dircmd + cmdline; return dircmd + cmdline;
@ -1024,7 +1024,7 @@ TQString AutoProjectPart::makefileCvsCommand() const
cmdline.prepend(makeEnvironment()); cmdline.prepend(makeEnvironment());
TQString dircmd = "cd "; TQString dircmd = "cd ";
dircmd += KProcess::quote(topsourceDirectory()); dircmd += TDEProcess::quote(topsourceDirectory());
dircmd += " && "; dircmd += " && ";
TQString admin_directory_update_command = updateAdminDirectoryCommand(); TQString admin_directory_update_command = updateAdminDirectoryCommand();
@ -1060,7 +1060,7 @@ TQString AutoProjectPart::makefileCopySystemLibtoolCommand() const
cmdline.prepend(makeEnvironment()); cmdline.prepend(makeEnvironment());
TQString dircmd = "cd "; TQString dircmd = "cd ";
dircmd += KProcess::quote(topsourceDirectory()); dircmd += TDEProcess::quote(topsourceDirectory());
dircmd += " && "; dircmd += " && ";
return dircmd + cmdline; return dircmd + cmdline;
@ -1081,7 +1081,7 @@ TQString AutoProjectPart::updateAdminDirectoryCommand() const
TQString cmdline = "rm -rf admin && tar -xzvf "; TQString cmdline = "rm -rf admin && tar -xzvf ";
cmdline.append(source); cmdline.append(source);
TQString dircmd = "cd "; TQString dircmd = "cd ";
dircmd += KProcess::quote(topsourceDirectory()); dircmd += TDEProcess::quote(topsourceDirectory());
dircmd += " && "; dircmd += " && ";
return dircmd + cmdline; return dircmd + cmdline;
} }
@ -1522,7 +1522,7 @@ void AutoProjectPart::startSimpleMakeCommand( const TQString & dir, const TQStri
cmdline.prepend(makeEnvironment()); cmdline.prepend(makeEnvironment());
TQString dircmd = "cd "; TQString dircmd = "cd ";
dircmd += KProcess::quote(dir); dircmd += TDEProcess::quote(dir);
dircmd += " && "; dircmd += " && ";
m_buildCommand = dircmd + cmdline; m_buildCommand = dircmd + cmdline;

@ -545,13 +545,13 @@ void AutoSubprojectView::slotRemoveSubproject()
} }
TQString cmdline = "cd "; TQString cmdline = "cd ";
cmdline += KProcess::quote(m_part->projectDirectory()); cmdline += TDEProcess::quote(m_part->projectDirectory());
cmdline += " && automake "; cmdline += " && automake ";
cmdline += KProcess::quote(relmakefile); cmdline += TDEProcess::quote(relmakefile);
cmdline += " && cd "; cmdline += " && cd ";
cmdline += KProcess::quote(m_part->buildDirectory()); cmdline += TDEProcess::quote(m_part->buildDirectory());
cmdline += " && CONFIG_HEADERS=config.h CONFIG_FILES="; cmdline += " && CONFIG_HEADERS=config.h CONFIG_FILES=";
cmdline += KProcess::quote(relmakefile); cmdline += TDEProcess::quote(relmakefile);
cmdline += " ./config.status"; cmdline += " ./config.status";
m_part->makeFrontend()->queueCommand( m_part->projectDirectory(), cmdline ); m_part->makeFrontend()->queueCommand( m_part->projectDirectory(), cmdline );
} }
@ -1083,7 +1083,7 @@ void AutoSubprojectView::slotCustomBuildCommand(int val)
case 5: //command as root case 5: //command as root
m_part->appFrontend()->startAppCommand(m_part->buildDirectory() + relpath, m_part->appFrontend()->startAppCommand(m_part->buildDirectory() + relpath,
"tdesu -t -c ' cd " + "tdesu -t -c ' cd " +
KProcess::quote(m_part->buildDirectory() + relpath) + " && " TDEProcess::quote(m_part->buildDirectory() + relpath) + " && "
+ cmd + "'", false); + cmd + "'", false);
break; break;
} }

@ -315,7 +315,7 @@ void ChooseTargetDialog::slotOk()
proc << "mv"; proc << "mv";
proc << KShellProcess::quote( d->part->projectDirectory() + "/" + directory + "/" + fileName ); proc << KShellProcess::quote( d->part->projectDirectory() + "/" + directory + "/" + fileName );
proc << KShellProcess::quote( d->chosenSubproject->path + "/" + fileName ); proc << KShellProcess::quote( d->chosenSubproject->path + "/" + fileName );
proc.start(KProcess::DontCare); proc.start(TDEProcess::DontCare);
} }
// why open the files?! // why open the files?!

@ -52,7 +52,7 @@ void KImportIconView::drawContents ( TQPainter *p, int cx, int cy, int cw, int c
font.setFamily ( "Helvetica [Adobe]" ); font.setFamily ( "Helvetica [Adobe]" );
font.setPointSize ( 10 ); font.setPointSize ( 10 );
p->setFont ( font ); p->setFont ( font );
p->setPen ( TQPen ( KGlobalSettings::highlightColor() ) ); p->setPen ( TQPen ( TDEGlobalSettings::highlightColor() ) );
TQRect rect = frameRect(); TQRect rect = frameRect();
TQFontMetrics fm ( p->font() ); TQFontMetrics fm ( p->font() );

@ -934,10 +934,10 @@ void CustomProjectPart::startMakeCommand( const TQString &dir, const TQString &t
cmdline += " "; cmdline += " ";
if ( !target.isEmpty() ) if ( !target.isEmpty() )
cmdline += KProcess::quote( target ); cmdline += TDEProcess::quote( target );
TQString dircmd = "cd "; TQString dircmd = "cd ";
dircmd += KProcess::quote( dir ); dircmd += TDEProcess::quote( dir );
dircmd += " && "; dircmd += " && ";
int prio = DomUtil::readIntEntry( dom, "/kdevcustomproject/" + buildtool + "/prio" ); int prio = DomUtil::readIntEntry( dom, "/kdevcustomproject/" + buildtool + "/prio" );

@ -101,7 +101,7 @@ void PascalGlobalOptionsDlg::readCompilerOpts( TQString compiler )
TQString settings = configCache[compiler]; TQString settings = configCache[compiler];
if (settings.isEmpty()) if (settings.isEmpty())
{ {
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("Pascal Compiler"); config->setGroup("Pascal Compiler");
settings = config->readPathEntry(compiler); settings = config->readPathEntry(compiler);
} }
@ -111,7 +111,7 @@ void PascalGlobalOptionsDlg::readCompilerOpts( TQString compiler )
void PascalGlobalOptionsDlg::readConfigCache( ) void PascalGlobalOptionsDlg::readConfigCache( )
{ {
/* KConfig *config = KGlobal::config(); /* KConfig *config = TDEGlobal::config();
config->setGroup("Pascal Compiler"); config->setGroup("Pascal Compiler");
TQMap<TQString, TQString> settings = config->entryMap("Pascal Compiler"); TQMap<TQString, TQString> settings = config->entryMap("Pascal Compiler");
@ -120,7 +120,7 @@ void PascalGlobalOptionsDlg::readConfigCache( )
void PascalGlobalOptionsDlg::saveConfigCache( ) void PascalGlobalOptionsDlg::saveConfigCache( )
{ {
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("Pascal Compiler"); config->setGroup("Pascal Compiler");
for (TQMap<TQString, TQString>::iterator it = configCache.begin(); it != configCache.end(); ++it) for (TQMap<TQString, TQString>::iterator it = configCache.begin(); it != configCache.end(); ++it)

@ -346,7 +346,7 @@ void PascalProjectPart::slotBuild()
cmdline += fi.fileName(); cmdline += fi.fileName();
TQString dircmd = "cd "; TQString dircmd = "cd ";
dircmd += KProcess::quote(buildDirectory()); dircmd += TDEProcess::quote(buildDirectory());
dircmd += " && "; dircmd += " && ";
makeFrontend()->queueCommand(buildDirectory(), dircmd + cmdline); makeFrontend()->queueCommand(buildDirectory(), dircmd + cmdline);
@ -471,7 +471,7 @@ KDevCompilerOptions *PascalProjectPart::createCompilerOptions(const TQString &na
TQString PascalProjectPart::defaultOptions( const TQString compiler ) const TQString PascalProjectPart::defaultOptions( const TQString compiler ) const
{ {
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("Pascal Compiler"); config->setGroup("Pascal Compiler");
return config->readPathEntry(compiler); return config->readPathEntry(compiler);
} }

@ -32,7 +32,7 @@ void TQMakeDefaultOpts::readVariables( const TQString& qmake, const TQString& pr
makefile.close(); makefile.close();
qmakefile.close(); qmakefile.close();
BlockingKProcess proc; BlockingTDEProcess proc;
kdDebug(9024) << "KProc Working dir:" << projdir << endl; kdDebug(9024) << "KProc Working dir:" << projdir << endl;
proc.setWorkingDirectory( projdir ); proc.setWorkingDirectory( projdir );
proc << qmake; proc << qmake;
@ -41,7 +41,7 @@ void TQMakeDefaultOpts::readVariables( const TQString& qmake, const TQString& pr
proc << makefile.name(); proc << makefile.name();
proc << qmakefile.name(); proc << qmakefile.name();
kdDebug(9024) << "Executing:" << proc.args() << endl; kdDebug(9024) << "Executing:" << proc.args() << endl;
proc.start( KProcess::NotifyOnExit, KProcess::Stderr ); proc.start( TDEProcess::NotifyOnExit, TDEProcess::Stderr );
if( !proc.isRunning() && !proc.normalExit() ) if( !proc.isRunning() && !proc.normalExit() )
{ {
kdDebug(9024) << "Couldn't execute qmake: " << proc.args() << endl; kdDebug(9024) << "Couldn't execute qmake: " << proc.args() << endl;

@ -17,7 +17,7 @@
// #include <tqobject.h> // #include <tqobject.h>
// class KTempFile; // class KTempFile;
// class BlockingKProcess; // class BlockingTDEProcess;
class TQMakeDefaultOpts class TQMakeDefaultOpts
{ {
@ -35,8 +35,8 @@ public:
// void variablesRead(); // void variablesRead();
// private slots: // private slots:
// void slotReadStderr( KProcess*, char*, int ); // void slotReadStderr( TDEProcess*, char*, int );
// void slotFinished( KProcess* ); // void slotFinished( TDEProcess* );
private: private:
TQMap<TQString, TQStringList> m_variables; TQMap<TQString, TQStringList> m_variables;

@ -725,7 +725,7 @@ void TrollProjectPart::startTQMakeCommand(const TQString &dir, bool recursive)
// cmdline += TQString::fromLatin1( " -o Makefile" ); // cmdline += TQString::fromLatin1( " -o Makefile" );
TQString dircmd = "cd "; TQString dircmd = "cd ";
dircmd += KProcess::quote(dir); dircmd += TDEProcess::quote(dir);
dircmd += " && "; dircmd += " && ";
cmdline.prepend(makeEnvironment()); cmdline.prepend(makeEnvironment());

@ -642,7 +642,7 @@ void TrollProjectWidget::slotDetailsExecuted( TQListViewItem *item )
// start designer in your PATH // start designer in your PATH
KShellProcess proc; KShellProcess proc;
proc << "designer" << filePath; proc << "designer" << filePath;
proc.start( KProcess::DontCare, KProcess::NoCommunication ); proc.start( TDEProcess::DontCare, TDEProcess::NoCommunication );
} }
else else
m_part->partController() ->editDocument( KURL( filePath ) ); m_part->partController() ->editDocument( KURL( filePath ) );
@ -686,7 +686,7 @@ void TrollProjectWidget::slotExecuteTarget()
} }
TQString program = KProcess::quote( "." + TQString( TQChar( TQDir::separator() ) ) + getCurrentOutputFilename() ); TQString program = TDEProcess::quote( "." + TQString( TQChar( TQDir::separator() ) ) + getCurrentOutputFilename() );
// Build environment variables to prepend to the executable path // Build environment variables to prepend to the executable path
TQString runEnvVars = TQString(); TQString runEnvVars = TQString();
@ -726,7 +726,7 @@ void TrollProjectWidget::slotBuildProject()
createMakefileIfMissing( dir, m_rootSubproject ); createMakefileIfMissing( dir, m_rootSubproject );
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() ); m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
TQString dircmd = "cd " + KProcess::quote( dir ) + " && " ; TQString dircmd = "cd " + TDEProcess::quote( dir ) + " && " ;
TQString buildcmd = constructMakeCommandLine( m_rootSubproject->scope ); TQString buildcmd = constructMakeCommandLine( m_rootSubproject->scope );
m_part->queueCmd( dir, dircmd + buildcmd ); m_part->queueCmd( dir, dircmd + buildcmd );
} }
@ -744,7 +744,7 @@ void TrollProjectWidget::slotInstallProject()
createMakefileIfMissing( dir, m_rootSubproject ); createMakefileIfMissing( dir, m_rootSubproject );
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() ); m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
TQString dircmd = "cd " + KProcess::quote( dir ) + " && " ; TQString dircmd = "cd " + TDEProcess::quote( dir ) + " && " ;
TQString buildcmd = constructMakeCommandLine( m_rootSubproject->scope ) + " install"; TQString buildcmd = constructMakeCommandLine( m_rootSubproject->scope ) + " install";
m_part->queueCmd( dir, dircmd + buildcmd ); m_part->queueCmd( dir, dircmd + buildcmd );
} }
@ -762,7 +762,7 @@ void TrollProjectWidget::slotBuildTarget()
createMakefileIfMissing( dir, m_shownSubproject ); createMakefileIfMissing( dir, m_shownSubproject );
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() ); m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
TQString dircmd = "cd " + KProcess::quote( dir ) + " && " ; TQString dircmd = "cd " + TDEProcess::quote( dir ) + " && " ;
TQString buildcmd = constructMakeCommandLine( m_shownSubproject->scope ); TQString buildcmd = constructMakeCommandLine( m_shownSubproject->scope );
m_part->queueCmd( dir, dircmd + buildcmd ); m_part->queueCmd( dir, dircmd + buildcmd );
} }
@ -780,7 +780,7 @@ void TrollProjectWidget::slotInstallTarget()
createMakefileIfMissing( dir, m_shownSubproject ); createMakefileIfMissing( dir, m_shownSubproject );
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() ); m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
TQString dircmd = "cd " + KProcess::quote( dir ) + " && " ; TQString dircmd = "cd " + TDEProcess::quote( dir ) + " && " ;
TQString buildcmd = constructMakeCommandLine( m_shownSubproject->scope ) + " install"; TQString buildcmd = constructMakeCommandLine( m_shownSubproject->scope ) + " install";
m_part->queueCmd( dir, dircmd + buildcmd ); m_part->queueCmd( dir, dircmd + buildcmd );
} }
@ -796,7 +796,7 @@ void TrollProjectWidget::slotRebuildProject()
createMakefileIfMissing( dir, m_rootSubproject ); createMakefileIfMissing( dir, m_rootSubproject );
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() ); m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
TQString dircmd = "cd " + KProcess::quote( dir ) + " && " ; TQString dircmd = "cd " + TDEProcess::quote( dir ) + " && " ;
TQString rebuildcmd = constructMakeCommandLine( m_rootSubproject->scope ) + " clean && " + constructMakeCommandLine( m_rootSubproject->scope ); TQString rebuildcmd = constructMakeCommandLine( m_rootSubproject->scope ) + " clean && " + constructMakeCommandLine( m_rootSubproject->scope );
m_part->queueCmd( dir, dircmd + rebuildcmd ); m_part->queueCmd( dir, dircmd + rebuildcmd );
} }
@ -815,7 +815,7 @@ void TrollProjectWidget::slotRebuildTarget()
createMakefileIfMissing( dir, m_shownSubproject ); createMakefileIfMissing( dir, m_shownSubproject );
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() ); m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
TQString dircmd = "cd " + KProcess::quote( dir ) + " && " ; TQString dircmd = "cd " + TDEProcess::quote( dir ) + " && " ;
TQString rebuildcmd = constructMakeCommandLine( m_shownSubproject->scope ) + " clean && " + constructMakeCommandLine( m_shownSubproject->scope ); TQString rebuildcmd = constructMakeCommandLine( m_shownSubproject->scope ) + " clean && " + constructMakeCommandLine( m_shownSubproject->scope );
m_part->queueCmd( dir, dircmd + rebuildcmd ); m_part->queueCmd( dir, dircmd + rebuildcmd );
} }
@ -1301,12 +1301,12 @@ void TrollProjectWidget::slotAddFiles()
case AddFilesDialog::Link: case AddFilesDialog::Link:
{ {
// Link selected files to current subproject folder // Link selected files to current subproject folder
KProcess *proc = new KProcess( TQT_TQOBJECT(this) ); TDEProcess *proc = new TDEProcess( TQT_TQOBJECT(this) );
*proc << "ln"; *proc << "ln";
*proc << "-s"; *proc << "-s";
*proc << files[ i ]; *proc << files[ i ];
*proc << cleanSubprojectDir; *proc << cleanSubprojectDir;
proc->start(KProcess::Block); proc->start(TDEProcess::Block);
TQString filename = files[ i ].right( files[ i ].length() - files[ i ].findRev( '/' ) - 1 ); TQString filename = files[ i ].right( files[ i ].length() - files[ i ].findRev( '/' ) - 1 );
// and add them to the filelist // and add them to the filelist
TQFile testExist( cleanSubprojectDir + TQString( TQChar( TQDir::separator() ) ) + filename ); TQFile testExist( cleanSubprojectDir + TQString( TQChar( TQDir::separator() ) ) + filename );
@ -1645,12 +1645,12 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, TQListViewItem *it
case AddFilesDialog::Link: case AddFilesDialog::Link:
{ {
// Link selected files to current subproject folder // Link selected files to current subproject folder
KProcess *proc = new KProcess( TQT_TQOBJECT(this) ); TDEProcess *proc = new TDEProcess( TQT_TQOBJECT(this) );
*proc << "ln"; *proc << "ln";
*proc << "-s"; *proc << "-s";
*proc << files[ i ]; *proc << files[ i ];
*proc << cleanSubprojectPath; *proc << cleanSubprojectPath;
proc->start(KProcess::Block); proc->start(TDEProcess::Block);
TQString filename = files[ i ].right( files[ i ].length() - files[ i ].findRev( '/' ) - 1 ); TQString filename = files[ i ].right( files[ i ].length() - files[ i ].findRev( '/' ) - 1 );
// and add them to the filelist // and add them to the filelist
TQFile testExist( cleanSubprojectPath + TQString( TQChar( TQDir::separator() ) ) + filename ); TQFile testExist( cleanSubprojectPath + TQString( TQChar( TQDir::separator() ) ) + filename );
@ -2034,7 +2034,7 @@ void TrollProjectWidget::slotBuildOpenFile()
for ( spitem = list.first(); spitem; spitem = list.next() ) for ( spitem = list.first(); spitem; spitem = list.next() )
{ {
TQString buildcmd = constructMakeCommandLine( spitem->scope ); TQString buildcmd = constructMakeCommandLine( spitem->scope );
TQString dircmd = "cd " + KProcess::quote( spitem->scope->projectDir() ) + " && " ; TQString dircmd = "cd " + TDEProcess::quote( spitem->scope->projectDir() ) + " && " ;
kdDebug( 9024 ) << "builddir " << spitem->scope->projectDir() << ", cmd " << dircmd + buildcmd + " " + target << endl; kdDebug( 9024 ) << "builddir " << spitem->scope->projectDir() << ", cmd " << dircmd + buildcmd + " " + target << endl;
m_part->queueCmd( spitem->scope->projectDir(), dircmd + buildcmd + " " + target ); m_part->queueCmd( spitem->scope->projectDir(), dircmd + buildcmd + " " + target );
} }
@ -2126,7 +2126,7 @@ void TrollProjectWidget::runClean( QMakeScopeItem* item, const TQString& cleanta
createMakefileIfMissing( dir, item ); createMakefileIfMissing( dir, item );
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() ); m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
TQString dircmd = "cd " + KProcess::quote( dir ) + " && " ; TQString dircmd = "cd " + TDEProcess::quote( dir ) + " && " ;
TQString rebuildcmd = constructMakeCommandLine( item->scope ) + " "+cleantargetname; TQString rebuildcmd = constructMakeCommandLine( item->scope ) + " "+cleantargetname;
m_part->queueCmd( dir, dircmd + rebuildcmd ); m_part->queueCmd( dir, dircmd + rebuildcmd );
} }
@ -2390,7 +2390,7 @@ void TrollProjectWidget::buildFile( QMakeScopeItem* spitem, FileItem* fitem )
// m_part->startMakeCommand(buildDir, target); // m_part->startMakeCommand(buildDir, target);
TQString buildcmd = constructMakeCommandLine( spitem->scope ); TQString buildcmd = constructMakeCommandLine( spitem->scope );
TQString dircmd = "cd " + KProcess::quote( spitem->scope->projectDir() ) + " && " ; TQString dircmd = "cd " + TDEProcess::quote( spitem->scope->projectDir() ) + " && " ;
kdDebug( 9024 ) << "builddir " << spitem->scope->projectDir() << ", cmd " << dircmd + buildcmd + " " + target << endl; kdDebug( 9024 ) << "builddir " << spitem->scope->projectDir() << ", cmd " << dircmd + buildcmd + " " + target << endl;
m_part->queueCmd( spitem->scope->projectDir(), dircmd + buildcmd + " " + target ); m_part->queueCmd( spitem->scope->projectDir(), dircmd + buildcmd + " " + target );

@ -161,7 +161,7 @@ Access to <literal>.desktop</literal> files.
</para> </para>
</formalpara></listitem> </formalpara></listitem>
<listitem><formalpara><title><ulink url="kdeapi:tdecore/KGlobalSettings">KGlobalSettings</ulink></title> <listitem><formalpara><title><ulink url="kdeapi:tdecore/TDEGlobalSettings">TDEGlobalSettings</ulink></title>
<para> <para>
Convenient access to not application-specific settings. Convenient access to not application-specific settings.
</para> </para>
@ -201,7 +201,7 @@ Interprocess communication - DCOP helper classes and subprocess invocation.
<itemizedlist> <itemizedlist>
<listitem><formalpara><title><ulink url="kdeapi:tdecore/KProcess">KProcess</ulink></title> <listitem><formalpara><title><ulink url="kdeapi:tdecore/TDEProcess">TDEProcess</ulink></title>
<para> <para>
Invokes and controls child processes. Invokes and controls child processes.
</para> </para>
@ -297,7 +297,7 @@ Easy access to the common keyboard shortcut keys.
</para> </para>
</formalpara></listitem> </formalpara></listitem>
<listitem><formalpara><title><ulink url="kdeapi:tdecore/KGlobalAccel"></ulink></title> <listitem><formalpara><title><ulink url="kdeapi:tdecore/TDEGlobalAccel"></ulink></title>
<para> <para>
Collection of system-wide keyboard shortcuts. Collection of system-wide keyboard shortcuts.
</para> </para>
@ -3121,7 +3121,7 @@ int kdemain(int argc, char **argv)
{ {
KLocale::setMainCatalogue("tdelibs"); KLocale::setMainCatalogue("tdelibs");
TDEInstance instance("kio_ftp"); TDEInstance instance("kio_ftp");
(void) KGlobal::locale(); (void) TDEGlobal::locale();
if (argc != 4) { if (argc != 4) {
fprintf(stderr, "Usage: kio_ftp protocol " fprintf(stderr, "Usage: kio_ftp protocol "

@ -170,7 +170,7 @@ void KDevDesigner::optionsConfigureKeys()
void KDevDesigner::optionsConfigureToolbars() void KDevDesigner::optionsConfigureToolbars()
{ {
saveMainWindowSettings(KGlobal::config(), autoSaveGroup()); saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
// use the standard toolbar editor // use the standard toolbar editor
KEditToolbar dlg(factory()); KEditToolbar dlg(factory());
@ -181,7 +181,7 @@ void KDevDesigner::optionsConfigureToolbars()
void KDevDesigner::applyNewToolbarConfig() void KDevDesigner::applyNewToolbarConfig()
{ {
applyMainWindowSettings(KGlobal::config(), autoSaveGroup()); applyMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
} }
void KDevDesigner::fileOpen() void KDevDesigner::fileOpen()

@ -18,7 +18,7 @@ extern "C"
{ {
void* init_lib%{APPNAMELC}plugin() void* init_lib%{APPNAMELC}plugin()
{ {
KGlobal::locale()->insertCatalogue("kate%{APPNAMELC}"); TDEGlobal::locale()->insertCatalogue("kate%{APPNAMELC}");
return new KatePluginFactory; return new KatePluginFactory;
} }
} }

@ -22,7 +22,7 @@ extern "C"
{ {
void* init_lib%{APPNAMELC}plugin() void* init_lib%{APPNAMELC}plugin()
{ {
KGlobal::locale()->insertCatalogue("kate%{APPNAMELC}"); TDEGlobal::locale()->insertCatalogue("kate%{APPNAMELC}");
return new KatePluginFactory; return new KatePluginFactory;
} }
} }

@ -64,7 +64,7 @@ extern "C"
{ {
KPanelApplet* init( TQWidget *parent, const TQString& configFile) KPanelApplet* init( TQWidget *parent, const TQString& configFile)
{ {
KGlobal::locale()->insertCatalogue("%{APPNAMELC}"); TDEGlobal::locale()->insertCatalogue("%{APPNAMELC}");
return new %{APPNAME}(configFile, KPanelApplet::Normal, return new %{APPNAME}(configFile, KPanelApplet::Normal,
KPanelApplet::About | KPanelApplet::Help | KPanelApplet::Preferences, KPanelApplet::About | KPanelApplet::Help | KPanelApplet::Preferences,
parent, "%{APPNAMELC}"); parent, "%{APPNAMELC}");

@ -15,7 +15,7 @@ extern "C"
{ {
void* init_lib%{APPNAMELC}part() void* init_lib%{APPNAMELC}part()
{ {
KGlobal::locale()->insertCatalogue("%{APPNAMELC}"); TDEGlobal::locale()->insertCatalogue("%{APPNAMELC}");
return new %{APPNAME}Factory; return new %{APPNAME}Factory;
} }
}; };

@ -149,12 +149,12 @@ void %{APPNAME}::optionsConfigureToolbars()
{ {
#if defined(TDE_MAKE_VERSION) #if defined(TDE_MAKE_VERSION)
# if TDE_VERSION >= TDE_MAKE_VERSION(3,1,0) # if TDE_VERSION >= TDE_MAKE_VERSION(3,1,0)
saveMainWindowSettings(KGlobal::config(), autoSaveGroup()); saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
# else # else
saveMainWindowSettings(KGlobal::config() ); saveMainWindowSettings(TDEGlobal::config() );
# endif # endif
#else #else
saveMainWindowSettings(KGlobal::config() ); saveMainWindowSettings(TDEGlobal::config() );
#endif #endif
// use the standard toolbar editor // use the standard toolbar editor
@ -168,12 +168,12 @@ void %{APPNAME}::applyNewToolbarConfig()
{ {
#if defined(TDE_MAKE_VERSION) #if defined(TDE_MAKE_VERSION)
# if TDE_VERSION >= TDE_MAKE_VERSION(3,1,0) # if TDE_VERSION >= TDE_MAKE_VERSION(3,1,0)
applyMainWindowSettings(KGlobal::config(), autoSaveGroup()); applyMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
# else # else
applyMainWindowSettings(KGlobal::config()); applyMainWindowSettings(TDEGlobal::config());
# endif # endif
#else #else
applyMainWindowSettings(KGlobal::config()); applyMainWindowSettings(TDEGlobal::config());
#endif #endif
} }

@ -193,7 +193,7 @@ extern "C"
{ {
void* init_lib%{APPNAMELC}part() void* init_lib%{APPNAMELC}part()
{ {
KGlobal::locale()->insertCatalogue("%{APPNAMELC}"); TDEGlobal::locale()->insertCatalogue("%{APPNAMELC}");
return new %{APPNAME}PartFactory; return new %{APPNAME}PartFactory;
} }
}; };

@ -99,7 +99,7 @@ extern "C"
{ {
void* init_lib%{APPNAMELC}plugin() void* init_lib%{APPNAMELC}plugin()
{ {
KGlobal::locale()->insertCatalogue("%{APPNAMELC}"); TDEGlobal::locale()->insertCatalogue("%{APPNAMELC}");
return new %{APPNAME}Factory; return new %{APPNAME}Factory;
} }
} }

@ -298,7 +298,7 @@ void %{APPNAMELC}kmdi::optionsConfigureKeys()
void %{APPNAMELC}kmdi::optionsConfigureToolbars() void %{APPNAMELC}kmdi::optionsConfigureToolbars()
{ {
//saveMainWindowSettings(KGlobal::config(), autoSaveGroup()); //saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
} }
void %{APPNAMELC}kmdi::newToolbarConfig() void %{APPNAMELC}kmdi::newToolbarConfig()
@ -306,7 +306,7 @@ void %{APPNAMELC}kmdi::newToolbarConfig()
// This slot is called when user clicks "Ok" or "Apply" in the toolbar editor. // This slot is called when user clicks "Ok" or "Apply" in the toolbar editor.
// recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.) // recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.)
//createGUI(); //createGUI();
//applyMainWindowSettings(KGlobal::config(), autoSaveGroup()); //applyMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
} }
void %{APPNAMELC}kmdi::optionsPreferences() void %{APPNAMELC}kmdi::optionsPreferences()

@ -120,7 +120,7 @@ void %{APPNAME}::optionsConfigureKeys()
void %{APPNAME}::optionsConfigureToolbars() void %{APPNAME}::optionsConfigureToolbars()
{ {
// use the standard toolbar editor // use the standard toolbar editor
saveMainWindowSettings(KGlobal::config(), autoSaveGroup()); saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
} }
void %{APPNAME}::newToolbarConfig() void %{APPNAME}::newToolbarConfig()
@ -129,7 +129,7 @@ void %{APPNAME}::newToolbarConfig()
// recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.) // recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.)
createGUI(); createGUI();
applyMainWindowSettings(KGlobal::config(), autoSaveGroup()); applyMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
} }
void %{APPNAME}::optionsPreferences() void %{APPNAME}::optionsPreferences()

@ -20,13 +20,13 @@ extern "C"
%{APPNAME} *kss_create( WId id ) %{APPNAME} *kss_create( WId id )
{ {
KGlobal::locale()->insertCatalogue("%{APPNAMELC}"); TDEGlobal::locale()->insertCatalogue("%{APPNAMELC}");
return new %{APPNAME}( id ); return new %{APPNAME}( id );
} }
TQDialog *kss_setup() TQDialog *kss_setup()
{ {
KGlobal::locale()->insertCatalogue("%{APPNAMELC}"); TDEGlobal::locale()->insertCatalogue("%{APPNAMELC}");
return new %{APPNAME}Setup(); return new %{APPNAME}Setup();
} }
} }
@ -48,7 +48,7 @@ extern "C"
//! read settings from config file //! read settings from config file
void %{APPNAME}Setup::readSettings() void %{APPNAME}Setup::readSettings()
{ {
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup( "Settings" ); config->setGroup( "Settings" );
/// @todo /// @todo
// Add your config options here... // Add your config options here...
@ -59,7 +59,7 @@ void %{APPNAME}Setup::readSettings()
//! Ok pressed - save settings and exit //! Ok pressed - save settings and exit
void %{APPNAME}Setup::slotOkPressed() void %{APPNAME}Setup::slotOkPressed()
{ {
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup( "Settings" ); config->setGroup( "Settings" );
/// @todo /// @todo
// Add your config options here. // Add your config options here.
@ -89,7 +89,7 @@ void %{APPNAME}Setup::slotCancelPressed()
//! read configuration settings from config file //! read configuration settings from config file
void %{APPNAME}::readSettings() void %{APPNAME}::readSettings()
{ {
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup( "Settings" ); config->setGroup( "Settings" );
/// @todo /// @todo
// Add your config options here... // Add your config options here...

@ -115,7 +115,7 @@ void %{APPNAMELC}::optionsConfigureKeys()
void %{APPNAMELC}::optionsConfigureToolbars() void %{APPNAMELC}::optionsConfigureToolbars()
{ {
// use the standard toolbar editor // use the standard toolbar editor
saveMainWindowSettings(KGlobal::config(), autoSaveGroup()); saveMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
} }
void %{APPNAMELC}::newToolbarConfig() void %{APPNAMELC}::newToolbarConfig()
@ -124,7 +124,7 @@ void %{APPNAMELC}::newToolbarConfig()
// recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.) // recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.)
createGUI(); createGUI();
applyMainWindowSettings(KGlobal::config(), autoSaveGroup()); applyMainWindowSettings(TDEGlobal::config(), autoSaveGroup());
} }
void %{APPNAMELC}::optionsPreferences() void %{APPNAMELC}::optionsPreferences()

@ -8,7 +8,7 @@ extern "C"
{ {
Plugin *create_plugin() Plugin *create_plugin()
{ {
KGlobal::locale()->insertCatalogue("%{APPNAMELC}"); TDEGlobal::locale()->insertCatalogue("%{APPNAMELC}");
return new %{APPNAME}UI; return new %{APPNAME}UI;
} }
} }

@ -12,7 +12,7 @@ extern "C"
{ {
Plugin *create_plugin() Plugin *create_plugin()
{ {
KGlobal::locale()->insertCatalogue("%{APPNAMELC}"); TDEGlobal::locale()->insertCatalogue("%{APPNAMELC}");
return new %{APPNAME}Scope(); return new %{APPNAME}Scope();
} }
} }

@ -23,7 +23,7 @@
class KProcess; class TDEProcess;
class TQString; class TQString;
class TQStrList; class TQStrList;
@ -102,10 +102,10 @@ public slots:
virtual void slotVarItemConstructed(VarItem */*item*/) {} virtual void slotVarItemConstructed(VarItem */*item*/) {}
protected slots: protected slots:
virtual void slotDbgStdout(KProcess *proc, char *buf, int buflen) = 0; virtual void slotDbgStdout(TDEProcess *proc, char *buf, int buflen) = 0;
virtual void slotDbgStderr(KProcess*, char*, int) {} ; virtual void slotDbgStderr(TDEProcess*, char*, int) {} ;
virtual void slotDbgWroteStdin(KProcess *proc) = 0; virtual void slotDbgWroteStdin(TDEProcess *proc) = 0;
virtual void slotDbgProcessExited(KProcess *proc) = 0; virtual void slotDbgProcessExited(TDEProcess *proc) = 0;
signals: signals:
void gotoSourcePosition (const TQString &fileName, int lineNum); void gotoSourcePosition (const TQString &fileName, int lineNum);
@ -121,7 +121,7 @@ signals:
void dbgStatus (const TQString &status, int statusFlag); void dbgStatus (const TQString &status, int statusFlag);
protected: protected:
KProcess *dbgProcess_; TDEProcess *dbgProcess_;
}; };
} }

@ -71,7 +71,7 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
topLayout->addWidget(searchLineWidget_); topLayout->addWidget(searchLineWidget_);
topLayout->addWidget(pids_); topLayout->addWidget(pids_);
pids_->setFont(KGlobalSettings::fixedFont()); pids_->setFont(TDEGlobalSettings::fixedFont());
KButtonBox *buttonbox = new KButtonBox(this, Qt::Horizontal); KButtonBox *buttonbox = new KButtonBox(this, Qt::Horizontal);
buttonbox->addStretch(); buttonbox->addStretch();
@ -84,7 +84,7 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
connect(cancel, TQT_SIGNAL(clicked()), TQT_SLOT(reject())); connect(cancel, TQT_SIGNAL(clicked()), TQT_SLOT(reject()));
// Default display to 40 chars wide, default height is okay // Default display to 40 chars wide, default height is okay
resize( ((KGlobalSettings::fixedFont()).pointSize())*40, height()); resize( ((TDEGlobalSettings::fixedFont()).pointSize())*40, height());
topLayout->activate(); topLayout->activate();
TQTimer::singleShot(0, this, TQT_SLOT(slotInit())); TQTimer::singleShot(0, this, TQT_SLOT(slotInit()));
@ -133,15 +133,15 @@ void Dbg_PS_Dialog::slotInit()
} }
#endif #endif
connect( psProc_, TQT_SIGNAL(processExited(KProcess *)), TQT_SLOT(slotProcessExited()) ); connect( psProc_, TQT_SIGNAL(processExited(TDEProcess *)), TQT_SLOT(slotProcessExited()) );
connect( psProc_, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), TQT_SLOT(slotReceivedOutput(KProcess *, char *, int)) ); connect( psProc_, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), TQT_SLOT(slotReceivedOutput(TDEProcess *, char *, int)) );
psProc_->start(KProcess::NotifyOnExit, KProcess::Stdout); psProc_->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout);
} }
/***************************************************************************/ /***************************************************************************/
void Dbg_PS_Dialog::slotReceivedOutput(KProcess */*proc*/, char *buffer, int buflen) void Dbg_PS_Dialog::slotReceivedOutput(TDEProcess */*proc*/, char *buffer, int buflen)
{ {
pidLines_ += TQString::fromLocal8Bit(buffer, buflen); pidLines_ += TQString::fromLocal8Bit(buffer, buflen);
} }

@ -19,7 +19,7 @@
#include <kdialog.h> #include <kdialog.h>
class TQListBox; class TQListBox;
class KProcess; class TDEProcess;
class KListView; class KListView;
class KListViewSearchLineWidget; class KListViewSearchLineWidget;
@ -41,14 +41,14 @@ public:
private slots: private slots:
void slotInit(); void slotInit();
void slotReceivedOutput(KProcess *proc, char *buffer, int buflen); void slotReceivedOutput(TDEProcess *proc, char *buffer, int buflen);
void slotProcessExited(); void slotProcessExited();
protected: protected:
void focusIn(TQFocusEvent*); void focusIn(TQFocusEvent*);
private: private:
KProcess* psProc_; TDEProcess* psProc_;
KListView* pids_; KListView* pids_;
KListViewSearchLineWidget* searchLineWidget_; KListViewSearchLineWidget* searchLineWidget_;
TQString pidLines_; TQString pidLines_;

@ -42,7 +42,7 @@ DisassembleWidget::DisassembleWidget(GDBController* controller, TQWidget *parent
upper_(0), upper_(0),
address_(0) address_(0)
{ {
setFont(KGlobalSettings::fixedFont()); setFont(TDEGlobalSettings::fixedFont());
setReadOnly(true); setReadOnly(true);
} }

@ -486,7 +486,7 @@ void FramestackWidget::drawContentsOffset( TQPainter * p, int ox, int oy,
TQRect section1(s1_x, contentsHeight(), s1_w, viewport()->height()); TQRect section1(s1_x, contentsHeight(), s1_w, viewport()->height());
p->fillRect(section1, KGlobalSettings::alternateBackgroundColor()); p->fillRect(section1, TDEGlobalSettings::alternateBackgroundColor());
} }
// ************************************************************************** // **************************************************************************
@ -619,7 +619,7 @@ void FrameStackItem::paintCell(TQPainter * p, const TQColorGroup & cg,
if (column % 2) if (column % 2)
{ {
cg2.setColor(TQColorGroup::Base, cg2.setColor(TQColorGroup::Base,
KGlobalSettings::alternateBackgroundColor()); TDEGlobalSettings::alternateBackgroundColor());
} }
TQListViewItem::paintCell(p, cg2, column, width, align); TQListViewItem::paintCell(p, cg2, column, width, align);
} }
@ -631,7 +631,7 @@ void ThreadStackItem::paintCell(TQPainter * p, const TQColorGroup & cg,
if (column % 2) if (column % 2)
{ {
cg2.setColor(TQColorGroup::Base, cg2.setColor(TQColorGroup::Base,
KGlobalSettings::alternateBackgroundColor()); TDEGlobalSettings::alternateBackgroundColor());
} }
TQListViewItem::paintCell(p, cg2, column, width, align); TQListViewItem::paintCell(p, cg2, column, width, align);
} }

@ -796,19 +796,19 @@ bool GDBController::start(const TQString& shell, const DomUtil::PairList& run_en
Q_ASSERT (!dbgProcess_ && !tty_); Q_ASSERT (!dbgProcess_ && !tty_);
dbgProcess_ = new KProcess; dbgProcess_ = new TDEProcess;
connect( dbgProcess_, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), connect( dbgProcess_, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
this, TQT_SLOT(slotDbgStdout(KProcess *, char *, int)) ); this, TQT_SLOT(slotDbgStdout(TDEProcess *, char *, int)) );
connect( dbgProcess_, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), connect( dbgProcess_, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
this, TQT_SLOT(slotDbgStderr(KProcess *, char *, int)) ); this, TQT_SLOT(slotDbgStderr(TDEProcess *, char *, int)) );
connect( dbgProcess_, TQT_SIGNAL(wroteStdin(KProcess *)), connect( dbgProcess_, TQT_SIGNAL(wroteStdin(TDEProcess *)),
this, TQT_SLOT(slotDbgWroteStdin(KProcess *)) ); this, TQT_SLOT(slotDbgWroteStdin(TDEProcess *)) );
connect( dbgProcess_, TQT_SIGNAL(processExited(KProcess*)), connect( dbgProcess_, TQT_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(slotDbgProcessExited(KProcess*)) ); this, TQT_SLOT(slotDbgProcessExited(TDEProcess*)) );
application_ = application; application_ = application;
@ -838,8 +838,8 @@ bool GDBController::start(const TQString& shell, const DomUtil::PairList& run_en
" --interpreter=mi2 -quiet\n" ).latin1()); " --interpreter=mi2 -quiet\n" ).latin1());
} }
if (!dbgProcess_->start( KProcess::NotifyOnExit, if (!dbgProcess_->start( TDEProcess::NotifyOnExit,
KProcess::Communication(KProcess::All))) TDEProcess::Communication(TDEProcess::All)))
{ {
KMessageBox::information( KMessageBox::information(
0, 0,
@ -1126,12 +1126,12 @@ void GDBController::slotRun()
TQCString tty(tty_->getSlave().latin1()); TQCString tty(tty_->getSlave().latin1());
TQCString options = TQCString(">") + tty + TQCString(" 2>&1 <") + tty; TQCString options = TQCString(">") + tty + TQCString(" 2>&1 <") + tty;
KProcess *proc = new KProcess; TDEProcess *proc = new TDEProcess;
*proc << "sh" << "-c"; *proc << "sh" << "-c";
*proc << config_runShellScript_ + *proc << config_runShellScript_ +
" " + application_.latin1() + options; " " + application_.latin1() + options;
proc->start(KProcess::DontCare); proc->start(TDEProcess::DontCare);
} }
if (!config_runGdbScript_.isEmpty()) {// gdb script at run is requested if (!config_runGdbScript_.isEmpty()) {// gdb script at run is requested
@ -1421,13 +1421,13 @@ void GDBController::processMICommandResponse(const GDBMI::ResultRecord& result)
} }
// Data from gdb gets processed here. // Data from gdb gets processed here.
void GDBController::slotDbgStdout(KProcess *, char *buf, int buflen) void GDBController::slotDbgStdout(TDEProcess *, char *buf, int buflen)
{ {
static bool parsing = false; static bool parsing = false;
TQCString msg(buf, buflen+1); TQCString msg(buf, buflen+1);
// Copy the data out of the KProcess buffer before it gets overwritten // Copy the data out of the TDEProcess buffer before it gets overwritten
// Append to the back of the holding zone. // Append to the back of the holding zone.
holdingZone_ += TQCString(buf, buflen+1); holdingZone_ += TQCString(buf, buflen+1);
@ -1685,7 +1685,7 @@ void GDBController::raiseEvent(event_t e)
} }
void GDBController::slotDbgStderr(KProcess *proc, char *buf, int buflen) void GDBController::slotDbgStderr(TDEProcess *proc, char *buf, int buflen)
{ {
// At the moment, just drop a message out and redirect // At the moment, just drop a message out and redirect
kdDebug(9012) << "STDERR: " << TQString::fromLatin1(buf, buflen+1) << endl; kdDebug(9012) << "STDERR: " << TQString::fromLatin1(buf, buflen+1) << endl;
@ -1694,7 +1694,7 @@ void GDBController::slotDbgStderr(KProcess *proc, char *buf, int buflen)
// ************************************************************************** // **************************************************************************
void GDBController::slotDbgWroteStdin(KProcess *) void GDBController::slotDbgWroteStdin(TDEProcess *)
{ {
commandExecutionTime.start(); commandExecutionTime.start();
@ -1706,7 +1706,7 @@ void GDBController::slotDbgWroteStdin(KProcess *)
// ************************************************************************** // **************************************************************************
void GDBController::slotDbgProcessExited(KProcess* process) void GDBController::slotDbgProcessExited(TDEProcess* process)
{ {
Q_ASSERT(process == dbgProcess_); Q_ASSERT(process == dbgProcess_);
bool abnormal = !process->normalExit(); bool abnormal = !process->normalExit();

@ -33,7 +33,7 @@
#include <memory> #include <memory>
#include <set> #include <set>
class KProcess; class TDEProcess;
namespace GDBDebugger namespace GDBDebugger
{ {
@ -254,10 +254,10 @@ public slots:
protected slots: protected slots:
void slotDbgStdout(KProcess *proc, char *buf, int buflen); void slotDbgStdout(TDEProcess *proc, char *buf, int buflen);
void slotDbgStderr(KProcess *proc, char *buf, int buflen); void slotDbgStderr(TDEProcess *proc, char *buf, int buflen);
void slotDbgWroteStdin(KProcess *proc); void slotDbgWroteStdin(TDEProcess *proc);
void slotDbgProcessExited(KProcess *proc); void slotDbgProcessExited(TDEProcess *proc);
signals: signals:

@ -1847,7 +1847,7 @@ void VarItem::paintCell(TQPainter *p, const TQColorGroup &cg,
// to easy see the diferrence between the pointers. // to easy see the diferrence between the pointers.
if (column == ValueCol) if (column == ValueCol)
{ {
p->setFont(KGlobalSettings::fixedFont()); p->setFont(TDEGlobalSettings::fixedFont());
} }
if (!alive_) if (!alive_)

@ -31,7 +31,7 @@
#include "tqdir.h" /* defines TQDir */ #include "tqdir.h" /* defines TQDir */
#include "tqregexp.h" /* defines TQRegExp */ #include "tqregexp.h" /* defines TQRegExp */
#include "klocale.h" /* defines [function] i18n */ #include "klocale.h" /* defines [function] i18n */
#include "blockingkprocess.h" /* defines BlockingKProcess */ #include "blockingkprocess.h" /* defines BlockingTDEProcess */
#include "includepathresolver.h" #include "includepathresolver.h"
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/time.h> #include <sys/time.h>
@ -377,11 +377,11 @@ PathResolutionResult IncludePathResolver::resolveIncludePath( const TQString& fi
PathResolutionResult IncludePathResolver::getFullOutput( const TQString& command, const TQString& workingDirectory, TQString& output ) const{ PathResolutionResult IncludePathResolver::getFullOutput( const TQString& command, const TQString& workingDirectory, TQString& output ) const{
if( m_continueEventLoop ) { if( m_continueEventLoop ) {
BlockingKProcess proc; BlockingTDEProcess proc;
proc.setWorkingDirectory( workingDirectory ); proc.setWorkingDirectory( workingDirectory );
proc.setUseShell( true ); proc.setUseShell( true );
proc << command; proc << command;
if ( !proc.start(KProcess::NotifyOnExit, KProcess::Stdout) ) { if ( !proc.start(TDEProcess::NotifyOnExit, TDEProcess::Stdout) ) {
return PathResolutionResult( false, i18n("Could not start the make-process") ); return PathResolutionResult( false, i18n("Could not start the make-process") );
} }

@ -38,7 +38,7 @@ namespace CppTools {
///One resolution-try can issue up to 4 make-calls in worst case ///One resolution-try can issue up to 4 make-calls in worst case
class IncludePathResolver { class IncludePathResolver {
public: public:
///Whether the TQt event-loop should be continued(using BlockingKProcess). This crashes if enabled in a non-foreground thread. ///Whether the TQt event-loop should be continued(using BlockingTDEProcess). This crashes if enabled in a non-foreground thread.
IncludePathResolver( bool continueEventLoop = false ); IncludePathResolver( bool continueEventLoop = false );
///Same as below, but uses the directory of the file as working-directory. The argument must be absolute. ///Same as below, but uses the directory of the file as working-directory. The argument must be absolute.
PathResolutionResult resolveIncludePath( const TQString& file ); PathResolutionResult resolveIncludePath( const TQString& file );
@ -62,7 +62,7 @@ namespace CppTools {
typedef TQMap<TQString, CacheEntry> Cache; typedef TQMap<TQString, CacheEntry> Cache;
Cache m_cache; Cache m_cache;
///Executes the command, either using popen or BlockingKProcess ///Executes the command, either using popen or BlockingTDEProcess
PathResolutionResult getFullOutput( const TQString& command, const TQString& workingDirectory, TQString& output ) const; PathResolutionResult getFullOutput( const TQString& command, const TQString& workingDirectory, TQString& output ) const;
bool executeCommandPopen ( const TQString& command, const TQString& workingDirectory, TQString& result ) const; bool executeCommandPopen ( const TQString& command, const TQString& workingDirectory, TQString& result ) const;
///file should be the name of the target, without extension(because that may be different) ///file should be the name of the target, without extension(because that may be different)

@ -12,7 +12,7 @@
#include <unistd.h> #include <unistd.h>
#include <tqmap.h> #include <tqmap.h>
class KProcess; class TDEProcess;
namespace CppTools { namespace CppTools {
class IncludePathResolver; class IncludePathResolver;
}; };

@ -64,7 +64,7 @@ TQStringList KDevQt4Importer::fileList()
KProcess proc; TDEProcess proc;
proc << "cpp" << "-nostdinc" << "-xc++"; proc << "cpp" << "-nostdinc" << "-xc++";
m_qtfile = new KTempFile(); m_qtfile = new KTempFile();
@ -81,7 +81,7 @@ TQStringList KDevQt4Importer::fileList()
o += m_qtfile->name(); o += m_qtfile->name();
proc << ifile.name() << o; proc << ifile.name() << o;
proc.start(KProcess::Block); proc.start(TDEProcess::Block);
return m_qtfile->name(); return m_qtfile->name();
} }

@ -25,10 +25,10 @@ TQString getGccIncludePath(bool *ok)
{ {
*ok = true; *ok = true;
TQString processStdout; TQString processStdout;
BlockingKProcess proc; BlockingTDEProcess proc;
proc << "gcc" ; proc << "gcc" ;
proc << "-print-file-name=include" ; proc << "-print-file-name=include" ;
if ( !proc.start(KProcess::NotifyOnExit, KProcess::Stdout) ) { if ( !proc.start(TDEProcess::NotifyOnExit, TDEProcess::Stdout) ) {
kdWarning(9007) << "Couldn't start gcc" << endl; kdWarning(9007) << "Couldn't start gcc" << endl;
*ok = false; *ok = false;
return TQString(); return TQString();
@ -54,11 +54,11 @@ TQString getVerboseGccIncludePath(bool *ok)
fwrite(fileText, strlen(fileText), 1, tempFile.fstream() ); fwrite(fileText, strlen(fileText), 1, tempFile.fstream() );
tempFile.close(); tempFile.close();
BlockingKProcess proc; BlockingTDEProcess proc;
proc.setUseShell(true); proc.setUseShell(true);
proc.setWorkingDirectory(pathInfo.dir(true).path()); proc.setWorkingDirectory(pathInfo.dir(true).path());
proc << "gcc -v " + pathInfo.fileName() + " 2>&1"; proc << "gcc -v " + pathInfo.fileName() + " 2>&1";
if ( !proc.start(KProcess::NotifyOnExit, KProcess::Stdout) ) { if ( !proc.start(TDEProcess::NotifyOnExit, TDEProcess::Stdout) ) {
kdWarning(9007) << "Couldn't start gcc" << endl; kdWarning(9007) << "Couldn't start gcc" << endl;
*ok = false; *ok = false;
return TQString(); return TQString();
@ -71,13 +71,13 @@ TQStringList getGccMacros(bool *ok)
{ {
*ok = true; *ok = true;
TQString processStdout; TQString processStdout;
BlockingKProcess proc; BlockingTDEProcess proc;
proc << "gcc"; proc << "gcc";
proc << "-E"; proc << "-E";
proc << "-dM"; proc << "-dM";
proc << "-ansi" ; proc << "-ansi" ;
proc << "-"; proc << "-";
if ( !proc.start(KProcess::NotifyOnExit, KProcess::Stdout) ) { if ( !proc.start(TDEProcess::NotifyOnExit, TDEProcess::Stdout) ) {
kdWarning(9007) << "Couldn't start gcc" << endl; kdWarning(9007) << "Couldn't start gcc" << endl;
*ok = false; *ok = false;
return TQStringList(); return TQStringList();

@ -37,10 +37,10 @@ void CSharpdocProtocol::get(const KURL& url)
if (l[0] == "functions") { if (l[0] == "functions") {
plain = true; plain = true;
cmd += "-t -f "; cmd += "-t -f ";
cmd += KProcess::quote(l[1]); cmd += TDEProcess::quote(l[1]);
} else if (l[0] == "faq") { } else if (l[0] == "faq") {
cmd += "-u -q "; cmd += "-u -q ";
cmd += KProcess::quote(l[1]); cmd += TDEProcess::quote(l[1]);
cmd += " | pod2html"; cmd += " | pod2html";
} else { } else {
TQCString errstr(i18n("The only existing directories are functions and faq.").local8Bit()); TQCString errstr(i18n("The only existing directories are functions and faq.").local8Bit());
@ -117,7 +117,7 @@ extern "C" {
int kdemain(int argc, char **argv) int kdemain(int argc, char **argv)
{ {
TDEInstance instance( "kio_csharpdoc" ); TDEInstance instance( "kio_csharpdoc" );
KGlobal::locale()->setMainCatalogue("tdevelop"); TDEGlobal::locale()->setMainCatalogue("tdevelop");
if (argc != 4) { if (argc != 4) {
fprintf(stderr, "Usage: kio_csharpdoc protocol domain-socket1 domain-socket2\n"); fprintf(stderr, "Usage: kio_csharpdoc protocol domain-socket1 domain-socket2\n");

@ -92,7 +92,7 @@ void FortranSupportPart::slotFtnchek()
TQDomDocument &dom = *projectDom(); TQDomDocument &dom = *projectDom();
TQString cmdline = "cd "; TQString cmdline = "cd ";
cmdline += KProcess::quote(project()->projectDirectory()); cmdline += TDEProcess::quote(project()->projectDirectory());
cmdline += "&& ftnchek -nonovice "; cmdline += "&& ftnchek -nonovice ";
if (DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/division")) if (DomUtil::readBoolEntry(dom, "/kdevfortransupport/ftnchek/division"))

@ -37,10 +37,10 @@ void PerldocProtocol::get(const KURL& url)
if (l[0] == "functions") { if (l[0] == "functions") {
plain = true; plain = true;
cmd += "-t -f "; cmd += "-t -f ";
cmd += KProcess::quote(l[1]); cmd += TDEProcess::quote(l[1]);
} else if (l[0] == "faq") { } else if (l[0] == "faq") {
cmd += "-u -q "; cmd += "-u -q ";
cmd += KProcess::quote(l[1]); cmd += TDEProcess::quote(l[1]);
cmd += " | pod2html"; cmd += " | pod2html";
} else { } else {
TQCString errstr(i18n("The only existing directories are functions and faq.").local8Bit()); TQCString errstr(i18n("The only existing directories are functions and faq.").local8Bit());
@ -117,7 +117,7 @@ extern "C" {
int kdemain(int argc, char **argv) int kdemain(int argc, char **argv)
{ {
TDEInstance instance( "kio_perldoc" ); TDEInstance instance( "kio_perldoc" );
KGlobal::locale()->setMainCatalogue("tdevelop"); TDEGlobal::locale()->setMainCatalogue("tdevelop");
if (argc != 4) { if (argc != 4) {
fprintf(stderr, "Usage: kio_perldoc protocol domain-socket1 domain-socket2\n"); fprintf(stderr, "Usage: kio_perldoc protocol domain-socket1 domain-socket2\n");

@ -129,16 +129,16 @@ void PHPConfigWidget::slotAboutClicked()
proc << exe_edit->text(); proc << exe_edit->text();
proc << "-m"; proc << "-m";
connect( &proc, TQT_SIGNAL(receivedStdout (KProcess*, char*, int)), connect( &proc, TQT_SIGNAL(receivedStdout (TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedPHPInfo (KProcess*, char*, int))); this, TQT_SLOT(slotReceivedPHPInfo (TDEProcess*, char*, int)));
proc.start(KProcess::Block,KProcess::Stdout); proc.start(TDEProcess::Block,TDEProcess::Stdout);
PHPInfoDlg dlg(this,"phpinfo",true); PHPInfoDlg dlg(this,"phpinfo",true);
dlg.php_edit->setText(m_phpInfo); dlg.php_edit->setText(m_phpInfo);
dlg.exec(); dlg.exec();
m_phpInfo = ""; m_phpInfo = "";
} }
void PHPConfigWidget::slotReceivedPHPInfo (KProcess* /*proc*/, char* buffer, int buflen){ void PHPConfigWidget::slotReceivedPHPInfo (TDEProcess* /*proc*/, char* buffer, int buflen){
m_phpInfo += TQCString(buffer,buflen+1); m_phpInfo += TQCString(buffer,buflen+1);
} }

@ -3,7 +3,7 @@
#include "phpconfigwidgetbase.h" #include "phpconfigwidgetbase.h"
#include <tqstring.h> #include <tqstring.h>
class KProcess; class TDEProcess;
class PHPConfigData; class PHPConfigData;
class PHPConfigWidget : public PHPConfigWidgetBase class PHPConfigWidget : public PHPConfigWidgetBase
@ -21,7 +21,7 @@ public slots:
virtual void slotPHPExeButtonClicked(); virtual void slotPHPExeButtonClicked();
virtual void slotPHPIniButtonClicked(); virtual void slotPHPIniButtonClicked();
void accept(); void accept();
void slotReceivedPHPInfo (KProcess* proc, char* buffer, int buflen); void slotReceivedPHPInfo (TDEProcess* proc, char* buffer, int buflen);
private: private:
TQDomDocument* dom; TQDomDocument* dom;

@ -44,9 +44,9 @@ PHPFile::PHPFile(PHPSupportPart *phpSupport, const TQString& fileName)
/* /*
phpCheckProc = new KShellProcess("/bin/sh"); phpCheckProc = new KShellProcess("/bin/sh");
connect(phpCheckProc, TQT_SIGNAL(receivedStdout (KProcess*, char*, int)), this, TQT_SLOT(slotReceivedPHPCheckStdout (KProcess*, char*, int))); connect(phpCheckProc, TQT_SIGNAL(receivedStdout (TDEProcess*, char*, int)), this, TQT_SLOT(slotReceivedPHPCheckStdout (TDEProcess*, char*, int)));
connect(phpCheckProc, TQT_SIGNAL(receivedStderr (KProcess*, char*, int)), this, TQT_SLOT(slotReceivedPHPCheckStderr (KProcess*, char*, int))); connect(phpCheckProc, TQT_SIGNAL(receivedStderr (TDEProcess*, char*, int)), this, TQT_SLOT(slotReceivedPHPCheckStderr (TDEProcess*, char*, int)));
connect(phpCheckProc, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(slotPHPCheckExited(KProcess*))); connect(phpCheckProc, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotPHPCheckExited(TDEProcess*)));
*/ */
} }
@ -487,7 +487,7 @@ void PHPFile::PHPCheck() {
*phpCheckProc << m_phpSupport->getExePath(); *phpCheckProc << m_phpSupport->getExePath();
*phpCheckProc << "-l -f" << KShellProcess::quote(fileName()); *phpCheckProc << "-l -f" << KShellProcess::quote(fileName());
phpCheckProc->start(KProcess::DontCare, KProcess::All); phpCheckProc->start(TDEProcess::DontCare, TDEProcess::All);
*/ */
/* /*
@ -505,17 +505,17 @@ void PHPFile::PHPCheck() {
} }
/* /*
void PHPFile::slotReceivedPHPCheckStdout (KProcess* proc, char* buffer, int buflen) { void PHPFile::slotReceivedPHPCheckStdout (TDEProcess* proc, char* buffer, int buflen) {
kdDebug(9018) << "slotPHPExeStdout()" << endl; kdDebug(9018) << "slotPHPExeStdout()" << endl;
m_phpCheckOutput += TQString::fromLocal8Bit(buffer,buflen+1); m_phpCheckOutput += TQString::fromLocal8Bit(buffer,buflen+1);
} }
void PHPFile::slotReceivedPHPCheckStderr (KProcess* proc, char* buffer, int buflen) { void PHPFile::slotReceivedPHPCheckStderr (TDEProcess* proc, char* buffer, int buflen) {
kdDebug(9018) << "slotPHPExeStderr()" << endl; kdDebug(9018) << "slotPHPExeStderr()" << endl;
m_phpCheckOutput += TQString::fromLocal8Bit(buffer,buflen+1); m_phpCheckOutput += TQString::fromLocal8Bit(buffer,buflen+1);
} }
void PHPFile::slotPHPCheckExited (KProcess* proc) { void PHPFile::slotPHPCheckExited (TDEProcess* proc) {
kdDebug(v) << "slotPHPExeExited()" << endl; kdDebug(v) << "slotPHPExeExited()" << endl;
} }
*/ */

@ -67,9 +67,9 @@ public:
/* /*
private slots: private slots:
void slotReceivedPHPCheckStderr (KProcess* proc, char* buffer, int buflen); void slotReceivedPHPCheckStderr (TDEProcess* proc, char* buffer, int buflen);
void slotReceivedPHPCheckStdout (KProcess* proc, char* buffer, int buflen); void slotReceivedPHPCheckStdout (TDEProcess* proc, char* buffer, int buflen);
void slotPHPCheckExited (KProcess* proc); void slotPHPCheckExited (TDEProcess* proc);
*/ */
private: private:
TQStringList readFromEditor(); TQStringList readFromEditor();

@ -37,7 +37,7 @@ PHPNewClassDlg::PHPNewClassDlg(const TQStringList& baseClassNames,const TQString
m_dirEdit->setText(directory); m_dirEdit->setText(directory);
// load the class template if available // load the class template if available
TQString templateFile = KGlobal::instance()->dirs()->findResource("data","kdevphpsupport/newclasstemplate.txt"); TQString templateFile = TDEGlobal::instance()->dirs()->findResource("data","kdevphpsupport/newclasstemplate.txt");
if(!templateFile.isNull()){ if(!templateFile.isNull()){
TQFile file(templateFile); TQFile file(templateFile);
TQTextStream stream(&file); TQTextStream stream(&file);
@ -86,7 +86,7 @@ void PHPNewClassDlg::accept(){
TQString absFileName = classDir + m_fileNameEdit->text(); TQString absFileName = classDir + m_fileNameEdit->text();
// save the template for the next time // save the template for the next time
TQString templateDir = KGlobal::instance()->dirs()->saveLocation("data") + "/kdevphpsupport/"; TQString templateDir = TDEGlobal::instance()->dirs()->saveLocation("data") + "/kdevphpsupport/";
TQString templateFile = templateDir + "newclasstemplate.txt"; TQString templateFile = templateDir + "newclasstemplate.txt";
TQDir dir(templateDir); TQDir dir(templateDir);
if(!dir.exists()){ if(!dir.exists()){

@ -107,12 +107,12 @@ PHPSupportPart::PHPSupportPart(TQObject *parent, const char *name, const TQStrin
mainWindow()->embedOutputView(m_phpErrorView, i18n("Problems"), i18n("Problems")); mainWindow()->embedOutputView(m_phpErrorView, i18n("Problems"), i18n("Problems"));
phpExeProc = new KShellProcess("/bin/sh"); phpExeProc = new KShellProcess("/bin/sh");
connect( phpExeProc, TQT_SIGNAL(receivedStdout (KProcess*, char*, int)), connect( phpExeProc, TQT_SIGNAL(receivedStdout (TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedPHPExeStdout (KProcess*, char*, int))); this, TQT_SLOT(slotReceivedPHPExeStdout (TDEProcess*, char*, int)));
connect( phpExeProc, TQT_SIGNAL(receivedStderr (KProcess*, char*, int)), connect( phpExeProc, TQT_SIGNAL(receivedStderr (TDEProcess*, char*, int)),
this, TQT_SLOT(slotReceivedPHPExeStderr (KProcess*, char*, int))); this, TQT_SLOT(slotReceivedPHPExeStderr (TDEProcess*, char*, int)));
connect( phpExeProc, TQT_SIGNAL(processExited(KProcess*)), connect( phpExeProc, TQT_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(slotPHPExeExited(KProcess*))); this, TQT_SLOT(slotPHPExeExited(TDEProcess*)));
m_htmlView = new PHPHTMLView(this); m_htmlView = new PHPHTMLView(this);
mainWindow()->embedOutputView(m_htmlView->view(), i18n("PHP"), i18n("PHP")); mainWindow()->embedOutputView(m_htmlView->view(), i18n("PHP"), i18n("PHP"));
@ -343,12 +343,12 @@ void PHPSupportPart::executeInTerminal() {
*phpExeProc << KShellProcess::quote(file); *phpExeProc << KShellProcess::quote(file);
kdDebug(9018) << "" << file.latin1() << endl; kdDebug(9018) << "" << file.latin1() << endl;
phpExeProc->start(KProcess::NotifyOnExit,KProcess::All); phpExeProc->start(TDEProcess::NotifyOnExit,TDEProcess::All);
// core()->gotoDocumentationFile(KURL("http://www.php.net")); // core()->gotoDocumentationFile(KURL("http://www.php.net"));
} }
void PHPSupportPart::slotReceivedPHPExeStdout (KProcess* /*proc*/, char* buffer, int buflen) { void PHPSupportPart::slotReceivedPHPExeStdout (TDEProcess* /*proc*/, char* buffer, int buflen) {
kdDebug(9018) << "slotPHPExeStdout()" << endl; kdDebug(9018) << "slotPHPExeStdout()" << endl;
m_phpExeOutput += TQString::fromLocal8Bit(buffer,buflen+1); m_phpExeOutput += TQString::fromLocal8Bit(buffer,buflen+1);
@ -358,7 +358,7 @@ void PHPSupportPart::slotReceivedPHPExeStdout (KProcess* /*proc*/, char* buffer,
m_htmlView->write(buf); m_htmlView->write(buf);
} }
void PHPSupportPart::slotReceivedPHPExeStderr (KProcess* /*proc*/, char* buffer, int buflen) { void PHPSupportPart::slotReceivedPHPExeStderr (TDEProcess* /*proc*/, char* buffer, int buflen) {
kdDebug(9018) << "slotPHPExeStderr()" << endl; kdDebug(9018) << "slotPHPExeStderr()" << endl;
m_phpExeOutput += TQString::fromLocal8Bit(buffer,buflen+1); m_phpExeOutput += TQString::fromLocal8Bit(buffer,buflen+1);
@ -368,7 +368,7 @@ void PHPSupportPart::slotReceivedPHPExeStderr (KProcess* /*proc*/, char* buffer,
m_htmlView->write(buf); m_htmlView->write(buf);
} }
void PHPSupportPart::slotPHPExeExited (KProcess* /*proc*/) { void PHPSupportPart::slotPHPExeExited (TDEProcess* /*proc*/) {
kdDebug(9018) << "slotPHPExeExited()" << endl; kdDebug(9018) << "slotPHPExeExited()" << endl;
m_htmlView->end(); m_htmlView->end();
TQString file = getExecuteFile(); TQString file = getExecuteFile();

@ -34,7 +34,7 @@
class TQStringList; class TQStringList;
class PHPHTMLView; class PHPHTMLView;
class KShellProcess; class KShellProcess;
class KProcess; class TDEProcess;
class PHPErrorView; class PHPErrorView;
class PHPConfigData; class PHPConfigData;
class PHPCodeCompletion; class PHPCodeCompletion;
@ -72,9 +72,9 @@ private slots:
void slotRun(); void slotRun();
void slotNewClass(); void slotNewClass();
void projectConfigWidget(KDialogBase *dlg); void projectConfigWidget(KDialogBase *dlg);
void slotReceivedPHPExeStderr (KProcess* proc, char* buffer, int buflen); void slotReceivedPHPExeStderr (TDEProcess* proc, char* buffer, int buflen);
void slotReceivedPHPExeStdout (KProcess* proc, char* buffer, int buflen); void slotReceivedPHPExeStdout (TDEProcess* proc, char* buffer, int buflen);
void slotPHPExeExited (KProcess* proc); void slotPHPExeExited (TDEProcess* proc);
void slotWebData(KIO::Job* job,const TQByteArray& data); void slotWebData(KIO::Job* job,const TQByteArray& data);
void slotWebResult(KIO::Job* job); void slotWebResult(KIO::Job* job);
void slotWebJobStarted(KIO::Job* job); void slotWebJobStarted(KIO::Job* job);

@ -19,7 +19,7 @@ using namespace KIO;
PydocProtocol::PydocProtocol(const TQCString &pool, const TQCString &app) PydocProtocol::PydocProtocol(const TQCString &pool, const TQCString &app)
: SlaveBase("pydoc", pool, app), key() : SlaveBase("pydoc", pool, app), key()
{ {
python = KGlobal::dirs()->findExe("python"); python = TDEGlobal::dirs()->findExe("python");
script = locate("data", "kio_pydoc/kde_pydoc.py"); script = locate("data", "kio_pydoc/kde_pydoc.py");
} }
@ -33,11 +33,11 @@ void PydocProtocol::get(const KURL& url)
mimeType("text/html"); mimeType("text/html");
key = url.path(); key = url.path();
TQString cmd = KProcess::quote(python); TQString cmd = TDEProcess::quote(python);
cmd += " "; cmd += " ";
cmd += KProcess::quote(script); cmd += TDEProcess::quote(script);
cmd += " -w "; cmd += " -w ";
cmd += KProcess::quote(key); cmd += TDEProcess::quote(key);
FILE *fd = popen(cmd.local8Bit().data(), "r"); FILE *fd = popen(cmd.local8Bit().data(), "r");
char buffer[4096]; char buffer[4096];
@ -97,7 +97,7 @@ extern "C" {
int kdemain(int argc, char **argv) int kdemain(int argc, char **argv)
{ {
TDEInstance instance( "kio_pydoc" ); TDEInstance instance( "kio_pydoc" );
KGlobal::locale()->setMainCatalogue("tdevelop"); TDEGlobal::locale()->setMainCatalogue("tdevelop");
if (argc != 4) { if (argc != 4) {
fprintf(stderr, "Usage: kio_pydoc protocol domain-socket1 domain-socket2\n"); fprintf(stderr, "Usage: kio_pydoc protocol domain-socket1 domain-socket2\n");

@ -25,7 +25,7 @@
#include <tqobject.h> #include <tqobject.h>
#include <domutil.h> #include <domutil.h>
class KProcess; class TDEProcess;
class TQString; class TQString;
class TQStrList; class TQStrList;
@ -134,10 +134,10 @@ public slots:
virtual void slotFetchGlobals(bool fetch) = 0; virtual void slotFetchGlobals(bool fetch) = 0;
protected slots: protected slots:
virtual void slotDbgStdout(KProcess *proc, char *buf, int buflen) = 0; virtual void slotDbgStdout(TDEProcess *proc, char *buf, int buflen) = 0;
virtual void slotDbgStderr(KProcess*, char*, int) {} ; virtual void slotDbgStderr(TDEProcess*, char*, int) {} ;
virtual void slotDbgWroteStdin(KProcess *proc) = 0; virtual void slotDbgWroteStdin(TDEProcess *proc) = 0;
virtual void slotDbgProcessExited(KProcess *proc) = 0; virtual void slotDbgProcessExited(TDEProcess *proc) = 0;
virtual void slotAcceptConnection(int passive_socket) = 0; virtual void slotAcceptConnection(int passive_socket) = 0;
virtual void slotReadFromSocket(int socket) = 0; virtual void slotReadFromSocket(int socket) = 0;
@ -154,7 +154,7 @@ signals:
void dbgStatus (const TQString &status, int statusFlag); void dbgStatus (const TQString &status, int statusFlag);
protected: protected:
KProcess *dbgProcess_; TDEProcess *dbgProcess_;
}; };
} }

@ -62,14 +62,14 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
TQBoxLayout *topLayout = new TQVBoxLayout(this, 5); TQBoxLayout *topLayout = new TQVBoxLayout(this, 5);
heading_->setFont(KGlobalSettings::fixedFont()); heading_->setFont(TDEGlobalSettings::fixedFont());
heading_->setFrameStyle(TQFrame::Panel|TQFrame::Sunken); heading_->setFrameStyle(TQFrame::Panel|TQFrame::Sunken);
heading_->setMaximumHeight(heading_->sizeHint().height()); heading_->setMaximumHeight(heading_->sizeHint().height());
// heading_->setMinimumSize(heading_->sizeHint()); // heading_->setMinimumSize(heading_->sizeHint());
topLayout->addWidget(heading_, 5); topLayout->addWidget(heading_, 5);
topLayout->addWidget(pids_, 5); topLayout->addWidget(pids_, 5);
pids_->setFont(KGlobalSettings::fixedFont()); pids_->setFont(TDEGlobalSettings::fixedFont());
KButtonBox *buttonbox = new KButtonBox(this, Qt::Horizontal, 5); KButtonBox *buttonbox = new KButtonBox(this, Qt::Horizontal, 5);
TQPushButton *ok = buttonbox->addButton(KStdGuiItem::ok()); TQPushButton *ok = buttonbox->addButton(KStdGuiItem::ok());
@ -106,12 +106,12 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name)
} }
#endif #endif
connect( psProc_, TQT_SIGNAL(processExited(KProcess *)), TQT_SLOT(slotProcessExited()) ); connect( psProc_, TQT_SIGNAL(processExited(TDEProcess *)), TQT_SLOT(slotProcessExited()) );
connect( psProc_, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), TQT_SLOT(slotReceivedOutput(KProcess *, char *, int)) ); connect( psProc_, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), TQT_SLOT(slotReceivedOutput(TDEProcess *, char *, int)) );
psProc_->start(KProcess::NotifyOnExit, KProcess::Stdout); psProc_->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout);
// Default display to 40 chars wide, default height is okay // Default display to 40 chars wide, default height is okay
resize( ((KGlobalSettings::fixedFont()).pointSize())*40, height()); resize( ((TDEGlobalSettings::fixedFont()).pointSize())*40, height());
topLayout->activate(); topLayout->activate();
} }
@ -135,7 +135,7 @@ int Dbg_PS_Dialog::pidSelected()
/***************************************************************************/ /***************************************************************************/
void Dbg_PS_Dialog::slotReceivedOutput(KProcess */*proc*/, char *buffer, int buflen) void Dbg_PS_Dialog::slotReceivedOutput(TDEProcess */*proc*/, char *buffer, int buflen)
{ {
pidLines_ += TQString::fromLocal8Bit(buffer, buflen+1); pidLines_ += TQString::fromLocal8Bit(buffer, buflen+1);
} }

@ -25,7 +25,7 @@
#include <kdialog.h> #include <kdialog.h>
class TQListBox; class TQListBox;
class KProcess; class TDEProcess;
class TQLabel; class TQLabel;
namespace RDBDebugger namespace RDBDebugger
@ -45,11 +45,11 @@ public:
int pidSelected(); int pidSelected();
private slots: private slots:
void slotReceivedOutput(KProcess *proc, char *buffer, int buflen); void slotReceivedOutput(TDEProcess *proc, char *buffer, int buflen);
void slotProcessExited(); void slotProcessExited();
private: private:
KProcess* psProc_; TDEProcess* psProc_;
TQListBox* pids_; TQListBox* pids_;
TQLabel* heading_; TQLabel* heading_;
TQString pidLines_; TQString pidLines_;

@ -714,19 +714,19 @@ void RDBController::slotStart(const TQString& ruby_interpreter, const TQString&
return; return;
} }
dbgProcess_ = new KProcess; dbgProcess_ = new TDEProcess;
connect( dbgProcess_, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), connect( dbgProcess_, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
this, TQT_SLOT(slotDbgStdout(KProcess *, char *, int)) ); this, TQT_SLOT(slotDbgStdout(TDEProcess *, char *, int)) );
connect( dbgProcess_, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), connect( dbgProcess_, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
this, TQT_SLOT(slotDbgStderr(KProcess *, char *, int)) ); this, TQT_SLOT(slotDbgStderr(TDEProcess *, char *, int)) );
connect( dbgProcess_, TQT_SIGNAL(wroteStdin(KProcess *)), connect( dbgProcess_, TQT_SIGNAL(wroteStdin(TDEProcess *)),
this, TQT_SLOT(slotDbgWroteStdin(KProcess *)) ); this, TQT_SLOT(slotDbgWroteStdin(TDEProcess *)) );
connect( dbgProcess_, TQT_SIGNAL(processExited(KProcess*)), connect( dbgProcess_, TQT_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(slotDbgProcessExited(KProcess*)) ); this, TQT_SLOT(slotDbgProcessExited(TDEProcess*)) );
rubyInterpreter_ = ruby_interpreter; rubyInterpreter_ = ruby_interpreter;
characterCoding_ = character_coding; characterCoding_ = character_coding;
@ -752,8 +752,8 @@ void RDBController::slotStart(const TQString& ruby_interpreter, const TQString&
+ " -r " + debuggee_path + " " + " -r " + debuggee_path + " "
+ application + " " + run_arguments ).latin1() ); + application + " " + run_arguments ).latin1() );
if (!dbgProcess_->start( KProcess::NotifyOnExit, if (!dbgProcess_->start( TDEProcess::NotifyOnExit,
KProcess::Communication(KProcess::All)) ) TDEProcess::Communication(TDEProcess::All)) )
{ {
kdDebug(9012) << "Couldn't start ruby debugger" << endl; kdDebug(9012) << "Couldn't start ruby debugger" << endl;
} }
@ -1154,7 +1154,7 @@ void RDBController::slotFetchGlobals(bool fetch)
// ************************************************************************** // **************************************************************************
// Data from the ruby program's stdout gets processed here. // Data from the ruby program's stdout gets processed here.
void RDBController::slotDbgStdout(KProcess *, char *buf, int buflen) void RDBController::slotDbgStdout(TDEProcess *, char *buf, int buflen)
{ {
TQCString msg(buf, buflen+1); TQCString msg(buf, buflen+1);
emit ttyStdout(msg); emit ttyStdout(msg);
@ -1163,7 +1163,7 @@ void RDBController::slotDbgStdout(KProcess *, char *buf, int buflen)
// ************************************************************************** // **************************************************************************
// Data from the ruby program's stderr gets processed here. // Data from the ruby program's stderr gets processed here.
void RDBController::slotDbgStderr(KProcess *, char *buf, int buflen) void RDBController::slotDbgStderr(TDEProcess *, char *buf, int buflen)
{ {
TQCString msg(buf, buflen+1); TQCString msg(buf, buflen+1);
emit ttyStderr(msg); emit ttyStderr(msg);
@ -1171,7 +1171,7 @@ void RDBController::slotDbgStderr(KProcess *, char *buf, int buflen)
// ************************************************************************** // **************************************************************************
void RDBController::slotDbgWroteStdin(KProcess *) void RDBController::slotDbgWroteStdin(TDEProcess *)
{ {
// setStateOff(s_waitForWrite); // setStateOff(s_waitForWrite);
// if (!stateIsOn(s_silent)) // if (!stateIsOn(s_silent))
@ -1279,7 +1279,7 @@ void RDBController::slotReadFromSocket(int socket)
// ************************************************************************** // **************************************************************************
void RDBController::slotDbgProcessExited(KProcess*) void RDBController::slotDbgProcessExited(TDEProcess*)
{ {
destroyCmds(); destroyCmds();
state_ = s_appNotStarted|s_programExited|(state_&(s_shuttingDown)); state_ = s_appNotStarted|s_programExited|(state_&(s_shuttingDown));

@ -36,7 +36,7 @@
#include <tqstring.h> #include <tqstring.h>
#include <tqsocketnotifier.h> #include <tqsocketnotifier.h>
class KProcess; class TDEProcess;
namespace RDBDebugger namespace RDBDebugger
{ {
@ -127,10 +127,10 @@ public slots:
void slotUserRDBCmd(const TQString&); void slotUserRDBCmd(const TQString&);
protected slots: protected slots:
void slotDbgStdout(KProcess *proc, char *buf, int buflen); void slotDbgStdout(TDEProcess *proc, char *buf, int buflen);
void slotDbgStderr(KProcess *proc, char *buf, int buflen); void slotDbgStderr(TDEProcess *proc, char *buf, int buflen);
void slotDbgWroteStdin(KProcess *proc); void slotDbgWroteStdin(TDEProcess *proc);
void slotDbgProcessExited(KProcess *proc); void slotDbgProcessExited(TDEProcess *proc);
void slotAcceptConnection(int masterSocket); void slotAcceptConnection(int masterSocket);
void slotReadFromSocket(int socket); void slotReadFromSocket(int socket);

@ -63,7 +63,7 @@ KDevPlugin::KDevPlugin(const KDevPluginInfo *info, TQObject *parent, const char
actionCollection()->setHighlightingEnabled( true ); actionCollection()->setHighlightingEnabled( true );
d->info = info; d->info = info;
KGlobal::iconLoader()->addAppDir("tdevelop"); TDEGlobal::iconLoader()->addAppDir("tdevelop");
} }
KDevPlugin::~KDevPlugin() KDevPlugin::~KDevPlugin()

@ -14,44 +14,44 @@
#include <tqapplication.h> #include <tqapplication.h>
#include <tqtimer.h> #include <tqtimer.h>
BlockingKProcess::BlockingKProcess(TQObject *parent, const char *name) BlockingTDEProcess::BlockingTDEProcess(TQObject *parent, const char *name)
: KProcess(parent, name) : TDEProcess(parent, name)
{ {
m_stdOut = ""; m_stdOut = "";
m_stdErr = ""; m_stdErr = "";
m_timeoutValue = 60; m_timeoutValue = 60;
m_timer = 0L; m_timer = 0L;
connect(this, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), connect(this, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
this, TQT_SLOT(slotReceivedStdOut(KProcess *, char *, int))); this, TQT_SLOT(slotReceivedStdOut(TDEProcess *, char *, int)));
connect(this, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), connect(this, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
this, TQT_SLOT(slotReceivedStdErr(KProcess *, char *, int))); this, TQT_SLOT(slotReceivedStdErr(TDEProcess *, char *, int)));
connect(this, TQT_SIGNAL(processExited(KProcess *)), connect(this, TQT_SIGNAL(processExited(TDEProcess *)),
this, TQT_SLOT(slotProcessExited(KProcess *))); this, TQT_SLOT(slotProcessExited(TDEProcess *)));
} }
BlockingKProcess::BlockingKProcess() BlockingTDEProcess::BlockingTDEProcess()
: KProcess() : TDEProcess()
{ {
m_stdOut = ""; m_stdOut = "";
m_stdErr = ""; m_stdErr = "";
m_timeoutValue = 60; m_timeoutValue = 60;
m_timer = 0L; m_timer = 0L;
connect(this, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), connect(this, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
this, TQT_SLOT(slotReceivedStdOut(KProcess *, char *, int))); this, TQT_SLOT(slotReceivedStdOut(TDEProcess *, char *, int)));
connect(this, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), connect(this, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
this, TQT_SLOT(slotReceivedStdErr(KProcess *, char *, int))); this, TQT_SLOT(slotReceivedStdErr(TDEProcess *, char *, int)));
connect(this, TQT_SIGNAL(processExited(KProcess *)), connect(this, TQT_SIGNAL(processExited(TDEProcess *)),
this, TQT_SLOT(slotProcessExited(KProcess *))); this, TQT_SLOT(slotProcessExited(TDEProcess *)));
} }
BlockingKProcess::~BlockingKProcess() BlockingTDEProcess::~BlockingTDEProcess()
{ {
} }
bool BlockingKProcess::start(RunMode runmode, Communication comm) bool BlockingTDEProcess::start(RunMode runmode, Communication comm)
{ {
if (KProcess::start(runmode, comm)) if (TDEProcess::start(runmode, comm))
{ {
m_timeout = false; m_timeout = false;
m_timer = new TQTimer(); m_timer = new TQTimer();
@ -66,22 +66,22 @@ bool BlockingKProcess::start(RunMode runmode, Communication comm)
} }
void BlockingKProcess::slotReceivedStdOut(KProcess *, char *buffer, int buflen) void BlockingTDEProcess::slotReceivedStdOut(TDEProcess *, char *buffer, int buflen)
{ {
m_stdOut += TQString::fromLatin1(buffer, buflen); m_stdOut += TQString::fromLatin1(buffer, buflen);
} }
void BlockingKProcess::slotReceivedStdErr(KProcess *, char *buffer, int buflen) void BlockingTDEProcess::slotReceivedStdErr(TDEProcess *, char *buffer, int buflen)
{ {
m_stdErr += TQString::fromLatin1(buffer, buflen); m_stdErr += TQString::fromLatin1(buffer, buflen);
} }
void BlockingKProcess::slotProcessExited(KProcess *) void BlockingTDEProcess::slotProcessExited(TDEProcess *)
{ {
tqApp->exit_loop(); tqApp->exit_loop();
} }
void BlockingKProcess::slotTimeOut() void BlockingTDEProcess::slotTimeOut()
{ {
m_timeout = true; m_timeout = true;
kill(); kill();
@ -92,7 +92,7 @@ void BlockingKProcess::slotTimeOut()
void tqt_enter_modal( TQWidget *widget ); void tqt_enter_modal( TQWidget *widget );
void tqt_leave_modal( TQWidget *widget ); void tqt_leave_modal( TQWidget *widget );
void BlockingKProcess::enter_loop() void BlockingTDEProcess::enter_loop()
{ {
TQWidget dummy(0,0,WType_Dialog | WShowModal); TQWidget dummy(0,0,WType_Dialog | WShowModal);
dummy.setFocusPolicy( TQ_NoFocus ); dummy.setFocusPolicy( TQ_NoFocus );

@ -17,8 +17,8 @@
#include <kprocess.h> #include <kprocess.h>
/** /**
* Blocking version of KProcess, which stores the stdout. * Blocking version of TDEProcess, which stores the stdout.
* Differences between start(KProcess::Block, KProcess::StdOut) and this * Differences between start(TDEProcess::Block, TDEProcess::StdOut) and this
* class are: * class are:
* - the GUI update is not blocked why the external process is running * - the GUI update is not blocked why the external process is running
* - in case of problems there is a timeout (defaults to 60 seconds), after which the * - in case of problems there is a timeout (defaults to 60 seconds), after which the
@ -28,22 +28,22 @@
*/ */
class TQTimer; class TQTimer;
class BlockingKProcess : public KProcess class BlockingTDEProcess : public TDEProcess
{ {
Q_OBJECT Q_OBJECT
public: public:
BlockingKProcess(TQObject *parent, const char *name=0); BlockingTDEProcess(TQObject *parent, const char *name=0);
BlockingKProcess(); BlockingTDEProcess();
virtual ~BlockingKProcess(); virtual ~BlockingTDEProcess();
/** /**
* Start the process. It waits until the process exits or the timeout is hit. * Start the process. It waits until the process exits or the timeout is hit.
* @param runmode @see KProcess, use KProcess::NotifyOnExit to get proper behaviour, * @param runmode @see TDEProcess, use TDEProcess::NotifyOnExit to get proper behaviour,
* not KProcess::Block * not TDEProcess::Block
* @param comm if Stdout is passed, it catches the output. For the rest @see KProcess * @param comm if Stdout is passed, it catches the output. For the rest @see TDEProcess
* @return true in case of success, false if there are problems to start the process * @return true in case of success, false if there are problems to start the process
* or it was killed because of the timeout. * or it was killed because of the timeout.
*/ */
@ -75,9 +75,9 @@ public:
void setTimeOut(int timeout) { m_timeoutValue = timeout; } void setTimeOut(int timeout) { m_timeoutValue = timeout; }
private slots: private slots:
void slotReceivedStdOut(KProcess *proc, char *buffer, int buflen); void slotReceivedStdOut(TDEProcess *proc, char *buffer, int buflen);
void slotReceivedStdErr(KProcess *proc, char *buffer, int buflen); void slotReceivedStdErr(TDEProcess *proc, char *buffer, int buflen);
void slotProcessExited(KProcess *proc); void slotProcessExited(TDEProcess *proc);
void slotTimeOut(); void slotTimeOut();
private: private:

@ -32,21 +32,21 @@ ExecCommand::ExecCommand( const TQString& executable, const TQStringList& args,
{ {
progressDlg = 0; progressDlg = 0;
proc = new KProcess(); proc = new TDEProcess();
proc->setWorkingDirectory( workingDir ); proc->setWorkingDirectory( workingDir );
for ( TQStringList::ConstIterator it = env.begin(); it != env.end(); ++it ) for ( TQStringList::ConstIterator it = env.begin(); it != env.end(); ++it )
proc->setEnvironment( (*it).section( '=', 0, 0 ), (*it).section( '=', 1, 1 ) ); proc->setEnvironment( (*it).section( '=', 0, 0 ), (*it).section( '=', 1, 1 ) );
*proc << executable; *proc << executable;
*proc << args; *proc << args;
connect( proc, TQT_SIGNAL(processExited(KProcess*)), connect( proc, TQT_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(processExited()) ); this, TQT_SLOT(processExited()) );
connect( proc, TQT_SIGNAL(receivedStdout(KProcess*,char*,int)), connect( proc, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)),
this, TQT_SLOT(receivedStdout(KProcess*,char*,int)) ); this, TQT_SLOT(receivedStdout(TDEProcess*,char*,int)) );
connect( proc, TQT_SIGNAL(receivedStderr(KProcess*,char*,int)), connect( proc, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
this, TQT_SLOT(receivedStderr(KProcess*,char*,int)) ); this, TQT_SLOT(receivedStderr(TDEProcess*,char*,int)) );
bool ok = proc->start( KProcess::NotifyOnExit, KProcess::AllOutput ); bool ok = proc->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput );
if ( !ok ) { if ( !ok ) {
KMessageBox::error( 0, i18n("Could not invoke \"%1\". Please make sure it is installed correctly").arg( executable ), KMessageBox::error( 0, i18n("Could not invoke \"%1\". Please make sure it is installed correctly").arg( executable ),
@ -63,12 +63,12 @@ ExecCommand::ExecCommand( const TQString& executable, const TQStringList& args,
} }
} }
void ExecCommand::receivedStdout (KProcess*, char *buffer, int buflen) void ExecCommand::receivedStdout (TDEProcess*, char *buffer, int buflen)
{ {
out += TQString::fromUtf8( buffer, buflen ); out += TQString::fromUtf8( buffer, buflen );
} }
void ExecCommand::receivedStderr (KProcess*, char *buffer, int buflen) void ExecCommand::receivedStderr (TDEProcess*, char *buffer, int buflen)
{ {
err += TQString::fromUtf8( buffer, buflen ); err += TQString::fromUtf8( buffer, buflen );
} }

@ -23,7 +23,7 @@
#include <tqobject.h> #include <tqobject.h>
#include <tqstringlist.h> #include <tqstringlist.h>
class KProcess; class TDEProcess;
class KProgressDialog; class KProgressDialog;
/** /**
@ -56,13 +56,13 @@ signals:
void finished( const TQString& output, const TQString& errorOutput ); void finished( const TQString& output, const TQString& errorOutput );
private slots: private slots:
void receivedStdout (KProcess *, char *buffer, int buflen); void receivedStdout (TDEProcess *, char *buffer, int buflen);
void receivedStderr (KProcess *, char *buffer, int buflen); void receivedStderr (TDEProcess *, char *buffer, int buflen);
void processExited(); void processExited();
void cancelClicked(); void cancelClicked();
private: private:
KProcess* proc; TDEProcess* proc;
KProgressDialog* progressDlg; KProgressDialog* progressDlg;
TQString out; TQString out;
TQString err; TQString err;

@ -44,7 +44,7 @@ void KDevShellWidget::activate( )
m_konsolePart = (KParts::ReadOnlyPart *) factory->create( TQT_TQOBJECT(this), "libkonsolepart", "KParts::ReadOnlyPart" ); m_konsolePart = (KParts::ReadOnlyPart *) factory->create( TQT_TQOBJECT(this), "libkonsolepart", "KParts::ReadOnlyPart" );
if ( !m_konsolePart ) return; if ( !m_konsolePart ) return;
connect( m_konsolePart, TQT_SIGNAL( processExited(KProcess *) ), this, TQT_SLOT( processExited(KProcess *) ) ); connect( m_konsolePart, TQT_SIGNAL( processExited(TDEProcess *) ), this, TQT_SLOT( processExited(TDEProcess *) ) );
connect( m_konsolePart, TQT_SIGNAL( receivedData( const TQString& ) ), this, TQT_SIGNAL( receivedData( const TQString& ) ) ); connect( m_konsolePart, TQT_SIGNAL( receivedData( const TQString& ) ), this, TQT_SIGNAL( receivedData( const TQString& ) ) );
connect( m_konsolePart, TQT_SIGNAL(destroyed()), this, TQT_SLOT(partDestroyed()) ); connect( m_konsolePart, TQT_SIGNAL(destroyed()), this, TQT_SLOT(partDestroyed()) );
@ -75,7 +75,7 @@ void KDevShellWidget::partDestroyed( )
} }
} }
void KDevShellWidget::processExited( KProcess * proc ) void KDevShellWidget::processExited( TDEProcess * proc )
{ {
m_isRunning = false; m_isRunning = false;

@ -17,7 +17,7 @@
#include <tqvbox.h> #include <tqvbox.h>
#include <tqguardedptr.h> #include <tqguardedptr.h>
class KProcess; class TDEProcess;
namespace KParts namespace KParts
{ {
class ReadOnlyPart; class ReadOnlyPart;
@ -85,7 +85,7 @@ signals:
private slots: private slots:
void partDestroyed(); void partDestroyed();
void processExited( KProcess * ); void processExited( TDEProcess * );
void setAutoReactivateOnCloseDelayed( ); void setAutoReactivateOnCloseDelayed( );
private: private:

@ -135,12 +135,12 @@ TQPtrList< KAction > KScriptActionManager::scripts( TQObject * interface , const
TQPtrList<KAction> actions; TQPtrList<KAction> actions;
TQStringList scripts; TQStringList scripts;
scripts += KGlobal::dirs()->findAllResources("data", scripts += TDEGlobal::dirs()->findAllResources("data",
TQString(kapp->name())+"/scripts/*.desktop", false, true ); TQString(kapp->name())+"/scripts/*.desktop", false, true );
for( TQStringList::ConstIterator it = dirs.begin(); it != dirs.end(); ++it) for( TQStringList::ConstIterator it = dirs.begin(); it != dirs.end(); ++it)
{ {
scripts += KGlobal::dirs()->findAllResources("data", scripts += TDEGlobal::dirs()->findAllResources("data",
(*it)+"/*.desktop", false, true ); (*it)+"/*.desktop", false, true );
} }

@ -23,7 +23,7 @@ TQString Settings::terminalEmulatorName( KConfig & config )
if ( useKDESetting ) if ( useKDESetting )
{ {
KConfigGroup confGroup( KGlobal::config(), TQString::fromLatin1("General") ); KConfigGroup confGroup( TDEGlobal::config(), TQString::fromLatin1("General") );
terminal = confGroup.readEntry("TerminalApplication", TQString::fromLatin1("konsole")); terminal = confGroup.readEntry("TerminalApplication", TQString::fromLatin1("konsole"));
} }
else else

@ -31,7 +31,7 @@ KComboView::KComboView( bool rw, int defaultWidth, TQWidget* parent, const char*
if (rw) if (rw)
{ {
KLineEdit *ed = new KLineEdit(this, "combo edit"); KLineEdit *ed = new KLineEdit(this, "combo edit");
ed->setCompletionMode(KGlobalSettings::CompletionPopup); ed->setCompletionMode(TDEGlobalSettings::CompletionPopup);
ed->setCompletionObject(m_comp); ed->setCompletionObject(m_comp);
ed->completionBox()->setHScrollBarMode(TQListBox::Auto); ed->completionBox()->setHScrollBarMode(TQListBox::Auto);
setLineEdit(ed); setLineEdit(ed);

@ -78,7 +78,7 @@ KDevHTMLPart::KDevHTMLPart()
//END documentation history stuff //END documentation history stuff
//settings: //settings:
KConfig *appConfig = KGlobal::config(); KConfig *appConfig = TDEGlobal::config();
appConfig->setGroup("KHTMLPart"); appConfig->setGroup("KHTMLPart");
setStandardFont(appConfig->readEntry("StandardFont", setStandardFont(appConfig->readEntry("StandardFont",
settings()->stdFontName())); settings()->stdFontName()));

@ -30,7 +30,7 @@ KTabBar::KTabBar(TQWidget *parent, const char *name) : TQTabBar(parent,name)
{ {
m_pPopupMenu = new TQPopupMenu(this); m_pPopupMenu = new TQPopupMenu(this);
TQPixmap closePixmap = KGlobal::instance()->iconLoader()->loadIcon( "tab_remove", KIcon::Small, 0, KIcon::DefaultState, 0, true ); TQPixmap closePixmap = TDEGlobal::instance()->iconLoader()->loadIcon( "tab_remove", KIcon::Small, 0, KIcon::DefaultState, 0, true );
if (closePixmap.isNull()) if (closePixmap.isNull())
closePixmap = SmallIcon("fileclose"); closePixmap = SmallIcon("fileclose");

@ -28,7 +28,7 @@
KListViewAction::~KListViewAction() KListViewAction::~KListViewAction()
{ {
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
if (config && m_view->name()) if (config && m_view->name())
{ {
config->setGroup("KListViewAction"); config->setGroup("KListViewAction");
@ -76,7 +76,7 @@ void KListViewAction::setWhatsThis( const TQString & str )
void KListViewAction::loadComboWidth( ) void KListViewAction::loadComboWidth( )
{ {
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
if (config && m_view->name()) if (config && m_view->name())
{ {
config->setGroup("KListViewAction"); config->setGroup("KListViewAction");

@ -26,13 +26,13 @@ ProcessLineMaker::ProcessLineMaker()
{ {
} }
ProcessLineMaker::ProcessLineMaker( const KProcess* proc ) ProcessLineMaker::ProcessLineMaker( const TDEProcess* proc )
{ {
connect(proc, TQT_SIGNAL(receivedStdout(KProcess*,char*,int)), connect(proc, TQT_SIGNAL(receivedStdout(TDEProcess*,char*,int)),
this, TQT_SLOT(slotReceivedStdout(KProcess*,char*,int)) ); this, TQT_SLOT(slotReceivedStdout(TDEProcess*,char*,int)) );
connect(proc, TQT_SIGNAL(receivedStderr(KProcess*,char*,int)), connect(proc, TQT_SIGNAL(receivedStderr(TDEProcess*,char*,int)),
this, TQT_SLOT(slotReceivedStderr(KProcess*,char*,int)) ); this, TQT_SLOT(slotReceivedStderr(TDEProcess*,char*,int)) );
} }
void ProcessLineMaker::slotReceivedStdout( const char *buffer ) void ProcessLineMaker::slotReceivedStdout( const char *buffer )
@ -50,7 +50,7 @@ void ProcessLineMaker::slotReceivedStdout( const char *buffer )
} }
} }
void ProcessLineMaker::slotReceivedStdout( KProcess*, char *buffer, int ) void ProcessLineMaker::slotReceivedStdout( TDEProcess*, char *buffer, int )
{ {
slotReceivedStdout(buffer); // It is zero-terminated slotReceivedStdout(buffer); // It is zero-terminated
} }
@ -71,7 +71,7 @@ void ProcessLineMaker::slotReceivedStderr( const char *buffer )
} }
} }
void ProcessLineMaker::slotReceivedStderr( KProcess*, char *buffer, int ) void ProcessLineMaker::slotReceivedStderr( TDEProcess*, char *buffer, int )
{ {
slotReceivedStderr(buffer); // It is zero-terminated slotReceivedStderr(buffer); // It is zero-terminated
} }

@ -27,10 +27,10 @@
Utility objects for process output views. Utility objects for process output views.
*/ */
class KProcess; class TDEProcess;
/** /**
Convenience class to catch output of KProcess. Convenience class to catch output of TDEProcess.
*/ */
class ProcessLineMaker : public TQObject class ProcessLineMaker : public TQObject
{ {
@ -39,7 +39,7 @@ Q_OBJECT
public: public:
ProcessLineMaker(); ProcessLineMaker();
ProcessLineMaker( const KProcess* ); ProcessLineMaker( const TDEProcess* );
void clearBuffers(); void clearBuffers();
void flush(); void flush();
@ -49,8 +49,8 @@ public slots:
void slotReceivedStderr(const char*); void slotReceivedStderr(const char*);
protected slots: protected slots:
void slotReceivedStdout(KProcess *, char *buffer, int buflen); void slotReceivedStdout(TDEProcess *, char *buffer, int buflen);
void slotReceivedStderr(KProcess *, char *buffer, int buflen); void slotReceivedStderr(TDEProcess *, char *buffer, int buflen);
signals: signals:
void receivedStdoutLine( const TQCString& line ); void receivedStdoutLine( const TQCString& line );

@ -112,7 +112,7 @@ ProcessWidget::ProcessWidget(TQWidget *parent, const char *name)
// the background ourselves (see ProcessListBoxItem::paint). // the background ourselves (see ProcessListBoxItem::paint).
childproc = new KProcess(); childproc = new TDEProcess();
childproc->setUseShell(true); childproc->setUseShell(true);
procLineMaker = new ProcessLineMaker( childproc ); procLineMaker = new ProcessLineMaker( childproc );
@ -126,8 +126,8 @@ ProcessWidget::ProcessWidget(TQWidget *parent, const char *name)
connect( procLineMaker, TQT_SIGNAL(receivedPartialStderrLine(const TQCString&)), connect( procLineMaker, TQT_SIGNAL(receivedPartialStderrLine(const TQCString&)),
this, TQT_SLOT(addPartialStderrLine(const TQCString&) )); this, TQT_SLOT(addPartialStderrLine(const TQCString&) ));
connect(childproc, TQT_SIGNAL(processExited(KProcess*)), connect(childproc, TQT_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(slotProcessExited(KProcess*) )) ; this, TQT_SLOT(slotProcessExited(TDEProcess*) )) ;
} }
@ -151,7 +151,7 @@ void ProcessWidget::startJob(const TQString &dir, const TQString &command)
} }
*childproc << command; *childproc << command;
childproc->start(KProcess::OwnGroup, KProcess::AllOutput); childproc->start(TDEProcess::OwnGroup, TDEProcess::AllOutput);
} }
@ -169,7 +169,7 @@ bool ProcessWidget::isRunning()
} }
void ProcessWidget::slotProcessExited(KProcess *) void ProcessWidget::slotProcessExited(TDEProcess *)
{ {
procLineMaker->flush(); procLineMaker->flush();
if( !stdoutbuf.isEmpty() ) if( !stdoutbuf.isEmpty() )

@ -105,7 +105,7 @@ protected:
virtual void childFinished(bool normal, int status); virtual void childFinished(bool normal, int status);
signals: signals:
void processExited(KProcess *); void processExited(TDEProcess *);
void rowSelected(int row); void rowSelected(int row);
protected: protected:
@ -113,10 +113,10 @@ protected:
void maybeScrollToBottom(); void maybeScrollToBottom();
protected slots: protected slots:
void slotProcessExited(KProcess*); void slotProcessExited(TDEProcess*);
private: private:
KProcess *childproc; TDEProcess *childproc;
ProcessLineMaker* procLineMaker; ProcessLineMaker* procLineMaker;
TQCString stderrbuf; TQCString stderrbuf;
TQCString stdoutbuf; TQCString stdoutbuf;

@ -136,7 +136,7 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, TQWidget *parent, const ch
ApplicationInfo *info = new ApplicationInfo; ApplicationInfo *info = new ApplicationInfo;
info->propValues = new PropertyLib::PropertyList(); info->propValues = new PropertyLib::PropertyList();
info->templateFile = KGlobal::dirs()->findResource("apptemplates", *it); info->templateFile = TDEGlobal::dirs()->findResource("apptemplates", *it);
info->templateName = (*it); info->templateName = (*it);
KConfig templateConfig(info->templateFile); KConfig templateConfig(info->templateFile);
@ -706,13 +706,13 @@ void AppWizardDialog::accept()
if (!m_pCurrentAppInfo->finishCmd.isEmpty()) if (!m_pCurrentAppInfo->finishCmd.isEmpty())
{ {
BlockingKProcess proc; BlockingTDEProcess proc;
proc.setWorkingDirectory( m_pCurrentAppInfo->finishCmdDir ); proc.setWorkingDirectory( m_pCurrentAppInfo->finishCmdDir );
proc.setUseShell( true ); proc.setUseShell( true );
proc << "cd" << m_pCurrentAppInfo->finishCmdDir << "&&"; proc << "cd" << m_pCurrentAppInfo->finishCmdDir << "&&";
proc << m_pCurrentAppInfo->finishCmd; proc << m_pCurrentAppInfo->finishCmd;
kdDebug(9010) << "Executing:" << proc.args() << endl; kdDebug(9010) << "Executing:" << proc.args() << endl;
proc.start( KProcess::NotifyOnExit ); proc.start( TDEProcess::NotifyOnExit );
if( !proc.isRunning() && !proc.normalExit() ) if( !proc.isRunning() && !proc.normalExit() )
{ {
kdDebug(9010) << "Couldn't execute: " << proc.args() << endl; kdDebug(9010) << "Couldn't execute: " << proc.args() << endl;
@ -889,7 +889,7 @@ void AppWizardDialog::templatesTreeViewClicked(TQListViewItem *item)
TQMultiLineEdit *edit = new TQMultiLineEdit(this); TQMultiLineEdit *edit = new TQMultiLineEdit(this);
edit->setWordWrap(TQTextEdit::NoWrap); edit->setWordWrap(TQTextEdit::NoWrap);
edit->setFont(KGlobalSettings::fixedFont()); edit->setFont(TDEGlobalSettings::fixedFont());
if (it == l.end()) if (it == l.end())
m_lastPage = edit; m_lastPage = edit;
fileTemplate.edit = edit; fileTemplate.edit = edit;
@ -1281,7 +1281,7 @@ TQDict<KDevLicense> AppWizardDialog::licenses()
void AppWizardDialog::loadLicenses() void AppWizardDialog::loadLicenses()
{ {
// kdDebug(9010) << "======================== Entering loadLicenses" << endl; // kdDebug(9010) << "======================== Entering loadLicenses" << endl;
KStandardDirs* dirs = KGlobal::dirs(); KStandardDirs* dirs = TDEGlobal::dirs();
dirs->addResourceType( "licenses", KStandardDirs::kde_default( "data" ) + "tdevelop/licenses/" ); dirs->addResourceType( "licenses", KStandardDirs::kde_default( "data" ) + "tdevelop/licenses/" );
TQStringList licNames = dirs->findAllResources( "licenses", TQString(), false, true ); TQStringList licNames = dirs->findAllResources( "licenses", TQString(), false, true );

@ -67,7 +67,7 @@ ImportDialog::ImportDialog(AppWizardPart *part, TQWidget *parent, const char *na
TQStringList::ConstIterator it; TQStringList::ConstIterator it;
for (it = importNames.begin(); it != importNames.end(); ++it) { for (it = importNames.begin(); it != importNames.end(); ++it) {
KConfig config(KGlobal::dirs()->findResource("appimports", *it)); KConfig config(TDEGlobal::dirs()->findResource("appimports", *it));
config.setGroup("General"); config.setGroup("General");
TQString type = config.readEntry("Comment"); TQString type = config.readEntry("Comment");
project_combo->insertItem(type); project_combo->insertItem(type);

@ -223,7 +223,7 @@ void DigraphView::parseDotResults(const TQStringList &list)
void DigraphView::process( const TQString& file, const TQString& ext ) void DigraphView::process( const TQString& file, const TQString& ext )
{ {
TQString cmd = KGlobal::dirs()->findExe("dot"); TQString cmd = TDEGlobal::dirs()->findExe("dot");
if (cmd.isEmpty()) { if (cmd.isEmpty()) {
KMessageBox::sorry(0, i18n("You do not have 'dot' installed.\nIt can be downloaded from www.graphviz.org.")); KMessageBox::sorry(0, i18n("You do not have 'dot' installed.\nIt can be downloaded from www.graphviz.org."));
return; return;
@ -242,7 +242,7 @@ void DigraphView::process( const TQString& file, const TQString& ext )
is << "}" << endl; is << "}" << endl;
ifile.close(); ifile.close();
KProcess proc; TDEProcess proc;
if( !file.isEmpty() && !ext.isEmpty() ) if( !file.isEmpty() && !ext.isEmpty() )
{ {
proc << cmd << TQString("-T")+ext << ifile.name() << "-o" << file; proc << cmd << TQString("-T")+ext << ifile.name() << "-o" << file;
@ -251,7 +251,7 @@ void DigraphView::process( const TQString& file, const TQString& ext )
{ {
proc << cmd << "-Tplain" << ifile.name() << "-o" << ofile.name(); proc << cmd << "-Tplain" << ifile.name() << "-o" << ofile.name();
} }
proc.start(KProcess::Block); proc.start(TDEProcess::Block);
if( !file.isEmpty() && !ext.isEmpty() ) if( !file.isEmpty() && !ext.isEmpty() )
{ {
@ -276,7 +276,7 @@ void DigraphView::drawContents(TQPainter* p, int clipx, int clipy, int clipw, in
TQRect clipRect(clipx, clipy, clipw, cliph); TQRect clipRect(clipx, clipy, clipw, cliph);
p->eraseRect(clipRect); p->eraseRect(clipRect);
p->setFont(KGlobalSettings::generalFont()); p->setFont(TDEGlobalSettings::generalFont());
TQPtrListIterator<DigraphNode> it1(nodes); TQPtrListIterator<DigraphNode> it1(nodes);
for (; it1.current(); ++it1) { for (; it1.current(); ++it1) {
TQRect r((*it1)->x-(*it1)->w/2, (*it1)->y-(*it1)->h/2, (*it1)->w, (*it1)->h); TQRect r((*it1)->x-(*it1)->w/2, (*it1)->y-(*it1)->h/2, (*it1)->w, (*it1)->h);
@ -343,7 +343,7 @@ TQSize DigraphView::sizeHint() const
if (width == -1) if (width == -1)
return TQSize(100, 100); // arbitrary return TQSize(100, 100); // arbitrary
TQSize dsize = KGlobalSettings::desktopGeometry(viewport()).size(); TQSize dsize = TDEGlobalSettings::desktopGeometry(viewport()).size();
kdDebug(9003) << "sizehint for inheritance diagram" << dsize << " " << width << " " << height << endl; kdDebug(9003) << "sizehint for inheritance diagram" << dsize << " " << width << " " << height << endl;
return TQSize(width, height).boundedTo(TQSize(dsize.width()*2/3, dsize.height()*2/3)); return TQSize(width, height).boundedTo(TQSize(dsize.width()*2/3, dsize.height()*2/3));
} }

@ -135,13 +135,13 @@ bool CTags2Part::createTagsFile()
bool CTags2Part::createTagsFile(const TQString& tagFile, const TQString& dir) bool CTags2Part::createTagsFile(const TQString& tagFile, const TQString& dir)
{ {
/* /*
KProcess proc; TDEProcess proc;
proc.setWorkingDirectory( project()->projectDirectory() ); proc.setWorkingDirectory( project()->projectDirectory() );
proc << "ctags"; proc << "ctags";
proc << "-R" << "--c++-types=+px" << "--excmd=pattern" << "--exclude=Makefile"; proc << "-R" << "--c++-types=+px" << "--excmd=pattern" << "--exclude=Makefile";
bool success = proc.start(KProcess::Block); bool success = proc.start(TDEProcess::Block);
return success; return success;
*/ */

@ -149,22 +149,22 @@ void DiffPart::localDiff()
resultBuffer = resultErr = TQString(); resultBuffer = resultErr = TQString();
delete proc; delete proc;
proc = new KProcess(); proc = new TDEProcess();
*proc << "diff"; *proc << "diff";
*proc << "-u" << popupFile.path() << "-"; *proc << "-u" << popupFile.path() << "-";
proc->setWorkingDirectory( popupFile.directory() ); proc->setWorkingDirectory( popupFile.directory() );
connect( proc, TQT_SIGNAL(processExited( KProcess* )), connect( proc, TQT_SIGNAL(processExited( TDEProcess* )),
this, TQT_SLOT(processExited( KProcess* )) ); this, TQT_SLOT(processExited( TDEProcess* )) );
connect( proc, TQT_SIGNAL(receivedStdout( KProcess*, char*, int )), connect( proc, TQT_SIGNAL(receivedStdout( TDEProcess*, char*, int )),
this, TQT_SLOT(receivedStdout( KProcess*, char*, int )) ); this, TQT_SLOT(receivedStdout( TDEProcess*, char*, int )) );
connect( proc, TQT_SIGNAL(receivedStderr( KProcess*, char*, int )), connect( proc, TQT_SIGNAL(receivedStderr( TDEProcess*, char*, int )),
this, TQT_SLOT(receivedStderr( KProcess*, char*, int )) ); this, TQT_SLOT(receivedStderr( TDEProcess*, char*, int )) );
connect( proc, TQT_SIGNAL(wroteStdin( KProcess* )), connect( proc, TQT_SIGNAL(wroteStdin( TDEProcess* )),
this, TQT_SLOT(wroteStdin( KProcess* )) ); this, TQT_SLOT(wroteStdin( TDEProcess* )) );
if ( !proc->start( KProcess::NotifyOnExit, KProcess::All ) ) { if ( !proc->start( TDEProcess::NotifyOnExit, TDEProcess::All ) ) {
KMessageBox::error( 0, i18n( "Could not invoke the \"diff\" command." ) ); KMessageBox::error( 0, i18n( "Could not invoke the \"diff\" command." ) );
delete proc; delete proc;
proc = 0; proc = 0;
@ -173,7 +173,7 @@ void DiffPart::localDiff()
proc->writeStdin( buffer.data(), buffer.length() ); proc->writeStdin( buffer.data(), buffer.length() );
} }
void DiffPart::processExited( KProcess* p ) void DiffPart::processExited( TDEProcess* p )
{ {
// diff has exit status 0 and 1 for success // diff has exit status 0 and 1 for success
if ( p->normalExit() && ( p->exitStatus() == 0 || p->exitStatus() == 1 ) ) { if ( p->normalExit() && ( p->exitStatus() == 0 || p->exitStatus() == 1 ) ) {
@ -189,18 +189,18 @@ void DiffPart::processExited( KProcess* p )
proc = 0; proc = 0;
} }
void DiffPart::receivedStdout( KProcess* /* p */, char* buf, int buflen ) void DiffPart::receivedStdout( TDEProcess* /* p */, char* buf, int buflen )
{ {
resultBuffer += TQString::fromLocal8Bit( buf, buflen ); resultBuffer += TQString::fromLocal8Bit( buf, buflen );
} }
void DiffPart::receivedStderr( KProcess* /* p */, char* buf, int buflen ) void DiffPart::receivedStderr( TDEProcess* /* p */, char* buf, int buflen )
{ {
kdDebug(9033) << "received Stderr: " << TQString(TQString::fromLocal8Bit( buf, buflen )).ascii() << endl; kdDebug(9033) << "received Stderr: " << TQString(TQString::fromLocal8Bit( buf, buflen )).ascii() << endl;
resultErr += TQString::fromLocal8Bit( buf, buflen ); resultErr += TQString::fromLocal8Bit( buf, buflen );
} }
void DiffPart::wroteStdin( KProcess* p ) void DiffPart::wroteStdin( TDEProcess* p )
{ {
buffer = 0L; buffer = 0L;
p->closeStdin(); p->closeStdin();

@ -20,7 +20,7 @@
class TQPopupMenu; class TQPopupMenu;
class Context; class Context;
class KProcess; class TDEProcess;
class DiffWidget; class DiffWidget;
class TQCString; class TQCString;
@ -43,15 +43,15 @@ public slots:
private slots: private slots:
void contextMenu( TQPopupMenu* popup, const Context* context ); void contextMenu( TQPopupMenu* popup, const Context* context );
void localDiff(); void localDiff();
void processExited( KProcess* p ); void processExited( TDEProcess* p );
void receivedStdout( KProcess* p, char* buf, int buflen ); void receivedStdout( TDEProcess* p, char* buf, int buflen );
void receivedStderr( KProcess* p, char* buf, int buflen ); void receivedStderr( TDEProcess* p, char* buf, int buflen );
void wroteStdin( KProcess* p ); void wroteStdin( TDEProcess* p );
private: private:
TQGuardedPtr<DiffWidget> diffWidget; TQGuardedPtr<DiffWidget> diffWidget;
KURL popupFile; KURL popupFile;
KProcess* proc; TDEProcess* proc;
TQCString buffer; TQCString buffer;
TQString resultBuffer; TQString resultBuffer;
TQString resultErr; TQString resultErr;

@ -35,7 +35,7 @@
class KDevProject; class KDevProject;
class DistpartPart; class DistpartPart;
class TQUrlOperator; class TQUrlOperator;
class KProcess; class TDEProcess;
class TQTabWidget; class TQTabWidget;
class SpecSupport; class SpecSupport;

@ -80,11 +80,11 @@ void SpecSupport::slotbuildAllPushButtonPressed() {
} }
else else
if (KDevMakeFrontend *makeFrontend = m_part->extension<KDevMakeFrontend>("TDevelop/MakeFrontend")) if (KDevMakeFrontend *makeFrontend = m_part->extension<KDevMakeFrontend>("TDevelop/MakeFrontend"))
makeFrontend->queueCommand(dir,"cd " + KProcess::quote(dir) + makeFrontend->queueCommand(dir,"cd " + TDEProcess::quote(dir) +
" && cp " + KProcess::quote(getAppSource()) + " " + KProcess::quote(*(map.find("_sourcedir")))); " && cp " + TDEProcess::quote(getAppSource()) + " " + TDEProcess::quote(*(map.find("_sourcedir"))));
} }
if (KDevMakeFrontend *makeFrontend = m_part->extension<KDevMakeFrontend>("TDevelop/MakeFrontend")) if (KDevMakeFrontend *makeFrontend = m_part->extension<KDevMakeFrontend>("TDevelop/MakeFrontend"))
makeFrontend->queueCommand(dir,"cd " + KProcess::quote((((it = map.find("_specdir")) != map.end()) ? (*it) : dir)) + makeFrontend->queueCommand(dir,"cd " + TDEProcess::quote((((it = map.find("_specdir")) != map.end()) ? (*it) : dir)) +
" && rpmbuild -ba " + m_part->project()->projectName() + ".spec"); " && rpmbuild -ba " + m_part->project()->projectName() + ".spec");
} }
@ -179,11 +179,11 @@ void SpecSupport::slotsrcPackagePushButtonPressed() {
} }
else else
if (KDevMakeFrontend *makeFrontend = m_part->extension<KDevMakeFrontend>("TDevelop/MakeFrontend")) if (KDevMakeFrontend *makeFrontend = m_part->extension<KDevMakeFrontend>("TDevelop/MakeFrontend"))
makeFrontend->queueCommand(dir,"cd " + KProcess::quote(dir) + makeFrontend->queueCommand(dir,"cd " + TDEProcess::quote(dir) +
" && cp " + KProcess::quote(getAppSource()) + " " + KProcess::quote(*(map.find("_sourcedir")))); " && cp " + TDEProcess::quote(getAppSource()) + " " + TDEProcess::quote(*(map.find("_sourcedir"))));
} }
if (KDevMakeFrontend *makeFrontend = m_part->extension<KDevMakeFrontend>("TDevelop/MakeFrontend")) if (KDevMakeFrontend *makeFrontend = m_part->extension<KDevMakeFrontend>("TDevelop/MakeFrontend"))
makeFrontend->queueCommand(dir,"cd " + KProcess::quote((((it = map.find("_specdir")) != map.end()) ? (*it) : dir)) + makeFrontend->queueCommand(dir,"cd " + TDEProcess::quote((((it = map.find("_specdir")) != map.end()) ? (*it) : dir)) +
" && rpmbuild -bs " + m_part->project()->projectName() + ".spec"); " && rpmbuild -bs " + m_part->project()->projectName() + ".spec");
} }

@ -105,7 +105,7 @@ DocGlobalConfigWidget::DocGlobalConfigWidget(DocumentationPart *part,
//font sizes and zoom levels //font sizes and zoom levels
KHTMLPart htmlpart; KHTMLPart htmlpart;
KConfig *appConfig = KGlobal::config(); KConfig *appConfig = TDEGlobal::config();
appConfig->setGroup("KHTMLPart"); appConfig->setGroup("KHTMLPart");
standardFont_combo->setCurrentText(appConfig->readEntry("StandardFont", standardFont_combo->setCurrentText(appConfig->readEntry("StandardFont",
htmlpart.settings()->stdFontName())); htmlpart.settings()->stdFontName()));
@ -214,7 +214,7 @@ void DocGlobalConfigWidget::accept()
m_part->setAssistantUsed(useAssistant_box->isChecked()); m_part->setAssistantUsed(useAssistant_box->isChecked());
//font sizes and zoom levels //font sizes and zoom levels
KConfig *appConfig = KGlobal::config(); KConfig *appConfig = TDEGlobal::config();
appConfig->setGroup("KHTMLPart"); appConfig->setGroup("KHTMLPart");
appConfig->writeEntry("StandardFont", standardFont_combo->currentText()); appConfig->writeEntry("StandardFont", standardFont_combo->currentText());
appConfig->writeEntry("FixedFont", fixedFont_combo->currentText()); appConfig->writeEntry("FixedFont", fixedFont_combo->currentText());
@ -241,7 +241,7 @@ void DocGlobalConfigWidget::updateConfigForHTMLParts()
KHTMLPart *htmlPart = dynamic_cast<KHTMLPart*>(m_part->partController()->partForURL(*it)); KHTMLPart *htmlPart = dynamic_cast<KHTMLPart*>(m_part->partController()->partForURL(*it));
if (htmlPart) if (htmlPart)
{ {
KConfig *appConfig = KGlobal::config(); KConfig *appConfig = TDEGlobal::config();
appConfig->setGroup("KHTMLPart"); appConfig->setGroup("KHTMLPart");
htmlPart->setStandardFont(appConfig->readEntry("StandardFont")); htmlPart->setStandardFont(appConfig->readEntry("StandardFont"));
htmlPart->setFixedFont(appConfig->readEntry("FixedFont")); htmlPart->setFixedFont(appConfig->readEntry("FixedFont"));

@ -739,7 +739,7 @@ void DocumentationPart::loadSettings()
config->setGroup("Documentation"); config->setGroup("Documentation");
m_assistantUsed = config->readBoolEntry("UseAssistant", false); m_assistantUsed = config->readBoolEntry("UseAssistant", false);
if (TQString(KGlobal::instance()->aboutData()->appName()) == "kdevassistant") if (TQString(TDEGlobal::instance()->aboutData()->appName()) == "kdevassistant")
{ {
int page = config->readNumEntry("LastPage", 0); int page = config->readNumEntry("LastPage", 0);
switch (page) switch (page)

@ -48,18 +48,18 @@ FindDocumentation::FindDocumentation(DocumentationWidget* parent, const char* na
{ {
TQWidget* tmp = TQT_TQWIDGET(TQApplication::desktop()); TQWidget* tmp = TQT_TQWIDGET(TQApplication::desktop());
setGeometry(tmp->width()/2 - width()/2, tmp->height()/2 - height()/2, width(), height()); setGeometry(tmp->width()/2 - width()/2, tmp->height()/2 - height()/2, width(), height());
proc_man = new KProcess( TQT_TQOBJECT(this) ); proc_man = new TDEProcess( TQT_TQOBJECT(this) );
proc_info = new KProcess( TQT_TQOBJECT(this) ); proc_info = new TDEProcess( TQT_TQOBJECT(this) );
connect( proc_man, TQT_SIGNAL(processExited( KProcess* )), connect( proc_man, TQT_SIGNAL(processExited( TDEProcess* )),
this, TQT_SLOT(procManExited( KProcess* )) ); this, TQT_SLOT(procManExited( TDEProcess* )) );
connect( proc_man, TQT_SIGNAL(receivedStdout( KProcess*, char*, int)), connect( proc_man, TQT_SIGNAL(receivedStdout( TDEProcess*, char*, int)),
this, TQT_SLOT(procManReadStdout( KProcess*, char*, int)) ); this, TQT_SLOT(procManReadStdout( TDEProcess*, char*, int)) );
connect( proc_info, TQT_SIGNAL(processExited( KProcess* )), connect( proc_info, TQT_SIGNAL(processExited( TDEProcess* )),
this, TQT_SLOT(procInfoExited( KProcess* )) ); this, TQT_SLOT(procInfoExited( TDEProcess* )) );
connect( proc_info, TQT_SIGNAL(receivedStdout( KProcess*, char*, int)), connect( proc_info, TQT_SIGNAL(receivedStdout( TDEProcess*, char*, int)),
this, TQT_SLOT(procInfoReadStdout( KProcess*, char*, int)) ); this, TQT_SLOT(procInfoReadStdout( TDEProcess*, char*, int)) );
result_list->header()->hide(); result_list->header()->hide();
result_list->setSorting(-1); result_list->setSorting(-1);
@ -102,7 +102,7 @@ void FindDocumentation::clickOnItem( TQListViewItem * item )
m_widget->part()->partController()->showDocument(doc_item->url()); m_widget->part()->partController()->showDocument(doc_item->url());
} }
void FindDocumentation::procInfoExited( KProcess* ) void FindDocumentation::procInfoExited( TDEProcess* )
{ {
if (proc_info->normalExit() && proc_info->exitStatus() == 0) if (proc_info->normalExit() && proc_info->exitStatus() == 0)
{ {
@ -125,7 +125,7 @@ void FindDocumentation::procInfoExited( KProcess* )
} }
} }
void FindDocumentation::procManExited( KProcess* ) void FindDocumentation::procManExited( TDEProcess* )
{ {
if (proc_man->normalExit() && proc_man->exitStatus() == 0) if (proc_man->normalExit() && proc_man->exitStatus() == 0)
{ {
@ -145,12 +145,12 @@ void FindDocumentation::procManExited( KProcess* )
} }
} }
void FindDocumentation::procInfoReadStdout( KProcess*, char* buf, int len) void FindDocumentation::procInfoReadStdout( TDEProcess*, char* buf, int len)
{ {
proc_info_out += TQString::fromLatin1( buf, len ); proc_info_out += TQString::fromLatin1( buf, len );
} }
void FindDocumentation::procManReadStdout( KProcess*, char* buf, int len) void FindDocumentation::procManReadStdout( TDEProcess*, char* buf, int len)
{ {
proc_man_out += TQString::fromLatin1( buf, len ); proc_man_out += TQString::fromLatin1( buf, len );
} }
@ -167,7 +167,7 @@ void FindDocumentation::searchInInfo()
*proc_info << "-w"; *proc_info << "-w";
*proc_info << search_term->text(); *proc_info << search_term->text();
if ( !proc_info->start( KProcess::NotifyOnExit, KProcess::Stdout ) ) if ( !proc_info->start( TDEProcess::NotifyOnExit, TDEProcess::Stdout ) )
{ {
// error handling // error handling
} }
@ -185,7 +185,7 @@ void FindDocumentation::searchInMan()
*proc_man << "-w"; *proc_man << "-w";
*proc_man << search_term->text(); *proc_man << search_term->text();
if ( !proc_man->start( KProcess::NotifyOnExit, KProcess::Stdout ) ) if ( !proc_man->start( TDEProcess::NotifyOnExit, TDEProcess::Stdout ) )
{ {
// error handling // error handling
} }

@ -28,7 +28,7 @@
class DocumentationWidget; class DocumentationWidget;
class KListViewItem; class KListViewItem;
class FindDocumentationOptions; class FindDocumentationOptions;
class KProcess; class TDEProcess;
class FindDocumentation : public FindDocumentationBase class FindDocumentation : public FindDocumentationBase
{ {
@ -43,10 +43,10 @@ public slots:
/*$PUBLIC_SLOTS$*/ /*$PUBLIC_SLOTS$*/
virtual void buttonPressedOnItem( int button, TQListViewItem * item, const TQPoint & pos, int c ); virtual void buttonPressedOnItem( int button, TQListViewItem * item, const TQPoint & pos, int c );
virtual void clickOnItem( TQListViewItem * item ); virtual void clickOnItem( TQListViewItem * item );
virtual void procInfoExited( KProcess* ); virtual void procInfoExited( TDEProcess* );
virtual void procManExited( KProcess* ); virtual void procManExited( TDEProcess* );
virtual void procManReadStdout( KProcess*, char*, int ); virtual void procManReadStdout( TDEProcess*, char*, int );
virtual void procInfoReadStdout( KProcess*, char*, int ); virtual void procInfoReadStdout( TDEProcess*, char*, int );
virtual void searchInInfo(); virtual void searchInInfo();
virtual void searchInMan(); virtual void searchInMan();
virtual void searchInGoogle(); virtual void searchInGoogle();
@ -64,8 +64,8 @@ protected slots:
/*$PROTECTED_SLOTS$*/ /*$PROTECTED_SLOTS$*/
private: private:
KProcess* proc_man; TDEProcess* proc_man;
KProcess* proc_info; TDEProcess* proc_info;
TQString proc_man_out; TQString proc_man_out;
TQString proc_info_out; TQString proc_info_out;
KListViewItem* man_item; KListViewItem* man_item;

@ -131,9 +131,9 @@ void SearchView::updateIndex()
void SearchView::runHtdig(const TQString &arg) void SearchView::runHtdig(const TQString &arg)
{ {
KProcess proc; TDEProcess proc;
proc << "tdevelop-htdig" << arg; proc << "tdevelop-htdig" << arg;
proc.start(KProcess::DontCare); proc.start(TDEProcess::DontCare);
} }
void tqt_enter_modal(TQWidget *widget); void tqt_enter_modal(TQWidget *widget);
@ -190,19 +190,19 @@ void SearchView::search()
kdDebug(9002) << "starting kprocess" << endl; kdDebug(9002) << "starting kprocess" << endl;
kdDebug(9002) << "htdig line:" << exe << " -c " << (indexdir + "/htdig.conf ") << query << endl; kdDebug(9002) << "htdig line:" << exe << " -c " << (indexdir + "/htdig.conf ") << query << endl;
KProcess *proc = new KProcess; TDEProcess *proc = new TDEProcess;
TQString picdir = kapp->dirs()->findResourceDir("data", "kdevdocumentation/pics/htdig.png"); TQString picdir = kapp->dirs()->findResourceDir("data", "kdevdocumentation/pics/htdig.png");
proc->setEnvironment("PICDIR", picdir); proc->setEnvironment("PICDIR", picdir);
*proc << exe << "-c" << (indexdir + "/htdig.conf") << query; *proc << exe << "-c" << (indexdir + "/htdig.conf") << query;
connect( proc, TQT_SIGNAL(receivedStdout(KProcess *,char*,int)), connect( proc, TQT_SIGNAL(receivedStdout(TDEProcess *,char*,int)),
this, TQT_SLOT(htsearchStdout(KProcess *,char*,int)) ); this, TQT_SLOT(htsearchStdout(TDEProcess *,char*,int)) );
connect( proc, TQT_SIGNAL(processExited(KProcess *)), connect( proc, TQT_SIGNAL(processExited(TDEProcess *)),
this, TQT_SLOT(htsearchExited(KProcess *)) ); this, TQT_SLOT(htsearchExited(TDEProcess *)) );
searchResult = ""; searchResult = "";
if (!proc->start(KProcess::NotifyOnExit, KProcess::Stdout)) if (!proc->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout))
{ {
KMessageBox::error(this, i18n("Cannot start the htsearch executable.")); KMessageBox::error(this, i18n("Cannot start the htsearch executable."));
kdDebug() << "process start failed" << endl; kdDebug() << "process start failed" << endl;
@ -247,12 +247,12 @@ void SearchView::search()
// m_part->partController()->showDocument(KURL("file://" + indexdir + "/results.html")); // m_part->partController()->showDocument(KURL("file://" + indexdir + "/results.html"));
} }
void SearchView::htsearchStdout(KProcess *, char *buffer, int len) void SearchView::htsearchStdout(TDEProcess *, char *buffer, int len)
{ {
searchResult += TQString::fromLocal8Bit(buffer, len); searchResult += TQString::fromLocal8Bit(buffer, len);
} }
void SearchView::htsearchExited(KProcess *) void SearchView::htsearchExited(TDEProcess *)
{ {
kapp->exit_loop(); kapp->exit_loop();
} }

@ -27,7 +27,7 @@ class KLineEdit;
class KComboBox; class KComboBox;
class KListView; class KListView;
class KPushButton; class KPushButton;
class KProcess; class TDEProcess;
class TQListViewItem; class TQListViewItem;
class SearchView: public TQWidget class SearchView: public TQWidget
@ -47,8 +47,8 @@ protected slots:
void updateConfig(); void updateConfig();
void updateIndex(); void updateIndex();
void htsearchStdout(KProcess *, char *buffer, int len); void htsearchStdout(TDEProcess *, char *buffer, int len);
void htsearchExited(KProcess *); void htsearchExited(TDEProcess *);
void executed(TQListViewItem *item); void executed(TQListViewItem *item);
void itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int c); void itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int c);

@ -210,7 +210,7 @@ void ProgressDialog::scanDirectories()
bool ProgressDialog::createConfig() bool ProgressDialog::createConfig()
{ {
// locate the common dir // locate the common dir
TQString language = KGlobal::locale()->language(); TQString language = TDEGlobal::locale()->language();
if (language == "C") if (language == "C")
language = "en"; language = "en";
@ -263,13 +263,13 @@ void ProgressDialog::startHtdigProcess(bool initial)
{ {
kdDebug(9002) << "htdig started" << endl; kdDebug(9002) << "htdig started" << endl;
delete proc; delete proc;
proc = new KProcess(); proc = new TDEProcess();
*proc << exe << "-c" << (indexdir + "/htdig.conf"); *proc << exe << "-c" << (indexdir + "/htdig.conf");
if (initial) { if (initial) {
*proc << "-i"; *proc << "-i";
} }
connect(proc, TQT_SIGNAL(processExited(KProcess *)), connect(proc, TQT_SIGNAL(processExited(TDEProcess *)),
this, TQT_SLOT(htdigExited(KProcess *))); this, TQT_SLOT(htdigExited(TDEProcess *)));
htdigRunning = true; htdigRunning = true;
@ -292,7 +292,7 @@ void ProgressDialog::startHtdigProcess(bool initial)
f.close(); f.close();
// execute htdig // execute htdig
proc->start(KProcess::NotifyOnExit, KProcess::Stdout); proc->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout);
} }
bool ProgressDialog::generateIndex() bool ProgressDialog::generateIndex()
@ -318,7 +318,7 @@ bool ProgressDialog::generateIndex()
return true; return true;
} }
void ProgressDialog::htdigStdout(KProcess *, char *buffer, int len) void ProgressDialog::htdigStdout(TDEProcess *, char *buffer, int len)
{ {
TQString line = TQString(buffer).left(len); TQString line = TQString(buffer).left(len);
@ -335,7 +335,7 @@ void ProgressDialog::htdigStdout(KProcess *, char *buffer, int len)
setFilesDigged(filesDigged); setFilesDigged(filesDigged);
} }
void ProgressDialog::htdigExited(KProcess *proc) void ProgressDialog::htdigExited(TDEProcess *proc)
{ {
kdDebug(9002) << "htdig terminated" << endl; kdDebug(9002) << "htdig terminated" << endl;
if (!proc->normalExit()) if (!proc->normalExit())
@ -382,20 +382,20 @@ void ProgressDialog::startHtmergeProcess()
{ {
kdDebug(9002) << "htmerge started" << endl; kdDebug(9002) << "htmerge started" << endl;
delete proc; delete proc;
proc = new KProcess(); proc = new TDEProcess();
*proc << exe << "-c" << (indexdir + "/htdig.conf"); *proc << exe << "-c" << (indexdir + "/htdig.conf");
kdDebug(9002) << "Running htmerge" << endl; kdDebug(9002) << "Running htmerge" << endl;
connect(proc, TQT_SIGNAL(processExited(KProcess *)), connect(proc, TQT_SIGNAL(processExited(TDEProcess *)),
this, TQT_SLOT(htmergeExited(KProcess *))); this, TQT_SLOT(htmergeExited(TDEProcess *)));
htmergeRunning = true; htmergeRunning = true;
proc->start(KProcess::NotifyOnExit, KProcess::Stdout); proc->start(TDEProcess::NotifyOnExit, TDEProcess::Stdout);
} }
void ProgressDialog::htmergeExited(KProcess *proc) void ProgressDialog::htmergeExited(TDEProcess *proc)
{ {
kdDebug(9002) << "htmerge terminated" << endl; kdDebug(9002) << "htmerge terminated" << endl;
htmergeRunning = false; htmergeRunning = false;
@ -458,7 +458,7 @@ int main(int argc, char *argv[])
TDEApplication app; TDEApplication app;
KGlobal::locale()->setMainCatalogue("tdevelop"); TDEGlobal::locale()->setMainCatalogue("tdevelop");
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -19,7 +19,7 @@
class TQTimer; class TQTimer;
class TQLabel; class TQLabel;
class KProcess; class TDEProcess;
class KProgress; class KProgress;
class ProgressDialog : public KDialogBase class ProgressDialog : public KDialogBase
@ -36,9 +36,9 @@ public:
bool generateIndex(); bool generateIndex();
private slots: private slots:
void htdigStdout(KProcess *proc, char *buffer, int buflen); void htdigStdout(TDEProcess *proc, char *buffer, int buflen);
void htdigExited(KProcess *proc); void htdigExited(TDEProcess *proc);
void htmergeExited(KProcess *proc); void htmergeExited(TDEProcess *proc);
void cancelClicked(); void cancelClicked();
void okClicked(); void okClicked();
void slotDelayedStart(); void slotDelayedStart();
@ -61,7 +61,7 @@ private:
TQString indexdir; TQString indexdir;
TQString exe; TQString exe;
TQStringList files; TQStringList files;
KProcess *proc; TDEProcess *proc;
volatile int filesToDig, filesDigged, filesScanned; volatile int filesToDig, filesDigged, filesScanned;
bool htdigRunning, htmergeRunning; bool htdigRunning, htmergeRunning;
}; };

@ -178,7 +178,7 @@ void FCConfigWidget::saveGlobalConfig()
saveConfiguration(globalDom, fileTypes, true); saveConfiguration(globalDom, fileTypes, true);
TQFile config( KGlobal::dirs()->saveLocation("data", "kdevfilecreate/", true) + "template-info.xml" ); TQFile config( TDEGlobal::dirs()->saveLocation("data", "kdevfilecreate/", true) + "template-info.xml" );
config.open(IO_WriteOnly | IO_Truncate); config.open(IO_WriteOnly | IO_Truncate);
TQTextStream stream(&config); TQTextStream stream(&config);
stream << "<?xml version = '1.0'?>"; stream << "<?xml version = '1.0'?>";
@ -291,7 +291,7 @@ void FCConfigWidget::saveConfiguration(TQDomDocument &dom, TQDomElement &element
{ {
TQString dest; TQString dest;
if (global) if (global)
dest = KGlobal::dirs()->saveLocation("data", "/kdevfilecreate/file-templates/", true); dest = TDEGlobal::dirs()->saveLocation("data", "/kdevfilecreate/file-templates/", true);
else else
dest = m_part->project()->projectDirectory() + "/templates/"; dest = m_part->project()->projectDirectory() + "/templates/";
if (it.current()->text(4) == "create") if (it.current()->text(4) == "create")
@ -318,7 +318,7 @@ void FCConfigWidget::saveConfiguration(TQDomDocument &dom, TQDomElement &element
{ {
TQString dest; TQString dest;
if (global) if (global)
dest = KGlobal::dirs()->saveLocation("data", "/kdevfilecreate/file-templates/", true); dest = TDEGlobal::dirs()->saveLocation("data", "/kdevfilecreate/file-templates/", true);
else else
dest = m_part->project()->projectDirectory() + "/templates/"; dest = m_part->project()->projectDirectory() + "/templates/";
if (lastChild->text(4) == "create") if (lastChild->text(4) == "create")
@ -683,7 +683,7 @@ void FCConfigWidget::edit_type_content_button_clicked( )
} }
else else
{ {
TQString dest = KGlobal::dirs()->saveLocation("data", "/kdevfilecreate/file-templates/", true); TQString dest = TDEGlobal::dirs()->saveLocation("data", "/kdevfilecreate/file-templates/", true);
TQString typePath = dest + type_name; TQString typePath = dest + type_name;
KURL content; KURL content;
content.setPath(typePath); content.setPath(typePath);

@ -82,7 +82,7 @@ namespace FileCreate {
setText(0, m_filetype->ext()!="" ? TQString("." + m_filetype->ext()) : TQString("") ); setText(0, m_filetype->ext()!="" ? TQString("." + m_filetype->ext()) : TQString("") );
setText(1, "<qt><b>"+m_filetype->name()+"</b>. " + m_filetype->descr() ); setText(1, "<qt><b>"+m_filetype->name()+"</b>. " + m_filetype->descr() );
KIconLoader * loader = KGlobal::iconLoader(); KIconLoader * loader = TDEGlobal::iconLoader();
TQPixmap iconPix = loader->loadIcon(m_filetype->icon(), KIcon::Desktop, TQPixmap iconPix = loader->loadIcon(m_filetype->icon(), KIcon::Desktop,
KIcon::SizeMedium, KIcon::SizeMedium,
KIcon::DefaultState, NULL, KIcon::DefaultState, NULL,

@ -120,7 +120,7 @@ void FileCreatePart::insertConfigWidget( const KDialogBase * dlg, TQWidget * pag
void FileCreatePart::slotAboutToShowNewPopupMenu() void FileCreatePart::slotAboutToShowNewPopupMenu()
{ {
KIconLoader * m_iconLoader = KGlobal::iconLoader(); KIconLoader * m_iconLoader = TDEGlobal::iconLoader();
m_newPopupMenu->clear(); m_newPopupMenu->clear();
delete m_subPopups; delete m_subPopups;
m_subPopups = NULL; m_subPopups = NULL;
@ -524,7 +524,7 @@ TQString FileCreatePart::findGlobalXMLFile() const
{ {
int version = 0; int version = 0;
TQString filename; TQString filename;
TQStringList filenames = KGlobal::instance()->dirs()->findAllResources("data", "kdevfilecreate/template-info.xml"); TQStringList filenames = TDEGlobal::instance()->dirs()->findAllResources("data", "kdevfilecreate/template-info.xml");
for( TQStringList::const_iterator it = filenames.begin(); it != filenames.end(); ++it ) for( TQStringList::const_iterator it = filenames.begin(); it != filenames.end(); ++it )
{ {
TQDomDocument globalDom; TQDomDocument globalDom;

@ -43,7 +43,7 @@ namespace FileCreate {
setFocusStyle(FollowStyle); setFocusStyle(FollowStyle);
setColumnStretchable(3, true); setColumnStretchable(3, true);
m_iconLoader = KGlobal::iconLoader(); m_iconLoader = TDEGlobal::iconLoader();
TQWhatsThis::add(this, i18n("Use this to create new files within your project.")); TQWhatsThis::add(this, i18n("Use this to create new files within your project."));

@ -81,13 +81,13 @@ void ShellFilterDialog::slotStartClicked()
delete m_proc; delete m_proc;
m_proc = new KShellProcess("/bin/sh"); m_proc = new KShellProcess("/bin/sh");
(*m_proc) << combo->currentText(); (*m_proc) << combo->currentText();
connect( m_proc, TQT_SIGNAL(receivedStdout(KProcess*, char *, int)), connect( m_proc, TQT_SIGNAL(receivedStdout(TDEProcess*, char *, int)),
this, TQT_SLOT(slotReceivedStdout(KProcess*, char *, int)) ); this, TQT_SLOT(slotReceivedStdout(TDEProcess*, char *, int)) );
connect( m_proc, TQT_SIGNAL(wroteStdin(KProcess*)), connect( m_proc, TQT_SIGNAL(wroteStdin(TDEProcess*)),
this, TQT_SLOT(slotWroteStdin(KProcess*)) ); this, TQT_SLOT(slotWroteStdin(TDEProcess*)) );
connect( m_proc, TQT_SIGNAL(processExited(KProcess*)), connect( m_proc, TQT_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(slotProcessExited(KProcess*)) ); this, TQT_SLOT(slotProcessExited(TDEProcess*)) );
m_proc->start(KProcess::NotifyOnExit, KProcess::All); m_proc->start(TDEProcess::NotifyOnExit, TDEProcess::All);
m_proc->writeStdin(m_instr, m_instr.length()); m_proc->writeStdin(m_instr, m_instr.length());
} }
@ -99,21 +99,21 @@ int ShellFilterDialog::exec()
} }
void ShellFilterDialog::slotReceivedStdout(KProcess *, char *text, int len) void ShellFilterDialog::slotReceivedStdout(TDEProcess *, char *text, int len)
{ {
m_outstr += TQString::fromLocal8Bit(text, len+1); m_outstr += TQString::fromLocal8Bit(text, len+1);
kdDebug(9029) << "outstr " << m_outstr << endl; kdDebug(9029) << "outstr " << m_outstr << endl;
} }
void ShellFilterDialog::slotWroteStdin(KProcess *) void ShellFilterDialog::slotWroteStdin(TDEProcess *)
{ {
m_proc->closeStdin(); m_proc->closeStdin();
kdDebug(9029) << "close stdin " << m_outstr << endl; kdDebug(9029) << "close stdin " << m_outstr << endl;
} }
void ShellFilterDialog::slotProcessExited(KProcess *) void ShellFilterDialog::slotProcessExited(TDEProcess *)
{ {
kdDebug(9029) << "process exit " << m_proc->normalExit() << endl; kdDebug(9029) << "process exit " << m_proc->normalExit() << endl;
if (m_proc->normalExit()) { if (m_proc->normalExit()) {

@ -17,7 +17,7 @@
class TQComboBox; class TQComboBox;
class TQPushButton; class TQPushButton;
class KDevPlugin; class KDevPlugin;
class KProcess; class TDEProcess;
class ShellFilterDialog : public TQDialog class ShellFilterDialog : public TQDialog
@ -38,14 +38,14 @@ public:
private slots: private slots:
void slotStartClicked(); void slotStartClicked();
void slotReceivedStdout(KProcess *, char *text, int len); void slotReceivedStdout(TDEProcess *, char *text, int len);
void slotWroteStdin(KProcess *); void slotWroteStdin(TDEProcess *);
void slotProcessExited(KProcess *); void slotProcessExited(TDEProcess *);
private: private:
TQPushButton *start_button, *cancel_button; TQPushButton *start_button, *cancel_button;
TQComboBox *combo; TQComboBox *combo;
KProcess *m_proc; TDEProcess *m_proc;
TQCString m_instr; TQCString m_instr;
TQString m_outstr; TQString m_outstr;
}; };

@ -97,21 +97,21 @@ void ShellInsertDialog::slotStartClicked()
delete m_proc; delete m_proc;
m_proc = new KShellProcess("/bin/sh"); m_proc = new KShellProcess("/bin/sh");
(*m_proc) << combo->currentText(); (*m_proc) << combo->currentText();
connect( m_proc, TQT_SIGNAL(receivedStdout(KProcess*, char *, int)), connect( m_proc, TQT_SIGNAL(receivedStdout(TDEProcess*, char *, int)),
this, TQT_SLOT(slotReceivedStdout(KProcess*, char *, int)) ); this, TQT_SLOT(slotReceivedStdout(TDEProcess*, char *, int)) );
connect( m_proc, TQT_SIGNAL(processExited(KProcess*)), connect( m_proc, TQT_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(slotProcessExited(KProcess*)) ); this, TQT_SLOT(slotProcessExited(TDEProcess*)) );
m_proc->start(KProcess::NotifyOnExit, KProcess::AllOutput); m_proc->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput);
} }
void ShellInsertDialog::slotReceivedStdout(KProcess *, char *text, int len) void ShellInsertDialog::slotReceivedStdout(TDEProcess *, char *text, int len)
{ {
m_str += TQCString(text, len+1); m_str += TQCString(text, len+1);
} }
void ShellInsertDialog::slotProcessExited(KProcess *) void ShellInsertDialog::slotProcessExited(TDEProcess *)
{ {
if (m_proc->normalExit()) { if (m_proc->normalExit()) {
accept(); accept();

@ -17,7 +17,7 @@
class TQComboBox; class TQComboBox;
class TQPushButton; class TQPushButton;
class KDevPlugin; class KDevPlugin;
class KProcess; class TDEProcess;
class ShellInsertDialog : public TQDialog class ShellInsertDialog : public TQDialog
@ -36,14 +36,14 @@ public:
private slots: private slots:
void slotStartClicked(); void slotStartClicked();
void slotReceivedStdout(KProcess *, char *text, int len); void slotReceivedStdout(TDEProcess *, char *text, int len);
void slotProcessExited(KProcess *); void slotProcessExited(TDEProcess *);
void executeTextChanged( const TQString &text); void executeTextChanged( const TQString &text);
private: private:
TQPushButton *start_button, *cancel_button; TQPushButton *start_button, *cancel_button;
TQComboBox *combo; TQComboBox *combo;
KProcess *m_proc; TDEProcess *m_proc;
TQCString m_str; TQCString m_str;
}; };

@ -138,7 +138,7 @@ GrepViewWidget::GrepViewWidget(GrepViewPart *part) : TQWidget(0, "grepview widg
grepdlg = new GrepDialog( part, this, "grep widget"); grepdlg = new GrepDialog( part, this, "grep widget");
connect( grepdlg, TQT_SIGNAL(searchClicked()), this, TQT_SLOT(searchActivated()) ); connect( grepdlg, TQT_SIGNAL(searchClicked()), this, TQT_SLOT(searchActivated()) );
connect( m_curOutput, TQT_SIGNAL(processExited(KProcess* )), this, TQT_SLOT(slotSearchProcessExited()) ); connect( m_curOutput, TQT_SIGNAL(processExited(TDEProcess* )), this, TQT_SLOT(slotSearchProcessExited()) );
connect( m_tabWidget, TQT_SIGNAL(currentChanged(TQWidget*)), this, TQT_SLOT(slotOutputTabChanged()) ); connect( m_tabWidget, TQT_SIGNAL(currentChanged(TQWidget*)), this, TQT_SLOT(slotOutputTabChanged()) );
@ -461,7 +461,7 @@ void GrepViewWidget::slotKeepOutput( )
connect( m_curOutput, TQT_SIGNAL(clicked(TQListBoxItem*)), this, TQT_SLOT(slotExecuted(TQListBoxItem*)) ); connect( m_curOutput, TQT_SIGNAL(clicked(TQListBoxItem*)), this, TQT_SLOT(slotExecuted(TQListBoxItem*)) );
connect( m_curOutput, TQT_SIGNAL(returnPressed(TQListBoxItem*)), this, TQT_SLOT(slotExecuted(TQListBoxItem*)) ); connect( m_curOutput, TQT_SIGNAL(returnPressed(TQListBoxItem*)), this, TQT_SLOT(slotExecuted(TQListBoxItem*)) );
connect( m_curOutput, TQT_SIGNAL(processExited(KProcess* )), this, TQT_SLOT(slotSearchProcessExited()) ); connect( m_curOutput, TQT_SIGNAL(processExited(TDEProcess* )), this, TQT_SLOT(slotSearchProcessExited()) );
connect( m_curOutput, TQT_SIGNAL(contextMenuRequested( TQListBoxItem*, const TQPoint&)), this, TQT_SLOT(popupMenu(TQListBoxItem*, const TQPoint&))); connect( m_curOutput, TQT_SIGNAL(contextMenuRequested( TQListBoxItem*, const TQPoint&)), this, TQT_SLOT(popupMenu(TQListBoxItem*, const TQPoint&)));
} }

@ -52,7 +52,7 @@ void OpenWithPart::fillContextMenu(TQPopupMenu *popup, const Context *context)
int id = popup->insertItem( i18n("Open As"), openAsPopup ); int id = popup->insertItem( i18n("Open As"), openAsPopup );
popup->setWhatsThis(id, i18n("<b>Open As</b><p>Lists all encodings that can be used to open the selected file.")); popup->setWhatsThis(id, i18n("<b>Open As</b><p>Lists all encodings that can be used to open the selected file."));
TQStringList encodings = KGlobal::charsets()->descriptiveEncodingNames(); TQStringList encodings = TDEGlobal::charsets()->descriptiveEncodingNames();
int i = 0; int i = 0;
TQStringList::const_iterator it = encodings.constBegin(); TQStringList::const_iterator it = encodings.constBegin();
@ -108,11 +108,11 @@ void OpenWithPart::openWithDialog()
void OpenWithPart::openAsEncoding( int id ) void OpenWithPart::openAsEncoding( int id )
{ {
TQStringList encodings = KGlobal::charsets()->descriptiveEncodingNames(); TQStringList encodings = TDEGlobal::charsets()->descriptiveEncodingNames();
TQString encoding; TQString encoding;
if ( id <= encodings.count() && id >= 0 ) if ( id <= encodings.count() && id >= 0 )
{ {
encoding = KGlobal::charsets()->encodingForName( encodings[ id ] ); encoding = TDEGlobal::charsets()->encodingForName( encodings[ id ] );
} }
KURL::List::iterator it = m_urls.begin(); KURL::List::iterator it = m_urls.begin();

@ -53,8 +53,8 @@ AppOutputViewPart::AppOutputViewPart(TQObject *parent, const char *name, const T
connect( core(), TQT_SIGNAL(stopButtonClicked(KDevPlugin*)), connect( core(), TQT_SIGNAL(stopButtonClicked(KDevPlugin*)),
this, TQT_SLOT(slotStopButtonClicked(KDevPlugin*)) ); this, TQT_SLOT(slotStopButtonClicked(KDevPlugin*)) );
connect(m_widget, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(slotProcessExited())); connect(m_widget, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotProcessExited()));
connect(m_widget, TQT_SIGNAL(processExited(KProcess*)), TQT_SIGNAL(processExited())); connect(m_widget, TQT_SIGNAL(processExited(TDEProcess*)), TQT_SIGNAL(processExited()));
} }

@ -178,7 +178,7 @@ MakeWidget::MakeWidget(MakeViewPart *part)
dirstack.setAutoDelete(true); dirstack.setAutoDelete(true);
childproc = new KProcess(TQT_TQOBJECT(this)); childproc = new TDEProcess(TQT_TQOBJECT(this));
procLineMaker = new ProcessLineMaker( childproc ); procLineMaker = new ProcessLineMaker( childproc );
connect( procLineMaker, TQT_SIGNAL(receivedStdoutLine(const TQCString&)), connect( procLineMaker, TQT_SIGNAL(receivedStdoutLine(const TQCString&)),
@ -190,8 +190,8 @@ MakeWidget::MakeWidget(MakeViewPart *part)
connect( procLineMaker, TQT_SIGNAL(receivedPartialStderrLine(const TQCString&)), connect( procLineMaker, TQT_SIGNAL(receivedPartialStderrLine(const TQCString&)),
this, TQT_SLOT(storePartialStderrLine(const TQCString&) )); this, TQT_SLOT(storePartialStderrLine(const TQCString&) ));
connect( childproc, TQT_SIGNAL(processExited(KProcess*)), connect( childproc, TQT_SIGNAL(processExited(TDEProcess*)),
this, TQT_SLOT(slotProcessExited(KProcess*) )) ; this, TQT_SLOT(slotProcessExited(TDEProcess*) )) ;
connect( &m_directoryStatusFilter, TQT_SIGNAL(item(EnteringDirectoryItem*)), connect( &m_directoryStatusFilter, TQT_SIGNAL(item(EnteringDirectoryItem*)),
this, TQT_SLOT(slotEnteredDirectory(EnteringDirectoryItem*)) ); this, TQT_SLOT(slotEnteredDirectory(EnteringDirectoryItem*)) );
@ -287,7 +287,7 @@ void MakeWidget::startNextJob()
childproc->clearArguments(); childproc->clearArguments();
*childproc << currentCommand; *childproc << currentCommand;
childproc->setUseShell(true); childproc->setUseShell(true);
childproc->start(KProcess::OwnGroup, KProcess::AllOutput); childproc->start(TDEProcess::OwnGroup, TDEProcess::AllOutput);
dirstack.clear(); dirstack.clear();
dirstack.push(new TQString(dir)); dirstack.push(new TQString(dir));
@ -555,7 +555,7 @@ void MakeWidget::insertStderrLine( const TQCString& line )
stderrbuf.truncate(0); stderrbuf.truncate(0);
} }
void MakeWidget::slotProcessExited(KProcess *) void MakeWidget::slotProcessExited(TDEProcess *)
{ {
procLineMaker->flush(); procLineMaker->flush();
if( !stderrbuf.isEmpty() ) if( !stderrbuf.isEmpty() )
@ -585,7 +585,7 @@ void MakeWidget::slotProcessExited(KProcess *)
// Defensive programming: We emit this with a single shot timer so that we go once again // Defensive programming: We emit this with a single shot timer so that we go once again
// through the event loop. After that, we can be sure that the process is really finished // through the event loop. After that, we can be sure that the process is really finished
// and its KProcess object can be reused. // and its TDEProcess object can be reused.
if (childproc->normalExit() && !childproc->exitStatus()) if (childproc->normalExit() && !childproc->exitStatus())
{ {
TQTimer::singleShot(0, this, TQT_SLOT(startNextJob())); TQTimer::singleShot(0, this, TQT_SLOT(startNextJob()));

@ -28,7 +28,7 @@
class MakeViewPart; class MakeViewPart;
class MakeItem; class MakeItem;
class KProcess; class TDEProcess;
class ProcessLineMaker; class ProcessLineMaker;
class KURL; class KURL;
@ -64,7 +64,7 @@ private slots:
void insertStderrLine(const TQCString& line); void insertStderrLine(const TQCString& line);
void storePartialStdoutLine(const TQCString& line); void storePartialStdoutLine(const TQCString& line);
void storePartialStderrLine(const TQCString& line); void storePartialStderrLine(const TQCString& line);
void slotProcessExited(KProcess *); void slotProcessExited(TDEProcess *);
void verticScrollingOn() { m_vertScrolling = true; } void verticScrollingOn() { m_vertScrolling = true; }
void verticScrollingOff() { m_vertScrolling = false; } void verticScrollingOff() { m_vertScrolling = false; }
void horizScrollingOn() { m_horizScrolling = true; } void horizScrollingOn() { m_horizScrolling = true; }
@ -106,7 +106,7 @@ private:
TQStringList dirList; TQStringList dirList;
TQString m_lastBuildDir; //stores directory of last build, for the case we don't have proper path information TQString m_lastBuildDir; //stores directory of last build, for the case we don't have proper path information
TQString currentCommand; TQString currentCommand;
KProcess *childproc; TDEProcess *childproc;
ProcessLineMaker* procLineMaker; ProcessLineMaker* procLineMaker;
TQPtrStack<TQString> dirstack; TQPtrStack<TQString> dirstack;
MakeItem* m_pendingItem; MakeItem* m_pendingItem;

@ -40,8 +40,8 @@ RegexpTestDialog::RegexpTestDialog(KDevPlugin *part)
: RegexpTestDialogBase(0, "regexp test dialog", false), _regexp_dialog(0) : RegexpTestDialogBase(0, "regexp test dialog", false), _regexp_dialog(0)
{ {
pattern_edit->setFocus(); pattern_edit->setFocus();
pattern_edit->setFont(KGlobalSettings::fixedFont()); pattern_edit->setFont(TDEGlobalSettings::fixedFont());
teststring_edit->setFont(KGlobalSettings::fixedFont()); teststring_edit->setFont(TDEGlobalSettings::fixedFont());
subgroups_listview->setSorting(0); subgroups_listview->setSorting(0);
m_part = part; m_part = part;

@ -160,7 +160,7 @@ void ToolsPart::startCommand(TQString cmdline, bool captured, TQString fileName)
{ {
KShellProcess proc; KShellProcess proc;
proc << cmdline; proc << cmdline;
proc.start(KProcess::DontCare, KProcess::NoCommunication); proc.start(TDEProcess::DontCare, TDEProcess::NoCommunication);
} }
} }

@ -193,10 +193,10 @@ void ValgrindDialog::setKcExecutable( const TQString& ke )
bool ValgrindDialog::isNewValgrindVersion( ) const bool ValgrindDialog::isNewValgrindVersion( ) const
{ {
KProcess *proc = new KProcess; TDEProcess *proc = new TDEProcess;
proc->setUseShell(true); proc->setUseShell(true);
*proc << "test \"valgrind-20\" == `valgrind --version | awk -F \\. '{print $1$2}'`"; *proc << "test \"valgrind-20\" == `valgrind --version | awk -F \\. '{print $1$2}'`";
proc->start(KProcess::Block); proc->start(TDEProcess::Block);
if (proc->normalExit()) if (proc->normalExit())
return proc->exitStatus(); return proc->exitStatus();
return true; return true;

@ -33,12 +33,12 @@ ValgrindPart::ValgrindPart( TQObject *parent, const char *name, const TQStringLi
setXMLFile( "kdevpart_valgrind.rc" ); setXMLFile( "kdevpart_valgrind.rc" );
proc = new KShellProcess(); proc = new KShellProcess();
connect( proc, TQT_SIGNAL(receivedStdout( KProcess*, char*, int )), connect( proc, TQT_SIGNAL(receivedStdout( TDEProcess*, char*, int )),
this, TQT_SLOT(receivedStdout( KProcess*, char*, int )) ); this, TQT_SLOT(receivedStdout( TDEProcess*, char*, int )) );
connect( proc, TQT_SIGNAL(receivedStderr( KProcess*, char*, int )), connect( proc, TQT_SIGNAL(receivedStderr( TDEProcess*, char*, int )),
this, TQT_SLOT(receivedStderr( KProcess*, char*, int )) ); this, TQT_SLOT(receivedStderr( TDEProcess*, char*, int )) );
connect( proc, TQT_SIGNAL(processExited( KProcess* )), connect( proc, TQT_SIGNAL(processExited( TDEProcess* )),
this, TQT_SLOT(processExited( KProcess* )) ); this, TQT_SLOT(processExited( TDEProcess* )) );
connect( core(), TQT_SIGNAL(stopButtonClicked(KDevPlugin*)), connect( core(), TQT_SIGNAL(stopButtonClicked(KDevPlugin*)),
this, TQT_SLOT(slotStopButtonClicked(KDevPlugin*)) ); this, TQT_SLOT(slotStopButtonClicked(KDevPlugin*)) );
connect( core(), TQT_SIGNAL(projectOpened()), connect( core(), TQT_SIGNAL(projectOpened()),
@ -238,7 +238,7 @@ void ValgrindPart::runValgrind( const TQString& exec, const TQString& params, co
} }
*proc << envVarList.join("") << valExec << valParams << exec << params; *proc << envVarList.join("") << valExec << valParams << exec << params;
proc->start( KProcess::NotifyOnExit, KProcess::AllOutput ); proc->start( TDEProcess::NotifyOnExit, TDEProcess::AllOutput );
mainWindow()->raiseView( m_widget ); mainWindow()->raiseView( m_widget );
core()->running( this, true ); core()->running( this, true );
@ -246,12 +246,12 @@ void ValgrindPart::runValgrind( const TQString& exec, const TQString& params, co
_lastParams = params; _lastParams = params;
} }
void ValgrindPart::receivedStdout( KProcess*, char* /* msg */, int /* len */ ) void ValgrindPart::receivedStdout( TDEProcess*, char* /* msg */, int /* len */ )
{ {
//kdDebug() << "got StdOut: " <<TQString::fromLocal8Bit( msg, len ) << endl; //kdDebug() << "got StdOut: " <<TQString::fromLocal8Bit( msg, len ) << endl;
} }
void ValgrindPart::receivedStderr( KProcess*, char* msg, int len ) void ValgrindPart::receivedStderr( TDEProcess*, char* msg, int len )
{ {
receivedString( TQString::fromLocal8Bit( msg, len ) ); receivedString( TQString::fromLocal8Bit( msg, len ) );
} }
@ -299,7 +299,7 @@ void ValgrindPart::appendMessages( const TQStringList& lines )
} }
} }
void ValgrindPart::processExited( KProcess* p ) void ValgrindPart::processExited( TDEProcess* p )
{ {
if ( p == proc ) { if ( p == proc ) {
appendMessage( currentMessage + lastPiece ); appendMessage( currentMessage + lastPiece );
@ -309,11 +309,11 @@ void ValgrindPart::processExited( KProcess* p )
if (kcInfo.runKc) if (kcInfo.runKc)
{ {
KProcess *kcProc = new KProcess; TDEProcess *kcProc = new TDEProcess;
// kcProc->setWorkingDirectory(kcInfo.kcWorkDir); // kcProc->setWorkingDirectory(kcInfo.kcWorkDir);
*kcProc << kcInfo.kcPath; *kcProc << kcInfo.kcPath;
*kcProc << TQString("callgrind.out.%1").arg(p->pid()); *kcProc << TQString("callgrind.out.%1").arg(p->pid());
kcProc->start(KProcess::DontCare); kcProc->start(TDEProcess::DontCare);
} }
} }
} }

@ -11,7 +11,7 @@
#include <kdevplugin.h> #include <kdevplugin.h>
class ValgrindWidget; class ValgrindWidget;
class KProcess; class TDEProcess;
class ValgrindPart : public KDevPlugin class ValgrindPart : public KDevPlugin
{ {
@ -32,9 +32,9 @@ private slots:
void slotExecCalltree(); void slotExecCalltree();
void slotKillValgrind(); void slotKillValgrind();
void slotStopButtonClicked( KDevPlugin* which ); void slotStopButtonClicked( KDevPlugin* which );
void receivedStdout( KProcess*, char*, int ); void receivedStdout( TDEProcess*, char*, int );
void receivedStderr( KProcess*, char*, int ); void receivedStderr( TDEProcess*, char*, int );
void processExited( KProcess* ); void processExited( TDEProcess* );
void loadOutput(); void loadOutput();
void projectOpened(); void projectOpened();
@ -46,7 +46,7 @@ private:
void clear(); void clear();
TQString _lastExec, _lastParams, _lastValExec, _lastValParams, TQString _lastExec, _lastParams, _lastValExec, _lastValParams,
_lastCtExec, _lastCtParams, _lastKcExec; _lastCtExec, _lastCtParams, _lastKcExec;
KProcess* proc; TDEProcess* proc;
TQString currentMessage; TQString currentMessage;
TQString lastPiece; TQString lastPiece;
TQStringList activeFiles; TQStringList activeFiles;

@ -125,7 +125,7 @@ void EditorProxy::installPopup( KParts::Part * part )
KAction * action = NULL; KAction * action = NULL;
//If there is a tab for this file, we don't need to plug the closing menu entries here //If there is a tab for this file, we don't need to plug the closing menu entries here
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup("UI"); config->setGroup("UI");
bool m_tabBarShown = ! config->readNumEntry("TabWidgetVisibility", 0); bool m_tabBarShown = ! config->readNumEntry("TabWidgetVisibility", 0);
if (!m_tabBarShown) if (!m_tabBarShown)

@ -56,7 +56,7 @@ void GeneralInfoWidget::readConfig() {
TQStringList encodings; TQStringList encodings;
encodings << i18n("Use global editor settings"); encodings << i18n("Use global editor settings");
encodings += KGlobal::charsets()->descriptiveEncodingNames(); encodings += TDEGlobal::charsets()->descriptiveEncodingNames();
TQStringList::const_iterator it = encodings.constBegin(); TQStringList::const_iterator it = encodings.constBegin();
while ( it != encodings.constEnd() ) while ( it != encodings.constEnd() )
{ {
@ -65,11 +65,11 @@ void GeneralInfoWidget::readConfig() {
} }
encoding_combo->setCurrentItem( 0 ); encoding_combo->setCurrentItem( 0 );
// const TQString DefaultEncoding = KGlobal::charsets()->encodingForName( DomUtil::readEntry( m_projectDom, "/general/defaultencoding", TQString() ) ); // const TQString DefaultEncoding = TDEGlobal::charsets()->encodingForName( DomUtil::readEntry( m_projectDom, "/general/defaultencoding", TQString() ) );
const TQString DefaultEncoding = DomUtil::readEntry( m_projectDom, "/general/defaultencoding", TQString() ); const TQString DefaultEncoding = DomUtil::readEntry( m_projectDom, "/general/defaultencoding", TQString() );
for ( int i = 0; i < encoding_combo->count(); i++ ) for ( int i = 0; i < encoding_combo->count(); i++ )
{ {
if ( KGlobal::charsets()->encodingForName( encoding_combo->text( i ) ) == DefaultEncoding ) if ( TDEGlobal::charsets()->encodingForName( encoding_combo->text( i ) ) == DefaultEncoding )
{ {
encoding_combo->setCurrentItem( i ); encoding_combo->setCurrentItem( i );
break; break;
@ -192,7 +192,7 @@ void GeneralInfoWidget::writeConfig() {
TQString DefaultEncoding = TQString(); TQString DefaultEncoding = TQString();
if ( encoding_combo->currentItem() > 0 ) if ( encoding_combo->currentItem() > 0 )
{ {
DefaultEncoding = KGlobal::charsets()->encodingForName( encoding_combo->currentText() ); DefaultEncoding = TDEGlobal::charsets()->encodingForName( encoding_combo->currentText() );
} }
DomUtil::writeEntry( m_projectDom, "/general/defaultencoding", DefaultEncoding ); DomUtil::writeEntry( m_projectDom, "/general/defaultencoding", DefaultEncoding );
} }

@ -186,7 +186,7 @@ void MainWindowShare::createActions()
void MainWindowShare::slotReportBug() void MainWindowShare::slotReportBug()
{ {
KBugReport a(m_pMainWnd, true, KGlobal::instance()->aboutData() ); KBugReport a(m_pMainWnd, true, TDEGlobal::instance()->aboutData() );
a.exec(); a.exec();
} }
@ -285,7 +285,7 @@ void MainWindowShare::slotShowMenuBar()
} else { } else {
m_pMainWnd->menuBar()->show(); m_pMainWnd->menuBar()->show();
} }
m_pMainWnd->saveMainWindowSettings( KGlobal::config(), "Mainwindow" ); m_pMainWnd->saveMainWindowSettings( TDEGlobal::config(), "Mainwindow" );
} }
void MainWindowShare::slotConfigureNotifications() void MainWindowShare::slotConfigureNotifications()
@ -384,7 +384,7 @@ void MainWindowShare::slotNewToolbarConfig()
{ {
// replug actionlists here... // replug actionlists here...
m_pMainWnd->applyMainWindowSettings( KGlobal::config(), "Mainwindow" ); m_pMainWnd->applyMainWindowSettings( TDEGlobal::config(), "Mainwindow" );
// PartController::getInstance()->reinstallPopups(); // PartController::getInstance()->reinstallPopups();
} }
@ -427,7 +427,7 @@ void MainWindowShare::slotKeyBindings()
void MainWindowShare::slotConfigureToolbars() void MainWindowShare::slotConfigureToolbars()
{ {
m_pMainWnd->saveMainWindowSettings( KGlobal::config(), "Mainwindow" ); m_pMainWnd->saveMainWindowSettings( TDEGlobal::config(), "Mainwindow" );
KEditToolbar dlg( m_pMainWnd->factory() ); KEditToolbar dlg( m_pMainWnd->factory() );
connect(&dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(slotNewToolbarConfig())); connect(&dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(slotNewToolbarConfig()));
dlg.exec(); dlg.exec();

@ -73,7 +73,7 @@ public:
{ {
TQColorGroup cgNew = cg; TQColorGroup cgNew = cg;
if (m_derived) if (m_derived)
cgNew.setColor(TQColorGroup::Text, KGlobalSettings::inactiveTextColor()); cgNew.setColor(TQColorGroup::Text, TDEGlobalSettings::inactiveTextColor());
KListViewItem::paintCell(p, cgNew, column, width, alignment); KListViewItem::paintCell(p, cgNew, column, width, alignment);
} }

@ -165,7 +165,7 @@ bool Profile::hasInEntryList(EntryList &list, TQString value)
bool Profile::remove() bool Profile::remove()
{ {
TQStringList dirs = KGlobal::dirs()->findDirs("data", "tdevelop/profiles" + dirName()); TQStringList dirs = TDEGlobal::dirs()->findDirs("data", "tdevelop/profiles" + dirName());
if ((dirs.count() == 1) && dirs[0].startsWith(TQDir::homeDirPath())) if ((dirs.count() == 1) && dirs[0].startsWith(TQDir::homeDirPath()))
return KIO::NetAccess::del(KURL::fromPathOrURL(dirs[0]), 0); return KIO::NetAccess::del(KURL::fromPathOrURL(dirs[0]), 0);
return false; return false;
@ -180,7 +180,7 @@ void Profile::detachFromParent()
KURL::List Profile::resources(const TQString &nameFilter) KURL::List Profile::resources(const TQString &nameFilter)
{ {
TQStringList resources; TQStringList resources;
TQStringList resourceDirs = KGlobal::dirs()->resourceDirs("data"); TQStringList resourceDirs = TDEGlobal::dirs()->resourceDirs("data");
for (TQStringList::const_iterator it = resourceDirs.begin(); it != resourceDirs.end(); ++it) for (TQStringList::const_iterator it = resourceDirs.begin(); it != resourceDirs.end(); ++it)
{ {
TQString dir = *it; TQString dir = *it;
@ -200,6 +200,6 @@ KURL::List Profile::resources(const TQString &nameFilter)
void Profile::addResource(const KURL &url) void Profile::addResource(const KURL &url)
{ {
TQString saveLocation = KGlobal::dirs()->saveLocation("data", "tdevelop/profiles"+dirName(), true); TQString saveLocation = TDEGlobal::dirs()->saveLocation("data", "tdevelop/profiles"+dirName(), true);
KIO::NetAccess::file_copy(url, KURL::fromPathOrURL(saveLocation), -1, true); KIO::NetAccess::file_copy(url, KURL::fromPathOrURL(saveLocation), -1, true);
} }

@ -29,7 +29,7 @@
ProfileEngine::ProfileEngine() ProfileEngine::ProfileEngine()
{ {
TQStringList dirs = KGlobal::dirs()->findDirs("data", "tdevelop/profiles"); TQStringList dirs = TDEGlobal::dirs()->findDirs("data", "tdevelop/profiles");
m_rootProfile = new Profile(0, "KDevelop"); m_rootProfile = new Profile(0, "KDevelop");

@ -618,7 +618,7 @@ bool ProjectManager::loadKDevelop2Project( const KURL & url )
return false; return false;
} }
TQString cmd = KGlobal::dirs()->findExe( "kdevprj2tdevelop" ); TQString cmd = TDEGlobal::dirs()->findExe( "kdevprj2tdevelop" );
if (cmd.isEmpty()) { if (cmd.isEmpty()) {
KMessageBox::sorry(0, i18n("You do not have 'kdevprj2tdevelop' installed.")); KMessageBox::sorry(0, i18n("You do not have 'kdevprj2tdevelop' installed."));
return false; return false;
@ -629,7 +629,7 @@ bool ProjectManager::loadKDevelop2Project( const KURL & url )
KShellProcess proc( "/bin/sh" ); KShellProcess proc( "/bin/sh" );
proc.setWorkingDirectory( fileInfo.dirPath(true) ); proc.setWorkingDirectory( fileInfo.dirPath(true) );
proc << "perl" << cmd << KShellProcess::quote( url.path() ); proc << "perl" << cmd << KShellProcess::quote( url.path() );
proc.start( KProcess::Block ); proc.start( TDEProcess::Block );
TQString projectFile = fileInfo.dirPath( true ) + "/" + fileInfo.baseName() + ".tdevelop"; TQString projectFile = fileInfo.dirPath( true ) + "/" + fileInfo.baseName() + ".tdevelop";
return loadProject( KURL(projectFile) ); return loadProject( KURL(projectFile) );

@ -666,7 +666,7 @@ void SimpleMainWindow::tabContextActivated(int id)
void SimpleMainWindow::configureToolbars() void SimpleMainWindow::configureToolbars()
{ {
saveMainWindowSettings(KGlobal::config(), "SimpleMainWindow"); saveMainWindowSettings(TDEGlobal::config(), "SimpleMainWindow");
KEditToolbar dlg(factory()); KEditToolbar dlg(factory());
connect(&dlg, TQT_SIGNAL(newToolbarConfig()), TQT_TQOBJECT(this), TQT_SLOT(slotNewToolbarConfig())); connect(&dlg, TQT_SIGNAL(newToolbarConfig()), TQT_TQOBJECT(this), TQT_SLOT(slotNewToolbarConfig()));
dlg.exec(); dlg.exec();
@ -676,7 +676,7 @@ void SimpleMainWindow::slotNewToolbarConfig()
{ {
// setupWindowMenu(); // setupWindowMenu();
m_mainWindowShare->slotGUICreated(PartController::getInstance()->activePart()); m_mainWindowShare->slotGUICreated(PartController::getInstance()->activePart());
applyMainWindowSettings(KGlobal::config(), "SimpleMainWindow"); applyMainWindowSettings(TDEGlobal::config(), "SimpleMainWindow");
} }
bool SimpleMainWindow::queryClose() bool SimpleMainWindow::queryClose()

@ -67,7 +67,7 @@ void KDevSplashScreen::drawContents (TQPainter* painter)
} }
painter->setPen(TQColor(74,112,18)); painter->setPen(TQColor(74,112,18));
TQFont fnt(KGlobalSettings::generalFont()); TQFont fnt(TDEGlobalSettings::generalFont());
fnt.setPointSize(8); fnt.setPointSize(8);
painter->setFont(fnt); painter->setFont(fnt);

@ -89,7 +89,7 @@ TQString AnnotateViewItem::text(int col) const
case AuthorColumn: case AuthorColumn:
return (m_revision + TQChar(' ') + m_author); return (m_revision + TQChar(' ') + m_author);
case DateColumn: case DateColumn:
return KGlobal::locale()->formatDate(m_logDate.date(), true); return TDEGlobal::locale()->formatDate(m_logDate.date(), true);
case ContentColumn: case ContentColumn:
return m_content; return m_content;
default: default:
@ -107,13 +107,13 @@ void AnnotateViewItem::paintCell(TQPainter *p, const TQColorGroup &, int col, in
switch (col) switch (col)
{ {
case LineNumberColumn: case LineNumberColumn:
backgroundColor = KGlobalSettings::highlightColor(); backgroundColor = TDEGlobalSettings::highlightColor();
p->setPen(KGlobalSettings::highlightedTextColor()); p->setPen(TDEGlobalSettings::highlightedTextColor());
break; break;
default: default:
backgroundColor = m_odd ? KGlobalSettings::baseColor() backgroundColor = m_odd ? TDEGlobalSettings::baseColor()
: KGlobalSettings::alternateBackgroundColor(); : TDEGlobalSettings::alternateBackgroundColor();
p->setPen(KGlobalSettings::textColor()); p->setPen(TDEGlobalSettings::textColor());
break; break;
}; };

@ -74,10 +74,10 @@ void IntegratorDlg::init_clicked()
if (dlg.exec() == TQDialog::Accepted) if (dlg.exec() == TQDialog::Accepted)
{ {
TQString url = initDlg->location->url(); TQString url = initDlg->location->url();
KProcess *proc = new KProcess(); TDEProcess *proc = new TDEProcess();
*proc << "cvs"; *proc << "cvs";
*proc << "-d" << url << "init"; *proc << "-d" << url << "init";
proc->start(KProcess::Block); proc->start(TDEProcess::Block);
if (!proc->normalExit()) if (!proc->normalExit())
KMessageBox::error(this, i18n("cvs init did not exit normally. Please check if cvs is installed and works correctly."), i18n("Init CVS Repository")); KMessageBox::error(this, i18n("cvs init did not exit normally. Please check if cvs is installed and works correctly."), i18n("Init CVS Repository"));
else if (proc->exitStatus() != 0) else if (proc->exitStatus() != 0)
@ -118,13 +118,13 @@ void IntegratorDlg::accept()
if (!createModule->isChecked()) if (!createModule->isChecked())
return; return;
KProcess *proc = new KProcess(); TDEProcess *proc = new TDEProcess();
proc->setWorkingDirectory(m_projectLocation); proc->setWorkingDirectory(m_projectLocation);
*proc << "cvs"; *proc << "cvs";
*proc << "-d" << repository->currentText() << "import" *proc << "-d" << repository->currentText() << "import"
<< "-m" << TQString("\"%1\"").arg(comment->text()) << module->text() << "-m" << TQString("\"%1\"").arg(comment->text()) << module->text()
<< vendorTag->text() << releaseTag->text(); << vendorTag->text() << releaseTag->text();
proc->start(KProcess::Block); proc->start(TDEProcess::Block);
if (!proc->normalExit()) if (!proc->normalExit())
KMessageBox::error(this, i18n("cvs import did not exit normally. Please check if cvs is installed and works correctly."), i18n("Init CVS Repository")); KMessageBox::error(this, i18n("cvs import did not exit normally. Please check if cvs is installed and works correctly."), i18n("Init CVS Repository"));
else if (proc->exitStatus() != 0) else if (proc->exitStatus() != 0)
@ -138,17 +138,17 @@ void IntegratorDlg::accept()
kdDebug() << "Up is: " << up << endl; kdDebug() << "Up is: " << up << endl;
//delete sources in project dir //delete sources in project dir
KProcess *rmproc = new KProcess(); TDEProcess *rmproc = new TDEProcess();
*rmproc << "rm"; *rmproc << "rm";
*rmproc << "-f" << "-r" << m_projectLocation; *rmproc << "-f" << "-r" << m_projectLocation;
rmproc->start(KProcess::Block); rmproc->start(TDEProcess::Block);
//checkout sources from cvs //checkout sources from cvs
KProcess *coproc = new KProcess(); TDEProcess *coproc = new TDEProcess();
coproc->setWorkingDirectory(up); coproc->setWorkingDirectory(up);
*coproc << "cvs"; *coproc << "cvs";
*coproc << "-d" << repository->currentText() << "checkout" << "-d" << m_projectName << module->text(); *coproc << "-d" << repository->currentText() << "checkout" << "-d" << m_projectName << module->text();
coproc->start(KProcess::Block); coproc->start(TDEProcess::Block);
} }
/* TQCString appId; /* TQCString appId;

@ -19,7 +19,7 @@
#include <klistbox.h> #include <klistbox.h>
#include <kdialogbase.h> #include <kdialogbase.h>
class KProcess; class TDEProcess;
class CommitDialog : public KDialogBase class CommitDialog : public KDialogBase
{ {

@ -136,7 +136,7 @@ void PerforcePart::execCommand( const TQString& cmd, const TQString& filename )
TQString name = fi.fileName(); TQString name = fi.fileName();
TQString command("cd "); TQString command("cd ");
command += KProcess::quote(dir); command += TDEProcess::quote(dir);
command += " && p4 " + cmd + " "; command += " && p4 " + cmd + " ";
command += name; command += name;
@ -204,7 +204,7 @@ void PerforcePart::update( const TQString& filename )
} }
TQString command("cd "); TQString command("cd ");
command += KProcess::quote(dir); command += TDEProcess::quote(dir);
command += " && p4 sync "; command += " && p4 sync ";
command += name; command += name;

@ -86,7 +86,7 @@ void SvnIntegratorDlg::accept()
} }
} }
//delete the template directory and checkout a fresh one from the server //delete the template directory and checkout a fresh one from the server
BlockingKProcess *rmproc = new BlockingKProcess(); BlockingTDEProcess *rmproc = new BlockingTDEProcess();
*rmproc << "rm"; *rmproc << "rm";
*rmproc << "-f" << "-r" << m_projectLocation; *rmproc << "-f" << "-r" << m_projectLocation;
rmproc->start(); rmproc->start();

@ -180,16 +180,16 @@ void subversionCore::diff( const KURL::List& list, const TQString& where){
TQString ourCopy = tmpDir.name()+(*it).fileName(); TQString ourCopy = tmpDir.name()+(*it).fileName();
KProcess copy; TDEProcess copy;
copy << "cp" << (*it).prettyURL(0,KURL::StripFileProtocol) << tmpDir.name(); copy << "cp" << (*it).prettyURL(0,KURL::StripFileProtocol) << tmpDir.name();
copy.start(KProcess::Block); copy.start(TDEProcess::Block);
KProcess patch; TDEProcess patch;
patch.setWorkingDirectory(tmpDir.name()); patch.setWorkingDirectory(tmpDir.name());
patch << "patch" << "-R" << ourCopy << tmpPatch.name(); patch << "patch" << "-R" << ourCopy << tmpPatch.name();
patch.start(KProcess::Block, KProcess::All); patch.start(TDEProcess::Block, TDEProcess::All);
KProcess *p = new KProcess; TDEProcess *p = new TDEProcess;
*p << "kompare" << ourCopy << (*it).prettyURL(); *p << "kompare" << ourCopy << (*it).prettyURL();
p->start(); p->start();
} }
@ -203,7 +203,7 @@ void subversionCore::diff( const KURL::List& list, const TQString& where){
( *stream ) << ( *it2 ) << "\n"; ( *stream ) << ( *it2 ) << "\n";
} }
tmp->close(); tmp->close();
KProcess *p = new KProcess; TDEProcess *p = new TDEProcess;
*p << "kompare" << "-n" << "-o" << tmp->name(); *p << "kompare" << "-n" << "-o" << tmp->name();
p->start(); p->start();
} }
@ -695,7 +695,7 @@ void subversionCore::slotDiffResult( KIO::Job * job )
( *stream ) << ( *it2 ) << "\n"; ( *stream ) << ( *it2 ) << "\n";
} }
tmp->close(); tmp->close();
KProcess *p = new KProcess; TDEProcess *p = new TDEProcess;
*p << "kompare" << "-n" << "-o" << tmp->name(); *p << "kompare" << "-n" << "-o" << tmp->name();
p->start(); p->start();

Loading…
Cancel
Save