Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent b9e542d0c8
commit da1522385e

@ -175,7 +175,7 @@
* Implemented a fix for BR 91757 which also removes the silly runtime dependency we had on tdebase * Implemented a fix for BR 91757 which also removes the silly runtime dependency we had on tdebase
2005-01-28 Richard Dale <Richard_Dale@tipitina.demon.co.uk> 2005-01-28 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added a Ruby KConfig XT project template * Added a Ruby TDEConfig XT project template
2005-01-25 Jens Dagerbo <jens.dagerbo@swipnet.se> 2005-01-25 Jens Dagerbo <jens.dagerbo@swipnet.se>
* Reimplemented "Forward" for source navigation history * Reimplemented "Forward" for source navigation history
@ -445,7 +445,7 @@
* Added MimeWarningDialog - KDevelop will now ask the user what to do when an unknown mimetype is encountered. * Added MimeWarningDialog - KDevelop will now ask the user what to do when an unknown mimetype is encountered.
2004-04-15 Jens Dagerbo <jens.dagerbo@swipnet.se> 2004-04-15 Jens Dagerbo <jens.dagerbo@swipnet.se>
* Added Thomas Nagy's KConfig XT based apptemplate. * Added Thomas Nagy's TDEConfig XT based apptemplate.
2004-04-14 Jens Dagerbo <jens.dagerbo@swipnet.se> 2004-04-14 Jens Dagerbo <jens.dagerbo@swipnet.se>
* Rewrote and documented the KDevPartController interface to reduce the duplication of a lot of common but * Rewrote and documented the KDevPartController interface to reduce the duplication of a lot of common but
@ -1139,7 +1139,7 @@
* Made the "C++ new class dialog" a little bit nicer * Made the "C++ new class dialog" a little bit nicer
2003-02-27 F@lk Brettschneider <falkbr@tdevelop.org> 2003-02-27 F@lk Brettschneider <falkbr@tdevelop.org>
* make-outputview: now context menu allows to disable line wrapping, to set a short and smart compiler output (good for novices) and to suppress directory navigation messages. (TODO: save this to KConfig) * make-outputview: now context menu allows to disable line wrapping, to set a short and smart compiler output (good for novices) and to suppress directory navigation messages. (TODO: save this to TDEConfig)
2003-02-26 Eray Ozkural (exa) <erayo@cs.bilkent.edu.tr> 2003-02-26 Eray Ozkural (exa) <erayo@cs.bilkent.edu.tr>
* parts/cppsupport: fix nasty inner class bug (part of bug 45998). Determine * parts/cppsupport: fix nasty inner class bug (part of bug 45998). Determine
@ -2465,7 +2465,7 @@
2001-07-17 Bernd Gehrmann <bernd@physik.hu-berlin.de> 2001-07-17 Bernd Gehrmann <bernd@physik.hu-berlin.de>
* Added kdoc-generated Qt/KDE index to index dialog * Added kdoc-generated Qt/KDE index to index dialog
* Destroy compiled-in factories at exit. Otherwise * Destroy compiled-in factories at exit. Otherwise
their KConfig's don't get sync()ed their TDEConfig's don't get sync()ed
2001-07-16 Bernd Gehrmann <bernd@physik.hu-berlin.de> 2001-07-16 Bernd Gehrmann <bernd@physik.hu-berlin.de>
* Made doxygen config widget more KDE compliant, i.e. * Made doxygen config widget more KDE compliant, i.e.
KDE icons, KFileDialog instead of QFileDialog, KDE icons, KFileDialog instead of QFileDialog,

@ -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 = TDEGlobal::config(); TDEConfig *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 = TDEGlobal::config(); /* TDEConfig *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 = TDEGlobal::config(); TDEConfig *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)

@ -443,7 +443,7 @@ KDevCompilerOptions *AdaProjectPart::createCompilerOptions(const TQString &name)
TQString AdaProjectPart::defaultOptions( const TQString compiler ) TQString AdaProjectPart::defaultOptions( const TQString compiler )
{ {
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Ada Compiler"); config->setGroup("Ada Compiler");
return config->readPathEntry(compiler); return config->readPathEntry(compiler);
} }

@ -141,7 +141,7 @@ void AddExistingDirectoriesDialog::importItems()
{ {
KURL amURL = itemList.current()->url(); KURL amURL = itemList.current()->url();
amURL.addPath("Makefile.am"); amURL.addPath("Makefile.am");
if (KIO::NetAccess::exists(amURL)) if (TDEIO::NetAccess::exists(amURL))
{ {
importView->insertItem ( ( *itemList ) ); importView->insertItem ( ( *itemList ) );
} }

@ -509,7 +509,7 @@ TQString AutoProjectPart::makeEnvironment() const
environstr += " "; environstr += " ";
} }
KConfigGroup grp( kapp->config(), "MakeOutputView" ); TDEConfigGroup grp( kapp->config(), "MakeOutputView" );
if( grp.readBoolEntry( "ForceCLocale", true ) ) if( grp.readBoolEntry( "ForceCLocale", true ) )
environstr += "LC_MESSAGES="+EnvVarTools::quote("C")+" "+"LC_CTYPE="+EnvVarTools::quote("C")+" "; environstr += "LC_MESSAGES="+EnvVarTools::quote("C")+" "+"LC_CTYPE="+EnvVarTools::quote("C")+" ";

@ -304,7 +304,7 @@ void AutoSubprojectView::slotContextMenu( KListView *, TQListViewItem *item, con
collapseAction->plug( &popup ); collapseAction->plug( &popup );
expandAction->plug( &popup ); expandAction->plug( &popup );
KConfig *config = m_part->instance()->config(); TDEConfig *config = m_part->instance()->config();
bool separate = true; bool separate = true;
TQMap<TQString,TQString> customBuildCommands = config->entryMap("CustomCommands"); TQMap<TQString,TQString> customBuildCommands = config->entryMap("CustomCommands");
for (TQMap<TQString,TQString>::const_iterator it = customBuildCommands.constBegin(); for (TQMap<TQString,TQString>::const_iterator it = customBuildCommands.constBegin();
@ -1013,7 +1013,7 @@ void AutoSubprojectView::focusOutEvent( TQFocusEvent */* e*/ )
void AutoSubprojectView::slotManageBuildCommands( ) void AutoSubprojectView::slotManageBuildCommands( )
{ {
KConfig *config = m_part->instance()->config(); TDEConfig *config = m_part->instance()->config();
//menu item name <-> command //menu item name <-> command
TQMap<TQString, TQString> customBuildCommands = config->entryMap("CustomCommands"); TQMap<TQString, TQString> customBuildCommands = config->entryMap("CustomCommands");

@ -46,15 +46,15 @@ KFileDnDDetailView::KFileDnDDetailView(TQWidget *parent, const char *name )
KFileDnDDetailView::~KFileDnDDetailView(){ KFileDnDDetailView::~KFileDnDDetailView(){
} }
//----------------------------------------------- //-----------------------------------------------
void KFileDnDDetailView::readConfig( KConfig* config, const TQString& group ) { void KFileDnDDetailView::readConfig( TDEConfig* config, const TQString& group ) {
KConfigGroupSaver cs( config, group ); TDEConfigGroupSaver cs( config, group );
bool dnd = config->readBoolEntry("DragAndDrop", true ); bool dnd = config->readBoolEntry("DragAndDrop", true );
setDnDEnabled( dnd ); setDnDEnabled( dnd );
KFileDetailView::readConfig( config, group ); KFileDetailView::readConfig( config, group );
} }
//----------------------------------------------- //-----------------------------------------------
void KFileDnDDetailView::writeConfig( KConfig* config, const TQString& group ) { void KFileDnDDetailView::writeConfig( TDEConfig* config, const TQString& group ) {
KConfigGroupSaver cs( config, group ); TDEConfigGroupSaver cs( config, group );
config->writeEntry("DragAndDrop", m_dndEnabled ); config->writeEntry("DragAndDrop", m_dndEnabled );
KFileDetailView::writeConfig( config, group ); KFileDetailView::writeConfig( config, group );
} }

@ -79,9 +79,9 @@ public:
return m_useAutoOpenTimer; return m_useAutoOpenTimer;
} }
/** */ /** */
virtual void readConfig( KConfig*, const TQString& group = TQString() ); virtual void readConfig( TDEConfig*, const TQString& group = TQString() );
/** */ /** */
virtual void writeConfig( KConfig*, const TQString& group = TQString() ); virtual void writeConfig( TDEConfig*, const TQString& group = TQString() );
signals: // Signals signals: // Signals
/** /**
* Emitted whenever an decodable item is dropped in the view. * Emitted whenever an decodable item is dropped in the view.

@ -46,15 +46,15 @@ KFileDnDIconView::KFileDnDIconView( TQWidget *parent, const char *name )
KFileDnDIconView::~KFileDnDIconView(){ KFileDnDIconView::~KFileDnDIconView(){
} }
//----------------------------------------------- //-----------------------------------------------
void KFileDnDIconView::readConfig( KConfig* config, const TQString& group ) { void KFileDnDIconView::readConfig( TDEConfig* config, const TQString& group ) {
KConfigGroupSaver cs( config, group ); TDEConfigGroupSaver cs( config, group );
bool dnd = config->readBoolEntry("EnableDND", true ); bool dnd = config->readBoolEntry("EnableDND", true );
setDnDEnabled( dnd ); setDnDEnabled( dnd );
KFileIconView::readConfig( config, group ); KFileIconView::readConfig( config, group );
} }
//----------------------------------------------- //-----------------------------------------------
void KFileDnDIconView::writeConfig( KConfig* config, const TQString& group ) { void KFileDnDIconView::writeConfig( TDEConfig* config, const TQString& group ) {
KConfigGroupSaver cs( config, group ); TDEConfigGroupSaver cs( config, group );
config->writeEntry("EnableDND", m_dndEnabled ); config->writeEntry("EnableDND", m_dndEnabled );
KFileIconView::writeConfig( config, group ); KFileIconView::writeConfig( config, group );
} }

@ -78,8 +78,8 @@ public: // Public methods
return m_useAutoOpenTimer; return m_useAutoOpenTimer;
} }
virtual void readConfig( KConfig*, const TQString& group = TQString() ); virtual void readConfig( TDEConfig*, const TQString& group = TQString() );
virtual void writeConfig( KConfig*, const TQString& group = TQString() ); virtual void writeConfig( TDEConfig*, const TQString& group = TQString() );
signals: signals:
/** /**

@ -884,7 +884,7 @@ TQString CustomProjectPart::makeEnvironment() const
environstr += " "; environstr += " ";
} }
KConfigGroup grp( kapp->config(), "MakeOutputView" ); TDEConfigGroup grp( kapp->config(), "MakeOutputView" );
if( grp.readBoolEntry( "ForceCLocale", true ) ) if( grp.readBoolEntry( "ForceCLocale", true ) )
environstr += "LC_MESSAGES=" + EnvVarTools::quote( "C" )+" "+" "+"LC_CTYPE="+EnvVarTools::quote("C")+" "; environstr += "LC_MESSAGES=" + EnvVarTools::quote( "C" )+" "+" "+"LC_CTYPE="+EnvVarTools::quote("C")+" ";

@ -58,9 +58,9 @@ int Driver::parseFile(KURL fileName, ProjectAST **ast)
{ {
TQString tmpFile; TQString tmpFile;
int ret = 0; int ret = 0;
if (KIO::NetAccess::download(fileName, tmpFile, 0)) if (TDEIO::NetAccess::download(fileName, tmpFile, 0))
ret = parseFile(tmpFile, ast); ret = parseFile(tmpFile, ast);
KIO::NetAccess::removeTempFile(tmpFile); TDEIO::NetAccess::removeTempFile(tmpFile);
return ret; return ret;
} }

@ -75,9 +75,9 @@ int Driver::parseFile(KURL fileName, ProjectAST **ast, int debug)
{ {
TQString tmpFile; TQString tmpFile;
int ret = 0; int ret = 0;
if (KIO::NetAccess::download(fileName, tmpFile, 0)) if (TDEIO::NetAccess::download(fileName, tmpFile, 0))
ret = parseFile(tmpFile, ast, debug); ret = parseFile(tmpFile, ast, debug);
KIO::NetAccess::removeTempFile(tmpFile); TDEIO::NetAccess::removeTempFile(tmpFile);
return ret; return ret;
} }

@ -28,7 +28,7 @@ AddFilesDialog::AddFilesDialog(const TQString& startDir, const TQString& filter,
TQWidget *parent, const char *name, bool modal): TQWidget *parent, const char *name, bool modal):
KFileDialog(startDir, filter, parent, name, modal) KFileDialog(startDir, filter, parent, name, modal)
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("Add Files Dialog"); config->setGroup("Add Files Dialog");
m_extraWidget = new TQComboBox(false, this); m_extraWidget = new TQComboBox(false, this);
@ -48,7 +48,7 @@ AddFilesDialog::AddFilesDialog(const TQString& startDir, const TQString& filter,
TQWidget *parent, const char *name, bool modal, TQComboBox *extraWidget): TQWidget *parent, const char *name, bool modal, TQComboBox *extraWidget):
KFileDialog(startDir, filter, parent, name, modal, extraWidget), m_extraWidget(extraWidget) KFileDialog(startDir, filter, parent, name, modal, extraWidget), m_extraWidget(extraWidget)
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("Add Files Dialog"); config->setGroup("Add Files Dialog");
m_extraWidget->insertItem(i18n("Copy File(s)"), 0); m_extraWidget->insertItem(i18n("Copy File(s)"), 0);
@ -72,7 +72,7 @@ AddFilesDialog::Mode AddFilesDialog::mode( )
void AddFilesDialog::storePreferred( int index ) void AddFilesDialog::storePreferred( int index )
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("Add Files Dialog"); config->setGroup("Add Files Dialog");
config->writeEntry("Mode", index); config->writeEntry("Mode", index);
} }

@ -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 = TDEGlobal::config(); TDEConfig *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 = TDEGlobal::config(); /* TDEConfig *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 = TDEGlobal::config(); TDEConfig *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)

@ -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 = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Pascal Compiler"); config->setGroup("Pascal Compiler");
return config->readPathEntry(compiler); return config->readPathEntry(compiler);
} }

@ -260,7 +260,7 @@ TQString TrollProjectPart::makeEnvironment()
environstr += TQString( "QTDIR=" ) + EnvVarTools::quote( DomUtil::readEntry(*projectDom(), "/kdevcppsupport/qt/root", "") ) + TQString( " PATH=$TQTDIR/bin:$PATH " ); environstr += TQString( "QTDIR=" ) + EnvVarTools::quote( DomUtil::readEntry(*projectDom(), "/kdevcppsupport/qt/root", "") ) + TQString( " PATH=$TQTDIR/bin:$PATH " );
} }
KConfigGroup grp( kapp->config(), "MakeOutputView" ); TDEConfigGroup grp( kapp->config(), "MakeOutputView" );
if( grp.readBoolEntry( "ForceCLocale", true ) ) if( grp.readBoolEntry( "ForceCLocale", true ) )
environstr += "LC_MESSAGES="+EnvVarTools::quote("C")+" "+" "+"LC_CTYPE="+EnvVarTools::quote("C")+" "; environstr += "LC_MESSAGES="+EnvVarTools::quote("C")+" "+" "+"LC_CTYPE="+EnvVarTools::quote("C")+" ";

@ -1287,7 +1287,7 @@ void TrollProjectWidget::slotAddFiles()
// Copy selected files to current subproject folder // Copy selected files to current subproject folder
// and add them to the filelist // and add them to the filelist
TQString filename = KURL( files[ i ] ).fileName(); TQString filename = KURL( files[ i ] ).fileName();
KIO::NetAccess::file_copy( files[ i ], cleanSubprojectDir + TQString( TQChar( TQDir::separator() ) ) + filename, -1, false, false, this ); TDEIO::NetAccess::file_copy( files[ i ], cleanSubprojectDir + TQString( TQChar( TQDir::separator() ) ) + filename, -1, false, false, this );
TQFile testExist( cleanSubprojectDir + TQString( TQChar( TQDir::separator() ) ) + filename ); TQFile testExist( cleanSubprojectDir + TQString( TQChar( TQDir::separator() ) ) + filename );
if ( testExist.exists() ) if ( testExist.exists() )
@ -1631,7 +1631,7 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, TQListViewItem *it
// Copy selected files to current subproject folder // Copy selected files to current subproject folder
// and add them to the filelist // and add them to the filelist
TQString filename = KURL( files[ i ] ).fileName(); TQString filename = KURL( files[ i ] ).fileName();
KIO::NetAccess::file_copy( files[ i ], cleanSubprojectPath + TQString( TQChar( TQDir::separator() ) ) + filename, -1, false, false, this ); TDEIO::NetAccess::file_copy( files[ i ], cleanSubprojectPath + TQString( TQChar( TQDir::separator() ) ) + filename, -1, false, false, this );
TQFile testExist( cleanSubprojectPath + TQString( TQChar( TQDir::separator() ) ) + filename ); TQFile testExist( cleanSubprojectPath + TQString( TQChar( TQDir::separator() ) ) + filename );
if ( testExist.exists() ) if ( testExist.exists() )
@ -1943,7 +1943,7 @@ void TrollProjectWidget::removeFile( QMakeScopeItem *spitem, FileItem *fitem )
}else }else
{ {
kdDebug(9024) << "Deleting file as the user wished: " << spitem->scope->projectDir() + TQString( TQChar( TQDir::separator() ) ) + realfilename << endl; kdDebug(9024) << "Deleting file as the user wished: " << spitem->scope->projectDir() + TQString( TQChar( TQDir::separator() ) ) + realfilename << endl;
KIO::NetAccess::del( KURL::fromPathOrURL( spitem->scope->projectDir() + TQString( TQChar( TQDir::separator() ) ) + realfilename ), 0 ); TDEIO::NetAccess::del( KURL::fromPathOrURL( spitem->scope->projectDir() + TQString( TQChar( TQDir::separator() ) ) + realfilename ), 0 );
} }
if ( gitem->groupType != GroupItem::InstallObject ) if ( gitem->groupType != GroupItem::InstallObject )

@ -195,7 +195,7 @@ void GDBBreakpointWidget::savePartialProjectSession(QDomElement* el)
</pre></code> </pre></code>
Note that the .kdevses is related to a project. User settings equal for all projects don't Note that the .kdevses is related to a project. User settings equal for all projects don't
belong to here. You save them to ~/.trinity/share/config/tdeveloprc via class KConfig of the belong to here. You save them to ~/.trinity/share/config/tdeveloprc via class TDEConfig of the
tdecore library. tdecore library.
Document your part in the way described at \ref howToDocument (doc/api/HowToDocument.dox file). Document your part in the way described at \ref howToDocument (doc/api/HowToDocument.dox file).

@ -143,7 +143,7 @@ database, global settings and application resources.
<itemizedlist> <itemizedlist>
<listitem><formalpara><title><ulink url="kdeapi:tdecore/KConfig">KConfig</ulink></title> <listitem><formalpara><title><ulink url="kdeapi:tdecore/TDEConfig">TDEConfig</ulink></title>
<para> <para>
Provides access to KDE's configuration database. Provides access to KDE's configuration database.
</para> </para>
@ -2385,7 +2385,7 @@ contents of a local file. For remote files, there is a further possibility:
<programlisting> <programlisting>
KURL url("http://developer.kde.org/favicon.ico"); KURL url("http://developer.kde.org/favicon.ico");
QString type = KIO::NetAccess::mimetype(url); QString type = TDEIO::NetAccess::mimetype(url);
if (type == KMimeType::defaultMimeType()) if (type == KMimeType::defaultMimeType())
cout &lt;&lt; "Could not find out type" &lt;&lt; endl; cout &lt;&lt; "Could not find out type" &lt;&lt; endl;
else else
@ -2408,17 +2408,17 @@ explicitly start the KIO job and connect to some of its signals:
void FooClass::findType() void FooClass::findType()
{ {
KURL url("http://developer.kde.org/favicon.ico"); KURL url("http://developer.kde.org/favicon.ico");
KIO::MimetypeJob *job = KIO::mimetype(url); TDEIO::MimetypeJob *job = TDEIO::mimetype(url);
connect( job, SIGNAL(result(KIO::Job*)), connect( job, SIGNAL(result(TDEIO::Job*)),
this, SLOT(mimeResult(KIO::Job*)) ); this, SLOT(mimeResult(TDEIO::Job*)) );
} }
void FooClass::mimeResult(KIO::Job *job) void FooClass::mimeResult(TDEIO::Job *job)
{ {
if (job->error()) if (job->error())
job->showErrorDialog(); job->showErrorDialog();
else else
cout &lt;&lt; "MIME type: " &lt;&lt; ((KIO::MimetypeJob *)job)->mimetype() &lt;&lt; endl; cout &lt;&lt; "MIME type: " &lt;&lt; ((TDEIO::MimetypeJob *)job)->mimetype() &lt;&lt; endl;
} }
</programlisting> </programlisting>
@ -2595,19 +2595,19 @@ http://www-com.physik.hu-berlin.de/~bernd/article.tgz#tar:/paper.tex
In most cases, jobs are created by calling functions in the KIO namespace. In most cases, jobs are created by calling functions in the KIO namespace.
These functions take one or two URLs as arguments, and possible other These functions take one or two URLs as arguments, and possible other
necessary parameters. When the job is finished, it emits the signal necessary parameters. When the job is finished, it emits the signal
<literal>result(KIO::Job*)</literal>. After this signal has been emitted, the job <literal>result(TDEIO::Job*)</literal>. After this signal has been emitted, the job
deletes itself. Thus, a typical use case will look like this: deletes itself. Thus, a typical use case will look like this:
</para> </para>
<programlisting> <programlisting>
void FooClass::makeDirectory() void FooClass::makeDirectory()
{ {
SimpleJob *job = KIO::mkdir(KURL("file:/home/bernd/kiodir")); SimpleJob *job = TDEIO::mkdir(KURL("file:/home/bernd/kiodir"));
connect( job, SIGNAL(result(KIO::Job*)), connect( job, SIGNAL(result(TDEIO::Job*)),
this, SLOT(mkdirResult(KIO::Job*)) ); this, SLOT(mkdirResult(TDEIO::Job*)) );
} }
void FooClass::mkdirResult(KIO::Job *job) void FooClass::mkdirResult(TDEIO::Job *job)
{ {
if (job->error()) if (job->error())
job->showErrorDialog(); job->showErrorDialog();
@ -2627,118 +2627,118 @@ Here is an overview over the possible functions:
<variablelist> <variablelist>
<varlistentry><term>KIO::mkdir(const KURL &amp;url, int permission)</term> <varlistentry><term>TDEIO::mkdir(const KURL &amp;url, int permission)</term>
<listitem><para> <listitem><para>
Creates a directory, optionally with certain permissions. Creates a directory, optionally with certain permissions.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::rmdir(const KURL &amp;url)</term> <varlistentry><term>TDEIO::rmdir(const KURL &amp;url)</term>
<listitem><para> <listitem><para>
Removes a directory. Removes a directory.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::chmod(const KURL &amp;url, int permissions)</term> <varlistentry><term>TDEIO::chmod(const KURL &amp;url, int permissions)</term>
<listitem><para> <listitem><para>
Changes the permissions of a file. Changes the permissions of a file.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::rename(const KURL &amp;src, const KURL &amp;dest, <varlistentry><term>TDEIO::rename(const KURL &amp;src, const KURL &amp;dest,
bool overwrite)</term> bool overwrite)</term>
<listitem><para> <listitem><para>
Renames a file. Renames a file.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::symlink(const QString &amp;target, const KURL &amp;dest, <varlistentry><term>TDEIO::symlink(const QString &amp;target, const KURL &amp;dest,
bool overwrite, bool showProgressInfo)</term> bool overwrite, bool showProgressInfo)</term>
<listitem><para> <listitem><para>
Creates a symbolic link. Creates a symbolic link.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::stat(const KURL &amp;url, bool showProgressInfo)</term> <varlistentry><term>TDEIO::stat(const KURL &amp;url, bool showProgressInfo)</term>
<listitem><para> <listitem><para>
Finds out certain information about the file, such as size, modification Finds out certain information about the file, such as size, modification
time and permissions. The information can be obtained from time and permissions. The information can be obtained from
KIO::StatJob::statResult() after the job has finished. TDEIO::StatJob::statResult() after the job has finished.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::get(const KURL &amp;url, bool reload, bool showProgressInfo)</term> <varlistentry><term>TDEIO::get(const KURL &amp;url, bool reload, bool showProgressInfo)</term>
<listitem><para> <listitem><para>
Transfers data from a URL. Transfers data from a URL.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::put(const KURL &amp;url, int permissions, bool overwrite, <varlistentry><term>TDEIO::put(const KURL &amp;url, int permissions, bool overwrite,
bool resume, bool showProgressInfo)</term> bool resume, bool showProgressInfo)</term>
<listitem><para> <listitem><para>
Transfers data to a URL. Transfers data to a URL.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::http_post(const KURL &amp;url, const QByteArray &amp;data, <varlistentry><term>TDEIO::http_post(const KURL &amp;url, const QByteArray &amp;data,
bool showProgressInfo)</term> bool showProgressInfo)</term>
<listitem><para>Posts data. Special for HTTP. <listitem><para>Posts data. Special for HTTP.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::mimetype(const KURL &amp;url, bool showProgressInfo)</term> <varlistentry><term>TDEIO::mimetype(const KURL &amp;url, bool showProgressInfo)</term>
<listitem><para> <listitem><para>
Tries to find the MIME type of the URL. The type can be obtained from Tries to find the MIME type of the URL. The type can be obtained from
KIO::MimetypeJob::mimetype() after the job has finished. TDEIO::MimetypeJob::mimetype() after the job has finished.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::file_copy(const KURL &amp;src, const KURL &amp;dest, int permissions, <varlistentry><term>TDEIO::file_copy(const KURL &amp;src, const KURL &amp;dest, int permissions,
bool overwrite, bool resume, bool showProgressInfo)</term> bool overwrite, bool resume, bool showProgressInfo)</term>
<listitem><para> <listitem><para>
Copies a single file. Copies a single file.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::file_move(const KURL &amp;src, const KURL &amp;dest, int permissions, <varlistentry><term>TDEIO::file_move(const KURL &amp;src, const KURL &amp;dest, int permissions,
bool overwrite, bool resume, bool showProgressInfo)</term> bool overwrite, bool resume, bool showProgressInfo)</term>
<listitem><para> <listitem><para>
Renames or moves a single file. Renames or moves a single file.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::file_delete(const KURL &amp;url, bool showProgressInfo)</term> <varlistentry><term>TDEIO::file_delete(const KURL &amp;url, bool showProgressInfo)</term>
<listitem><para> <listitem><para>
Deletes a single file. Deletes a single file.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::listDir(const KURL &amp;url, bool showProgressInfo)</term> <varlistentry><term>TDEIO::listDir(const KURL &amp;url, bool showProgressInfo)</term>
<listitem><para> <listitem><para>
Lists the contents of a directory. Each time some new entries are known, the Lists the contents of a directory. Each time some new entries are known, the
signal KIO::ListJob::entries() is emitted. signal TDEIO::ListJob::entries() is emitted.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::listRecursive(const KURL &amp;url, bool showProgressInfo)</term> <varlistentry><term>TDEIO::listRecursive(const KURL &amp;url, bool showProgressInfo)</term>
<listitem><para> <listitem><para>
Similar to the listDir() function, but this one is recursive. Similar to the listDir() function, but this one is recursive.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::copy(const KURL &amp;src, const KURL &amp;dest, bool showProgressInfo)</term> <varlistentry><term>TDEIO::copy(const KURL &amp;src, const KURL &amp;dest, bool showProgressInfo)</term>
<listitem><para> <listitem><para>
Copies a file or directory. Directories are copied recursively. Copies a file or directory. Directories are copied recursively.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::move(const KURL &amp;src, const KURL &amp;dest, bool showProgressInfo)</term> <varlistentry><term>TDEIO::move(const KURL &amp;src, const KURL &amp;dest, bool showProgressInfo)</term>
<listitem><para> <listitem><para>
Moves or renames a file or directory. Moves or renames a file or directory.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry><term>KIO::del(const KURL &amp;src, bool shred, bool showProgressInfo)</term> <varlistentry><term>TDEIO::del(const KURL &amp;src, bool shred, bool showProgressInfo)</term>
<listitem><para> <listitem><para>
Deletes a file or directory. Deletes a file or directory.
</para></listitem> </para></listitem>
@ -2753,7 +2753,7 @@ Deletes a file or directory.
<title>Directory entries</title> <title>Directory entries</title>
<para> <para>
Both the KIO::stat() and KIO::listDir() jobs return their results as a type Both the TDEIO::stat() and TDEIO::listDir() jobs return their results as a type
UDSEntry, UDSEntryList resp. The latter is defined as QValueList&lt;UDSEntry&gt;. UDSEntry, UDSEntryList resp. The latter is defined as QValueList&lt;UDSEntry&gt;.
The acronym UDS stands for "Universal directory service". The principle behind The acronym UDS stands for "Universal directory service". The principle behind
it is that the a directory entry only carries the information which an ioslave it is that the a directory entry only carries the information which an ioslave
@ -2860,14 +2860,14 @@ implementing full asynchronicity is not a priority. For example, in a program
that can only handle one document file at a time, there is little that can be that can only handle one document file at a time, there is little that can be
done while the program is downloading a file anyway. For these simple cases, done while the program is downloading a file anyway. For these simple cases,
there is a mucher simpler API in the form of a set of static functions in there is a mucher simpler API in the form of a set of static functions in
KIO::NetAccess. For example, in order to copy a file, use TDEIO::NetAccess. For example, in order to copy a file, use
</para> </para>
<programlisting> <programlisting>
KURL source, target; KURL source, target;
source = ...; source = ...;
target = ... target = ...
KIO::NetAccess::copy(source, target); TDEIO::NetAccess::copy(source, target);
</programlisting> </programlisting>
<para> <para>
@ -2893,9 +2893,9 @@ files regardless of their location is the following code snippet:
KURL url; KURL url;
url = ...; url = ...;
QString tempFile; QString tempFile;
if (KIO::NetAccess::download(url, tempFile) { if (TDEIO::NetAccess::download(url, tempFile) {
// load the file with the name tempFile // load the file with the name tempFile
KIO::NetAccess::removeTempFile(tempFile); TDEIO::NetAccess::removeTempFile(tempFile);
} }
</programlisting> </programlisting>
@ -2921,7 +2921,7 @@ cache, you can use:
void FooClass::reloadPage() void FooClass::reloadPage()
{ {
KURL url("http://www.kdevelop.org/index.html"); KURL url("http://www.kdevelop.org/index.html");
KIO::TransferJob *job = KIO::get(url, true, false); TDEIO::TransferJob *job = TDEIO::get(url, true, false);
job->addMetaData("cache", "reload"); job->addMetaData("cache", "reload");
... ...
} }
@ -2941,18 +2941,18 @@ is the following:
void FooClass::printModifiedDate() void FooClass::printModifiedDate()
{ {
KURL url("http://developer.kde.org/documentation/kde2arch/index.html"); KURL url("http://developer.kde.org/documentation/kde2arch/index.html");
KIO::TransferJob *job = KIO::get(url, true, false); TDEIO::TransferJob *job = TDEIO::get(url, true, false);
connect( job, SIGNAL(result(KIO::Job*)), connect( job, SIGNAL(result(TDEIO::Job*)),
this, SLOT(transferResult(KIO::Job*)) ); this, SLOT(transferResult(TDEIO::Job*)) );
} }
void FooClass::transferResult(KIO::Job *job) void FooClass::transferResult(TDEIO::Job *job)
{ {
QString mimetype; QString mimetype;
if (job->error()) if (job->error())
job->showErrorDialog(); job->showErrorDialog();
else { else {
KIO::TransferJob *transferJob = (KIO::TransferJob*) job; TDEIO::TransferJob *transferJob = (TDEIO::TransferJob*) job;
QString modified = transferJob->queryMetaData("modified"); QString modified = transferJob->queryMetaData("modified");
cout &lt;&lt; "Last modified: " &lt;&lt; modified &lt;&lt; endl; cout &lt;&lt; "Last modified: " &lt;&lt; modified &lt;&lt; endl;
} }
@ -3004,8 +3004,8 @@ follows:
<programlisting> <programlisting>
KURL url("http://developer.kde.org/documentation/kde2arch/index.html"); KURL url("http://developer.kde.org/documentation/kde2arch/index.html");
KIO::TransferJob *job = KIO::get(url, true, false); TDEIO::TransferJob *job = TDEIO::get(url, true, false);
KIO::Scheduler::scheduleJob(job); TDEIO::Scheduler::scheduleJob(job);
</programlisting> </programlisting>
<para> <para>
@ -3015,22 +3015,22 @@ the same server. Only one IMAP connection at a time should be enforced. In
this case, the application must explicitly deal with the notion of a slave. It this case, the application must explicitly deal with the notion of a slave. It
has to deallocate a slave for a certain connection and then assign all jobs has to deallocate a slave for a certain connection and then assign all jobs
which should go through the same connection to the same slave. This can again which should go through the same connection to the same slave. This can again
be easily achieved by using the KIO::Scheduler: be easily achieved by using the TDEIO::Scheduler:
</para> </para>
<programlisting> <programlisting>
KURL baseUrl("imap://bernd@albert.physik.hu-berlin.de"); KURL baseUrl("imap://bernd@albert.physik.hu-berlin.de");
KIO::Slave *slave = KIO::Scheduler::getConnectedSlave(baseUrl); TDEIO::Slave *slave = TDEIO::Scheduler::getConnectedSlave(baseUrl);
KIO::TransferJob *job1 = KIO::get(KURL(baseUrl, "/INBOX;UID=79374")); TDEIO::TransferJob *job1 = TDEIO::get(KURL(baseUrl, "/INBOX;UID=79374"));
KIO::Scheduler::assignJobToSlave(slave, job1); TDEIO::Scheduler::assignJobToSlave(slave, job1);
KIO::TransferJob *job2 = KIO::get(KURL(baseUrl, "/INBOX;UID=86793")); TDEIO::TransferJob *job2 = TDEIO::get(KURL(baseUrl, "/INBOX;UID=86793"));
KIO::Scheduler::assignJobToSlave(slave, job2); TDEIO::Scheduler::assignJobToSlave(slave, job2);
... ...
KIO::Scheduler::disconnectSlave(slave); TDEIO::Scheduler::disconnectSlave(slave);
</programlisting> </programlisting>
<para> <para>
@ -3142,10 +3142,10 @@ int kdemain(int argc, char **argv)
<title>Implementing an ioslave</title> <title>Implementing an ioslave</title>
<para> <para>
Slaves are implemented as subclasses of <classname>KIO::SlaveBase</classname> Slaves are implemented as subclasses of <classname>TDEIO::SlaveBase</classname>
(FtpSlave in the above example). Thus, the actions listed in the (FtpSlave in the above example). Thus, the actions listed in the
<literal>.protocol</literal> correspond to certain virtual functions in <literal>.protocol</literal> correspond to certain virtual functions in
<classname>KIO::SlaveBase</classname> the slave implementation must <classname>TDEIO::SlaveBase</classname> the slave implementation must
reimplement. Here is a list of possible actions and the corresponding virtual reimplement. Here is a list of possible actions and the corresponding virtual
functions: functions:
</para> </para>
@ -3202,8 +3202,8 @@ All these implementation should end with one of two calls: If the operation
was successful, they should call <literal>finished()</literal>. If an error has occurred, was successful, they should call <literal>finished()</literal>. If an error has occurred,
<literal>error()</literal> should be called with an error code as first argument and a <literal>error()</literal> should be called with an error code as first argument and a
string in the second. Possible error codes are listed as enum string in the second. Possible error codes are listed as enum
<type>KIO::Error</type>. The second argument is usually the URL in <type>TDEIO::Error</type>. The second argument is usually the URL in
question. It is used e.g. in <function>KIO::Job::showErrorDialog()</function> question. It is used e.g. in <function>TDEIO::Job::showErrorDialog()</function>
in order to parameterize the human-readable error message. in order to parameterize the human-readable error message.
</para> </para>
@ -3242,7 +3242,7 @@ the transfer is finished.
<listitem><para> <listitem><para>
<function>listDir()</function> reports information about the entries of a <function>listDir()</function> reports information about the entries of a
directory. For this purpose, call <function>listEntries()</function> with a directory. For this purpose, call <function>listEntries()</function> with a
<classname>KIO::UDSEntryList</classname> as argument. Analogously to <classname>TDEIO::UDSEntryList</classname> as argument. Analogously to
<function>data()</function>, you can call this several times. When you are <function>data()</function>, you can call this several times. When you are
finished, call <function>listEntry()</function> with the second argument set finished, call <function>listEntry()</function> with the second argument set
to true. You may also call <function>totalSize()</function> to report the to true. You may also call <function>totalSize()</function> to report the
@ -3252,7 +3252,7 @@ total number of directory entries, if known.
<listitem><para> <listitem><para>
<function>stat()</function> reports information about a file like size, MIME <function>stat()</function> reports information about a file like size, MIME
type, etc. Such information is packaged in a type, etc. Such information is packaged in a
<classname>KIO::UDSEntry</classname>, which will be discussed below. Use <classname>TDEIO::UDSEntry</classname>, which will be discussed below. Use
<function>statEntry()</function> to send such an item to the application. <function>statEntry()</function> to send such an item to the application.
</para></listitem> </para></listitem>
@ -3295,7 +3295,7 @@ to be overwritten.
as the message "Retrieving data from &lt;host&gt;" from the http slave, which as the message "Retrieving data from &lt;host&gt;" from the http slave, which
is often displayed in the status bar of the program. On the application side, is often displayed in the status bar of the program. On the application side,
this method corresponds to the signal this method corresponds to the signal
<function>KIO::Job::infoMessage()</function>. <function>TDEIO::Job::infoMessage()</function>.
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>

@ -41,7 +41,7 @@ void EditorChooserWidget::load()
EditorPart->clear(); EditorPart->clear();
// find the editor to use // find the editor to use
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("Editor"); config->setGroup("Editor");
TQString editor = config->readPathEntry("EmbeddedKTextEditor"); TQString editor = config->readPathEntry("EmbeddedKTextEditor");
@ -78,7 +78,7 @@ void EditorChooserWidget::load()
void EditorChooserWidget::save() void EditorChooserWidget::save()
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("Editor"); config->setGroup("Editor");
KTrader::OfferList::Iterator it; KTrader::OfferList::Iterator it;

@ -111,14 +111,14 @@ void KDevDesigner::setupActions()
KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureToolbars()), actionCollection()); KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureToolbars()), actionCollection());
} }
void KDevDesigner::saveProperties(KConfig* /*config*/) void KDevDesigner::saveProperties(TDEConfig* /*config*/)
{ {
// the 'config' object points to the session managed // the 'config' object points to the session managed
// config file. anything you write here will be available // config file. anything you write here will be available
// later when this app is restored // later when this app is restored
} }
void KDevDesigner::readProperties(KConfig* /*config*/) void KDevDesigner::readProperties(TDEConfig* /*config*/)
{ {
// the 'config' object points to the session managed // the 'config' object points to the session managed
// config file. this function is automatically called whenever // config file. this function is automatically called whenever

@ -64,14 +64,14 @@ protected:
* This method is called when it is time for the app to save its * This method is called when it is time for the app to save its
* properties for session management purposes. * properties for session management purposes.
*/ */
void saveProperties(KConfig *); void saveProperties(TDEConfig *);
/** /**
* This method is called when this app is restored. The KConfig * This method is called when this app is restored. The TDEConfig
* object points to the session management config file that was saved * object points to the session management config file that was saved
* with @ref saveProperties * with @ref saveProperties
*/ */
void readProperties(KConfig *); void readProperties(TDEConfig *);
private slots: private slots:
void fileNew(); void fileNew();

@ -11,7 +11,7 @@
void ConfigureProblemReporter::init() void ConfigureProblemReporter::init()
{ {
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup( "General Options" ); config->setGroup( "General Options" );
bgParserCheckbox->setChecked( config->readBoolEntry("EnableAdaBgParser", true) ); bgParserCheckbox->setChecked( config->readBoolEntry("EnableAdaBgParser", true) );
delaySlider->setEnabled( bgParserCheckbox->isChecked() ); delaySlider->setEnabled( bgParserCheckbox->isChecked() );
@ -24,7 +24,7 @@ void ConfigureProblemReporter::destroy()
void ConfigureProblemReporter::accept() void ConfigureProblemReporter::accept()
{ {
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup( "General Options" ); config->setGroup( "General Options" );
config->writeEntry( "EnableAdaBgParser", bgParserCheckbox->isChecked() ); config->writeEntry( "EnableAdaBgParser", bgParserCheckbox->isChecked() );
if( bgParserCheckbox->isChecked() ) if( bgParserCheckbox->isChecked() )

@ -244,7 +244,7 @@ void ProblemReporter::reportMessage( TQString message,
void ProblemReporter::configure() void ProblemReporter::configure()
{ {
kdDebug() << "ProblemReporter::configure()" << endl; kdDebug() << "ProblemReporter::configure()" << endl;
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup( "General Options" ); config->setGroup( "General Options" );
m_active = config->readBoolEntry( "EnableAdaBgParser", TRUE ); m_active = config->readBoolEntry( "EnableAdaBgParser", TRUE );
m_delay = config->readNumEntry( "BgParserDelay", 500 ); m_delay = config->readNumEntry( "BgParserDelay", 500 );

@ -42,7 +42,7 @@ For more details, consult :
http://devel-home.kde.org/~larrosa/tutorial/p9.html http://devel-home.kde.org/~larrosa/tutorial/p9.html
http://developer.kde.org/documentation/tutorials/xmlui/preface.html http://developer.kde.org/documentation/tutorials/xmlui/preface.html
* Use KConfig XT to create your configuration dialogs and make * Use TDEConfig XT to create your configuration dialogs and make
them more maintainable. them more maintainable.
For more details, consult : For more details, consult :

@ -69,7 +69,7 @@ void %{APPNAME}::load(const KURL& url)
#if 0 #if 0
// download the contents // download the contents
if (KIO::NetAccess::download(url, target)) if (TDEIO::NetAccess::download(url, target))
{ {
// set our caption // set our caption
setCaption(url); setCaption(url);
@ -78,7 +78,7 @@ void %{APPNAME}::load(const KURL& url)
loadFile(target); loadFile(target);
// and remove the temp file // and remove the temp file
KIO::NetAccess::removeTempFile(target); TDEIO::NetAccess::removeTempFile(target);
} }
#endif #endif
@ -104,7 +104,7 @@ void %{APPNAME}::setupActions()
actionCollection(), "custom_action"); actionCollection(), "custom_action");
} }
void %{APPNAME}::saveProperties(KConfig *config) void %{APPNAME}::saveProperties(TDEConfig *config)
{ {
// the 'config' object points to the session managed // the 'config' object points to the session managed
// config file. anything you write here will be available // config file. anything you write here will be available
@ -119,7 +119,7 @@ void %{APPNAME}::saveProperties(KConfig *config)
} }
} }
void %{APPNAME}::readProperties(KConfig *config) void %{APPNAME}::readProperties(TDEConfig *config)
{ {
// the 'config' object points to the session managed // the 'config' object points to the session managed
// config file. this function is automatically called whenever // config file. this function is automatically called whenever

@ -55,14 +55,14 @@ protected:
* This function is called when it is time for the app to save its * This function is called when it is time for the app to save its
* properties for session management purposes. * properties for session management purposes.
*/ */
void saveProperties(KConfig *); void saveProperties(TDEConfig *);
/** /**
* This function is called when this app is restored. The KConfig * This function is called when this app is restored. The TDEConfig
* object points to the session management config file that was saved * object points to the session management config file that was saved
* with @ref saveProperties * with @ref saveProperties
*/ */
void readProperties(KConfig *); void readProperties(TDEConfig *);
private slots: private slots:

@ -12,7 +12,7 @@ typedef KGenericFactory<%{APPNAME}, TQWidget> %{APPNAME}Factory;
K_EXPORT_COMPONENT_FACTORY( kcm_%{APPNAME}, %{APPNAME}Factory("kcm%{APPNAMELC}")) K_EXPORT_COMPONENT_FACTORY( kcm_%{APPNAME}, %{APPNAME}Factory("kcm%{APPNAMELC}"))
%{APPNAME}::%{APPNAME}(TQWidget *parent, const char *name, const TQStringList&) %{APPNAME}::%{APPNAME}(TQWidget *parent, const char *name, const TQStringList&)
: KCModule(parent, name), myAboutData(0) : TDECModule(parent, name), myAboutData(0)
{ {
// place widgets here // place widgets here
load(); load();
@ -46,7 +46,7 @@ void %{APPNAME}::save()
int %{APPNAME}::buttons() int %{APPNAME}::buttons()
{ {
return KCModule::Default|KCModule::Apply|KCModule::Help; return TDECModule::Default|TDECModule::Apply|TDECModule::Help;
} }

@ -6,7 +6,7 @@
#include <kcmodule.h> #include <kcmodule.h>
#include <kaboutdata.h> #include <kaboutdata.h>
class %{APPNAME}: public KCModule class %{APPNAME}: public TDECModule
{ {
Q_OBJECT Q_OBJECT

@ -46,7 +46,7 @@ For more details, consult :
http://devel-home.kde.org/~larrosa/tutorial/p9.html http://devel-home.kde.org/~larrosa/tutorial/p9.html
http://developer.kde.org/documentation/tutorials/xmlui/preface.html http://developer.kde.org/documentation/tutorials/xmlui/preface.html
* Use KConfig XT to create your configuration dialogs and make * Use TDEConfig XT to create your configuration dialogs and make
them more maintainable. them more maintainable.
For that, you will need to write two simple configuration files For that, you will need to write two simple configuration files

@ -73,7 +73,7 @@ void %{APPNAMELC}::optionsPreferences()
// //
// compare the names of the widgets in the .ui file // compare the names of the widgets in the .ui file
// to the names of the variables in the .kcfg file // to the names of the variables in the .kcfg file
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow); TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow);
dialog->addPage(new Prefs(), i18n("General"), "package_settings"); dialog->addPage(new Prefs(), i18n("General"), "package_settings");
connect(dialog, TQT_SIGNAL(settingsChanged()), m_view, TQT_SLOT(settingsChanged())); connect(dialog, TQT_SIGNAL(settingsChanged()), m_view, TQT_SLOT(settingsChanged()));
dialog->show(); dialog->show();

@ -1,26 +1,26 @@
# TDE Config File # TDE Config File
[General] [General]
Name=KConfig XT for TDE 3.5 Name=TDEConfig XT for TDE 3.5
Name[ca]=KConfig XT per a TDE 3.5 Name[ca]=TDEConfig XT per a TDE 3.5
Name[de]=KConfigXT-Anwendung für TDE 3.5 Name[de]=TDEConfigXT-Anwendung für TDE 3.5
Name[el]=Εφαρμογή KConfig XT για το TDE 3.5 Name[el]=Εφαρμογή TDEConfig XT για το TDE 3.5
Name[es]=KConfig XT para TDE 3.5 Name[es]=TDEConfig XT para TDE 3.5
Name[et]=KConfig XT TDE 3.5 jaoks Name[et]=TDEConfig XT TDE 3.5 jaoks
Name[fr]=Application KConfig XT pour TDE 3.5 Name[fr]=Application TDEConfig XT pour TDE 3.5
Name[hu]=KConfig XT a TDE 3.5-höz Name[hu]=TDEConfig XT a TDE 3.5-höz
Name[it]=KConfig XT per TDE 3.5 Name[it]=TDEConfig XT per TDE 3.5
Name[ja]=TDE 3.5 用 KConfig XT Name[ja]=TDE 3.5 用 TDEConfig XT
Name[nds]=KConfig-XT-Programm för TDE 3.5 Name[nds]=TDEConfig-XT-Programm för TDE 3.5
Name[nl]=KConfig XT voor TDE 3.5 Name[nl]=TDEConfig XT voor TDE 3.5
Name[pl]=Program KConfig XT dla TDE 3.5 Name[pl]=Program TDEConfig XT dla TDE 3.5
Name[pt]=Aplicação do KConfig XT para o TDE 3.5 Name[pt]=Aplicação do TDEConfig XT para o TDE 3.5
Name[pt_BR]=Aplicação do KConfig XT para o TDE 3.5 Name[pt_BR]=Aplicação do TDEConfig XT para o TDE 3.5
Name[ru]=Приложение TDE 3.5 с KConfig XT Name[ru]=Приложение TDE 3.5 с TDEConfig XT
Name[sk]=KConfig XT pre TDE 3.5 Name[sk]=TDEConfig XT pre TDE 3.5
Name[sr]=KConfig XT програм за TDE 3.5 Name[sr]=TDEConfig XT програм за TDE 3.5
Name[sr@Latn]=KConfig XT program za TDE 3.5 Name[sr@Latn]=TDEConfig XT program za TDE 3.5
Name[sv]=KConfig XT för TDE 3.5 Name[sv]=TDEConfig XT för TDE 3.5
Name[zh_TW]=TDE 3.5 的 KConfig XT 應用程式 Name[zh_TW]=TDE 3.5 的 TDEConfig XT 應用程式
Category=C++/TDE Category=C++/TDE
Icon=kxt.png Icon=kxt.png
Comment=Generates a simple TDE application with one widget and a configuration dialog compatible with TDE 3.5 only Comment=Generates a simple TDE application with one widget and a configuration dialog compatible with TDE 3.5 only
@ -221,25 +221,25 @@ Dest=%{dest}/configure.in.in
[MSG] [MSG]
Type=message Type=message
Comment=A TDE 3.5 KConfig XT application was created in %{dest} Comment=A TDE 3.5 TDEConfig XT application was created in %{dest}
Comment[ca]=Una aplicació KConfig XT per al TDE ha estat creada en %{dest} Comment[ca]=Una aplicació TDEConfig XT per al TDE ha estat creada en %{dest}
Comment[da]=Et TDE 3.5 KConfig XT-program blev oprettet i %{dest} Comment[da]=Et TDE 3.5 TDEConfig XT-program blev oprettet i %{dest}
Comment[de]=Eine KConfig-XT-Anwendung für TDE 3.5 wurde in %{dest} erstellt. Comment[de]=Eine TDEConfig-XT-Anwendung für TDE 3.5 wurde in %{dest} erstellt.
Comment[el]=Μια εφαρμογή KConfig XT του TDE 3.5 δημιουργήθηκε στο %{dest} Comment[el]=Μια εφαρμογή TDEConfig XT του TDE 3.5 δημιουργήθηκε στο %{dest}
Comment[es]=Una aplicación KConfig XT para TDE 3.5 ha sido creada en %{dest} Comment[es]=Una aplicación TDEConfig XT para TDE 3.5 ha sido creada en %{dest}
Comment[et]=TDE 3.5 KConfig XT rakendus loodi asukohta %{dest} Comment[et]=TDE 3.5 TDEConfig XT rakendus loodi asukohta %{dest}
Comment[fr]=Une application KConfig XT pour TDE 3.5 a été créée dans %{dest} Comment[fr]=Une application TDEConfig XT pour TDE 3.5 a été créée dans %{dest}
Comment[hu]=Létrejött egy KConfig XT-alapú TDE 3.5-alkalmazás itt: %{dest} Comment[hu]=Létrejött egy TDEConfig XT-alapú TDE 3.5-alkalmazás itt: %{dest}
Comment[it]=È stata creata un'applicazione KConfig XT per TDE 3.5 in %{dest} Comment[it]=È stata creata un'applicazione TDEConfig XT per TDE 3.5 in %{dest}
Comment[ja]=TDE 3.5 用 KConfig XT アプリケーションを %{dest} に作成しました Comment[ja]=TDE 3.5 用 TDEConfig XT アプリケーションを %{dest} に作成しました
Comment[nds]=In %{dest} wöör en KConfig-XT-Programm för TDE 3.5 opstellt Comment[nds]=In %{dest} wöör en TDEConfig-XT-Programm för TDE 3.5 opstellt
Comment[nl]=Een TDE 3.5 KConfig XT-toepassing is aangemaakt in %{dest} Comment[nl]=Een TDE 3.5 TDEConfig XT-toepassing is aangemaakt in %{dest}
Comment[pl]=Program KConfig XT dla TDE 3.5 został utworzony w %{dest} Comment[pl]=Program TDEConfig XT dla TDE 3.5 został utworzony w %{dest}
Comment[pt]=Foi criada uma aplicação do KConfig XT para o TDE 3.5 em %{dest} Comment[pt]=Foi criada uma aplicação do TDEConfig XT para o TDE 3.5 em %{dest}
Comment[pt_BR]=Foi criada uma aplicação do KConfig XT para o TDE 3.5 em %{dest} Comment[pt_BR]=Foi criada uma aplicação do TDEConfig XT para o TDE 3.5 em %{dest}
Comment[ru]=Приложение TDE с KConfig XT создано в %{dest} Comment[ru]=Приложение TDE с TDEConfig XT создано в %{dest}
Comment[sk]=KConfig XT pre TDE 3.5 bola vytvorená v %{dest} Comment[sk]=TDEConfig XT pre TDE 3.5 bola vytvorená v %{dest}
Comment[sr]=KConfig XT програм за TDE 3.5 направљен је у %{dest} Comment[sr]=TDEConfig XT програм за TDE 3.5 направљен је у %{dest}
Comment[sr@Latn]=KConfig XT program za TDE 3.5 napravljen je u %{dest} Comment[sr@Latn]=TDEConfig XT program za TDE 3.5 napravljen je u %{dest}
Comment[sv]=Ett TDE 3.5 KConfig XT-program skapades i %{dest} Comment[sv]=Ett TDE 3.5 TDEConfig XT-program skapades i %{dest}
Comment[zh_TW]=一個 TDE 3.5 上的 KConfig XT 應用程式已建立於 %{dest} Comment[zh_TW]=一個 TDE 3.5 上的 TDEConfig XT 應用程式已建立於 %{dest}

@ -75,10 +75,10 @@ void %{APPNAME}::optionsPreferences()
// compare the names of the widgets in the .ui file // compare the names of the widgets in the .ui file
// to the names of the variables in the .kcfg file // to the names of the variables in the .kcfg file
//avoid to have 2 dialogs shown //avoid to have 2 dialogs shown
if ( KConfigDialog::showDialog( "settings" ) ) { if ( TDEConfigDialog::showDialog( "settings" ) ) {
return; return;
} }
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self()); TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", Settings::self());
TQWidget *generalSettingsDlg = new TQWidget; TQWidget *generalSettingsDlg = new TQWidget;
ui_prefs_base.setupUi(generalSettingsDlg); ui_prefs_base.setupUi(generalSettingsDlg);
dialog->addPage(generalSettingsDlg, i18n("General"), "package_setting"); dialog->addPage(generalSettingsDlg, i18n("General"), "package_setting");

@ -101,7 +101,7 @@ protected:
void resizeEvent(TQResizeEvent *); void resizeEvent(TQResizeEvent *);
private: private:
KConfig *ksConfig; TDEConfig *ksConfig;
TQWidget *mainView; TQWidget *mainView;
}; };

@ -23,7 +23,7 @@
#include "%{APPNAMELC}.h" #include "%{APPNAMELC}.h"
using namespace KIO; using namespace TDEIO;
kio_%{APPNAMELC}Protocol::kio_%{APPNAMELC}Protocol(const TQCString &pool_socket, const TQCString &app_socket) kio_%{APPNAMELC}Protocol::kio_%{APPNAMELC}Protocol(const TQCString &pool_socket, const TQCString &app_socket)

@ -11,7 +11,7 @@
class TQCString; class TQCString;
class kio_%{APPNAMELC}Protocol : public KIO::SlaveBase class kio_%{APPNAMELC}Protocol : public TDEIO::SlaveBase
{ {
public: public:
kio_%{APPNAMELC}Protocol(const TQCString &pool_socket, const TQCString &app_socket); kio_%{APPNAMELC}Protocol(const TQCString &pool_socket, const TQCString &app_socket);

@ -88,14 +88,14 @@ void %{APPNAME}::setupActions()
KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection()); KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection());
} }
void %{APPNAME}::saveProperties(KConfig* /*config*/) void %{APPNAME}::saveProperties(TDEConfig* /*config*/)
{ {
// the 'config' object points to the session managed // the 'config' object points to the session managed
// config file. anything you write here will be available // config file. anything you write here will be available
// later when this app is restored // later when this app is restored
} }
void %{APPNAME}::readProperties(KConfig* /*config*/) void %{APPNAME}::readProperties(TDEConfig* /*config*/)
{ {
// the 'config' object points to the session managed // the 'config' object points to the session managed
// config file. this function is automatically called whenever // config file. this function is automatically called whenever

@ -44,14 +44,14 @@ protected:
* This method is called when it is time for the app to save its * This method is called when it is time for the app to save its
* properties for session management purposes. * properties for session management purposes.
*/ */
void saveProperties(KConfig *); void saveProperties(TDEConfig *);
/** /**
* This method is called when this app is restored. The KConfig * This method is called when this app is restored. The TDEConfig
* object points to the session management config file that was saved * object points to the session management config file that was saved
* with @ref saveProperties * with @ref saveProperties
*/ */
void readProperties(KConfig *); void readProperties(TDEConfig *);
private slots: private slots:
void fileNew(); void fileNew();

@ -67,7 +67,7 @@ For more details, consult :
http://devel-home.kde.org/~larrosa/tutorial/p9.html http://devel-home.kde.org/~larrosa/tutorial/p9.html
http://developer.kde.org/documentation/tutorials/xmlui/preface.html http://developer.kde.org/documentation/tutorials/xmlui/preface.html
* Use KConfig XT to create your configuration dialogs and make * Use TDEConfig XT to create your configuration dialogs and make
them more maintainable. them more maintainable.
For that, you will need to write two simple configuration files For that, you will need to write two simple configuration files

@ -103,7 +103,7 @@
setAutoSaveSettings(); setAutoSaveSettings();
// Read the dock config only if the app was started at least only once - kmdi is tricky // Read the dock config only if the app was started at least only once - kmdi is tricky
KConfig *cfg = new KConfig("%{APPNAMELC}_dockposrc"); TDEConfig *cfg = new TDEConfig("%{APPNAMELC}_dockposrc");
if (cfg->readNumEntry("%{APPNAMELC}_main_dock_settings", 0) == 1) manager()->readConfig(cfg); if (cfg->readNumEntry("%{APPNAMELC}_main_dock_settings", 0) == 1) manager()->readConfig(cfg);
cfg->writeEntry("%{APPNAMELC}_main_dock_settings", 1); cfg->writeEntry("%{APPNAMELC}_main_dock_settings", 1);
delete cfg; delete cfg;
@ -114,7 +114,7 @@
%{APPNAMELC}kmdi::~%{APPNAMELC}kmdi() %{APPNAMELC}kmdi::~%{APPNAMELC}kmdi()
{ {
// Write the dock config on exit // Write the dock config on exit
KConfig *cfg = new KConfig("%{APPNAMELC}_dockposrc"); TDEConfig *cfg = new TDEConfig("%{APPNAMELC}_dockposrc");
manager()->writeConfig(cfg); manager()->writeConfig(cfg);
delete cfg; delete cfg;
delete m_console; delete m_console;
@ -315,10 +315,10 @@ void %{APPNAMELC}kmdi::optionsPreferences()
// //
// compare the names of the widgets in the .ui file // compare the names of the widgets in the .ui file
// to the names of the variables in the .kcfg file // to the names of the variables in the .kcfg file
if (KConfigDialog::showDialog("settings")) if (TDEConfigDialog::showDialog("settings"))
return; return;
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow); TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow);
dialog->addPage(new prefs(), i18n("General"), "package_settings"); dialog->addPage(new prefs(), i18n("General"), "package_settings");
connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(settingsChanged())); connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(settingsChanged()));
dialog->show(); dialog->show();

@ -67,7 +67,7 @@ For more details, consult :
http://devel-home.kde.org/~larrosa/tutorial/p9.html http://devel-home.kde.org/~larrosa/tutorial/p9.html
http://developer.kde.org/documentation/tutorials/xmlui/preface.html http://developer.kde.org/documentation/tutorials/xmlui/preface.html
* Use KConfig XT to create your configuration dialogs and make * Use TDEConfig XT to create your configuration dialogs and make
them more maintainable. them more maintainable.
For that, you will need to write two simple configuration files For that, you will need to write two simple configuration files

@ -138,7 +138,7 @@ void %{APPNAME}::optionsPreferences()
// //
// compare the names of the widgets in the .ui file // compare the names of the widgets in the .ui file
// to the names of the variables in the .kcfg file // to the names of the variables in the .kcfg file
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow); TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow);
dialog->addPage(new Prefs(), i18n("General"), "package_settings"); dialog->addPage(new Prefs(), i18n("General"), "package_settings");
connect(dialog, TQT_SIGNAL(settingsChanged()), m_view, TQT_SLOT(settingsChanged())); connect(dialog, TQT_SIGNAL(settingsChanged()), m_view, TQT_SLOT(settingsChanged()));
dialog->show(); dialog->show();

@ -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 = TDEGlobal::config(); TDEConfig *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 = TDEGlobal::config(); TDEConfig *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 = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup( "Settings" ); config->setGroup( "Settings" );
/// @todo /// @todo
// Add your config options here... // Add your config options here...

@ -42,7 +42,7 @@ For more details, consult :
http://devel-home.kde.org/~larrosa/tutorial/p9.html http://devel-home.kde.org/~larrosa/tutorial/p9.html
http://developer.kde.org/documentation/tutorials/xmlui/preface.html http://developer.kde.org/documentation/tutorials/xmlui/preface.html
* Use KConfig XT to create your configuration dialogs and make * Use TDEConfig XT to create your configuration dialogs and make
them more maintainable. them more maintainable.
For that, you will need to write two simple configuration files For that, you will need to write two simple configuration files

@ -133,7 +133,7 @@ void %{APPNAMELC}::optionsPreferences()
// //
// compare the names of the widgets in the .ui file // compare the names of the widgets in the .ui file
// to the names of the variables in the .kcfg file // to the names of the variables in the .kcfg file
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow); TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow);
dialog->addPage(new Prefs(), i18n("General"), "package_settings"); dialog->addPage(new Prefs(), i18n("General"), "package_settings");
connect(dialog, TQT_SIGNAL(settingsChanged()), m_view, TQT_SLOT(settingsChanged())); connect(dialog, TQT_SIGNAL(settingsChanged()), m_view, TQT_SLOT(settingsChanged()));
dialog->show(); dialog->show();

@ -1,34 +1,34 @@
# TDE Config File # TDE Config File
[General] [General]
Name=KConfig XT application Name=TDEConfig XT application
Name[ca]=Aplicació KConfig XT Name[ca]=Aplicació TDEConfig XT
Name[da]=KConfig XT program Name[da]=TDEConfig XT program
Name[de]=KConfigXT-Anwendung Name[de]=TDEConfigXT-Anwendung
Name[el]=Εφαρμογή KConfig XT Name[el]=Εφαρμογή TDEConfig XT
Name[es]=Aplicación KConfig XT Name[es]=Aplicación TDEConfig XT
Name[et]=KConfig XT rakendus Name[et]=TDEConfig XT rakendus
Name[eu]=KConfig XT aplikazioa Name[eu]=TDEConfig XT aplikazioa
Name[fa]=کاربرد KConfig XT Name[fa]=کاربرد TDEConfig XT
Name[fr]=Application KConfig XT Name[fr]=Application TDEConfig XT
Name[ga]=Feidhmchlár XT KConfig Name[ga]=Feidhmchlár XT TDEConfig
Name[gl]=Aplicación KConfig XT Name[gl]=Aplicación TDEConfig XT
Name[hu]=KConfig XT-alapú alkalmazás Name[hu]=TDEConfig XT-alapú alkalmazás
Name[it]=Applicazione KConfig XT Name[it]=Applicazione TDEConfig XT
Name[ja]=KConfig XT アプリケーション Name[ja]=TDEConfig XT アプリケーション
Name[nds]=KConfig-XT-Programm Name[nds]=TDEConfig-XT-Programm
Name[ne]=KConfig XT अनुप्रयोग Name[ne]=TDEConfig XT अनुप्रयोग
Name[nl]=KConfig XT-toepassing Name[nl]=TDEConfig XT-toepassing
Name[pl]=Program KConfig XT Name[pl]=Program TDEConfig XT
Name[pt]=Aplicação do KConfig XT Name[pt]=Aplicação do TDEConfig XT
Name[pt_BR]=Aplicação do KConfig XT Name[pt_BR]=Aplicação do TDEConfig XT
Name[ru]=Приложение TDE с KConfig XT Name[ru]=Приложение TDE с TDEConfig XT
Name[sk]=KConfig XT aplikácia Name[sk]=TDEConfig XT aplikácia
Name[sr]=KConfig XT програм Name[sr]=TDEConfig XT програм
Name[sr@Latn]=KConfig XT program Name[sr@Latn]=TDEConfig XT program
Name[sv]=KConfig XT-program Name[sv]=TDEConfig XT-program
Name[tr]=KConfig XT uygulaması Name[tr]=TDEConfig XT uygulaması
Name[zh_CN]=KConfig XT 应用程序 Name[zh_CN]=TDEConfig XT 应用程序
Name[zh_TW]=KConfig XT 應用程式 Name[zh_TW]=TDEConfig XT 應用程式
Category=C++/TDE Category=C++/TDE
Icon=kxt.png Icon=kxt.png
Comment=Generates a simple TDE application with one widget and a configuration dialog Comment=Generates a simple TDE application with one widget and a configuration dialog
@ -238,32 +238,32 @@ Dest=%{dest}/configure.in.in
[MSG] [MSG]
Type=message Type=message
Comment=A KConfig XT application was created in %{dest} Comment=A TDEConfig XT application was created in %{dest}
Comment[ca]=Una aplicació KConfig XT ha estat creada en %{dest} Comment[ca]=Una aplicació TDEConfig XT ha estat creada en %{dest}
Comment[da]=Et KConfig XT-program blev oprettet i %{dest} Comment[da]=Et TDEConfig XT-program blev oprettet i %{dest}
Comment[de]=Eine KConfig-XT-Anwendung wurde in %{dest} erstellt Comment[de]=Eine TDEConfig-XT-Anwendung wurde in %{dest} erstellt
Comment[el]=Μια εφαρμογή KConfig XT δημιουργήθηκε στο %{dest} Comment[el]=Μια εφαρμογή TDEConfig XT δημιουργήθηκε στο %{dest}
Comment[es]=Una aplicación KConfig XT ha sido creada en %{dest} Comment[es]=Una aplicación TDEConfig XT ha sido creada en %{dest}
Comment[et]=A KConfig XT rakendus loodi asukohta %{dest} Comment[et]=A TDEConfig XT rakendus loodi asukohta %{dest}
Comment[eu]=KConfig XT aplikazio bat sortu da hemen: %{dest} Comment[eu]=TDEConfig XT aplikazio bat sortu da hemen: %{dest}
Comment[fa]=یک کاربرد KConfig XT در %{dest} ایجاد شد Comment[fa]=یک کاربرد TDEConfig XT در %{dest} ایجاد شد
Comment[fr]=Une application KConfig XT a été créée dans %{dest} Comment[fr]=Une application TDEConfig XT a été créée dans %{dest}
Comment[ga]=Cruthaíodh feidhmchlár XT KConfig i %{dest} Comment[ga]=Cruthaíodh feidhmchlár XT TDEConfig i %{dest}
Comment[gl]=Creouse unha aplicación KConfig XT en %{dest} Comment[gl]=Creouse unha aplicación TDEConfig XT en %{dest}
Comment[hu]=Létrejött egy KConfig XT-alapú alkalmazás itt: %{dest} Comment[hu]=Létrejött egy TDEConfig XT-alapú alkalmazás itt: %{dest}
Comment[it]=È stata creata un'applicazione KConfig XT in %{dest} Comment[it]=È stata creata un'applicazione TDEConfig XT in %{dest}
Comment[ja]=KConfig XT アプリケーションを %{dest} に作成しました Comment[ja]=TDEConfig XT アプリケーションを %{dest} に作成しました
Comment[nds]=In %{dest} wöör en KConfig-XT-Programm opstellt Comment[nds]=In %{dest} wöör en TDEConfig-XT-Programm opstellt
Comment[ne]=KConfig XT अनुप्रयोग %{dest} मा सिर्जना गरियो Comment[ne]=TDEConfig XT अनुप्रयोग %{dest} मा सिर्जना गरियो
Comment[nl]=Een KConfig XT-toepassing is aangemaakt in %{dest} Comment[nl]=Een TDEConfig XT-toepassing is aangemaakt in %{dest}
Comment[pl]=Program KConfig XT został utworzony w %{dest} Comment[pl]=Program TDEConfig XT został utworzony w %{dest}
Comment[pt]=Foi criada uma aplicação do KConfig XT em %{dest} Comment[pt]=Foi criada uma aplicação do TDEConfig XT em %{dest}
Comment[pt_BR]=Foi criada uma aplicação do KConfig XT em %{dest} Comment[pt_BR]=Foi criada uma aplicação do TDEConfig XT em %{dest}
Comment[ru]=Приложение TDE с KConfig XT создано в %{dest} Comment[ru]=Приложение TDE с TDEConfig XT создано в %{dest}
Comment[sk]=KConfig XT aplikácia bola vytvorená v %{dest} Comment[sk]=TDEConfig XT aplikácia bola vytvorená v %{dest}
Comment[sr]=KConfig XT програм је направљен у %{dest} Comment[sr]=TDEConfig XT програм је направљен у %{dest}
Comment[sr@Latn]=KConfig XT program je napravljen u %{dest} Comment[sr@Latn]=TDEConfig XT program je napravljen u %{dest}
Comment[sv]=Ett KConfig XT-program skapades i %{dest} Comment[sv]=Ett TDEConfig XT-program skapades i %{dest}
Comment[tr]=Bir KConfig XT uygulaması %{dest} içinde yaratıldı. Comment[tr]=Bir TDEConfig XT uygulaması %{dest} içinde yaratıldı.
Comment[zh_CN]=在 %{dest} 中创建了 KConfig XT 应用程序 Comment[zh_CN]=在 %{dest} 中创建了 TDEConfig XT 应用程序
Comment[zh_TW]=一個 KConfig XT 應用程式已建立於 %{dest} Comment[zh_TW]=一個 TDEConfig XT 應用程式已建立於 %{dest}

@ -89,7 +89,7 @@ void CCConfigWidget::initGeneralTab( )
interface_suffix->setText( DomUtil::readEntry( dom, "/cppsupportpart/filetemplates/interfacesuffix", ".h" ) ); interface_suffix->setText( DomUtil::readEntry( dom, "/cppsupportpart/filetemplates/interfacesuffix", ".h" ) );
implementation_suffix->setText( DomUtil::readEntry( dom, "/cppsupportpart/filetemplates/implementationsuffix", ".cpp" ) ); implementation_suffix->setText( DomUtil::readEntry( dom, "/cppsupportpart/filetemplates/implementationsuffix", ".cpp" ) );
KConfig *config = CppSupportFactory::instance() ->config(); TDEConfig *config = CppSupportFactory::instance() ->config();
if ( config ) if ( config )
{ {
config->setGroup( "General" ); config->setGroup( "General" );
@ -116,7 +116,7 @@ void CCConfigWidget::saveFileTemplatesTab( )
DomUtil::writeEntry( dom, "/cppsupportpart/filetemplates/interfacesuffix", interface_suffix->text() ); DomUtil::writeEntry( dom, "/cppsupportpart/filetemplates/interfacesuffix", interface_suffix->text() );
DomUtil::writeEntry( dom, "/cppsupportpart/filetemplates/implementationsuffix", implementation_suffix->text() ); DomUtil::writeEntry( dom, "/cppsupportpart/filetemplates/implementationsuffix", implementation_suffix->text() );
KConfig *config = CppSupportFactory::instance() ->config(); TDEConfig *config = CppSupportFactory::instance() ->config();
if ( config ) if ( config )
{ {
config->setGroup( "General" ); config->setGroup( "General" );

@ -151,7 +151,7 @@ TQString *ClassGeneratorConfig::identifyTemplate( int value )
void ClassGeneratorConfig::readConfig() void ClassGeneratorConfig::readConfig()
{ {
KConfig * config = CppSupportFactory::instance() ->config(); TDEConfig * config = CppSupportFactory::instance() ->config();
if ( config ) if ( config )
{ {
config->setGroup( "Class Generator" ); config->setGroup( "Class Generator" );
@ -197,7 +197,7 @@ TQString ClassGeneratorConfig::templateText( TQString path )
void ClassGeneratorConfig::storeConfig() void ClassGeneratorConfig::storeConfig()
{ {
KConfig * config = CppSupportFactory::instance() ->config(); TDEConfig * config = CppSupportFactory::instance() ->config();
if ( config ) if ( config )
{ {
config->setGroup( "Class Generator" ); config->setGroup( "Class Generator" );

@ -21,7 +21,7 @@
void ConfigureProblemReporter::init() void ConfigureProblemReporter::init()
{ {
m_part = 0; m_part = 0;
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup( "General Options" ); config->setGroup( "General Options" );
problemReporterCheckbox->setChecked( config->readBoolEntry( "EnableProblemReporter", true ) ); problemReporterCheckbox->setChecked( config->readBoolEntry( "EnableProblemReporter", true ) );
bgParserCheckbox->setChecked( config->readBoolEntry( "EnableCppBgParser", true ) ); bgParserCheckbox->setChecked( config->readBoolEntry( "EnableCppBgParser", true ) );
@ -54,7 +54,7 @@ void ConfigureProblemReporter::setPart( CppSupportPart* part )
void ConfigureProblemReporter::accept() void ConfigureProblemReporter::accept()
{ {
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->setGroup( "General Options" ); config->setGroup( "General Options" );
config->writeEntry( "EnableProblemReporter", problemReporterCheckbox->isChecked() ); config->writeEntry( "EnableProblemReporter", problemReporterCheckbox->isChecked() );
config->writeEntry( "EnableCppBgParser", bgParserCheckbox->isChecked() ); config->writeEntry( "EnableCppBgParser", bgParserCheckbox->isChecked() );

@ -120,7 +120,7 @@ static void typedefMap( TQMap<TQString, TQString> & map, ClassDom klass )
TQString formattedOpeningParenthesis(bool suppressSpace) TQString formattedOpeningParenthesis(bool suppressSpace)
{ {
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->setGroup("AStyle"); config->setGroup("AStyle");
bool use_spaces = config->readBoolEntry("PadParentheses", false); bool use_spaces = config->readBoolEntry("PadParentheses", false);
if (not use_spaces or suppressSpace) return "("; if (not use_spaces or suppressSpace) return "(";
@ -129,7 +129,7 @@ TQString formattedOpeningParenthesis(bool suppressSpace)
TQString formattedClosingParenthesis(bool suppressSpace) TQString formattedClosingParenthesis(bool suppressSpace)
{ {
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->setGroup("AStyle"); config->setGroup("AStyle");
bool use_spaces = config->readBoolEntry("PadParentheses", false); bool use_spaces = config->readBoolEntry("PadParentheses", false);
if (not use_spaces or suppressSpace) return ")"; if (not use_spaces or suppressSpace) return ")";

@ -178,7 +178,7 @@ class BackgroundParserConfig
public: public:
void readConfig() void readConfig()
{ {
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup( "General Options" ); config->setGroup( "General Options" );
m_useProblemReporter = config->readBoolEntry( "EnableProblemReporter", true ); m_useProblemReporter = config->readBoolEntry( "EnableProblemReporter", true );
m_useBackgroundParser = config->readBoolEntry( "EnableCppBgParser", true ); m_useBackgroundParser = config->readBoolEntry( "EnableCppBgParser", true );
@ -696,7 +696,7 @@ void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
bool showContextMenuExplosion = false; bool showContextMenuExplosion = false;
bool showContextTypeEvaluation = false; bool showContextTypeEvaluation = false;
KConfig *config = CppSupportFactory::instance() ->config(); TDEConfig *config = CppSupportFactory::instance() ->config();
if ( config ) if ( config )
{ {
config->setGroup( "General" ); config->setGroup( "General" );
@ -1108,7 +1108,7 @@ void CppSupportPart::slotSaveMemory() {
void CppSupportPart::slotSwitchHeader( bool scrollOnly ) void CppSupportPart::slotSwitchHeader( bool scrollOnly )
{ {
bool attemptMatch = true; bool attemptMatch = true;
KConfig *config = CppSupportFactory::instance() ->config(); TDEConfig *config = CppSupportFactory::instance() ->config();
if ( config ) if ( config )
{ {
config->setGroup( "General" ); config->setGroup( "General" );
@ -2014,15 +2014,15 @@ KMimeType::List CppSupportPart::mimeTypes( )
int CppSupportPart::pcsVersion() int CppSupportPart::pcsVersion()
{ {
KConfig * config = CppSupportFactory::instance() ->config(); TDEConfig * config = CppSupportFactory::instance() ->config();
KConfigGroupSaver cgs( config, "PCS" ); TDEConfigGroupSaver cgs( config, "PCS" );
return config->readNumEntry( "Version", 0 ); return config->readNumEntry( "Version", 0 );
} }
void CppSupportPart::setPcsVersion( int version ) void CppSupportPart::setPcsVersion( int version )
{ {
KConfig * config = CppSupportFactory::instance() ->config(); TDEConfig * config = CppSupportFactory::instance() ->config();
KConfigGroupSaver cgs( config, "PCS" ); TDEConfigGroupSaver cgs( config, "PCS" );
config->writeEntry( "Version", version ); config->writeEntry( "Version", version );
config->sync(); config->sync();
} }

@ -229,7 +229,7 @@ public:
KTextEditor::Document* findDocument( const KURL& url ); KTextEditor::Document* findDocument( const KURL& url );
static KConfig *config(); static TDEConfig *config();
virtual TQString formatTag( const Tag& tag ); virtual TQString formatTag( const Tag& tag );
virtual TQString formatModelItem( const CodeModelItem *item, bool shortDescription = false ); virtual TQString formatModelItem( const CodeModelItem *item, bool shortDescription = false );

@ -680,7 +680,7 @@
<entry name="debuggers" url="ch02.html"/> <entry name="debuggers" url="ch02.html"/>
<entry name="declaring, widget classes, kabdemo.h class declaration" url="ch10lev1sec4.html"/> <entry name="declaring, widget classes, kabdemo.h class declaration" url="ch10lev1sec4.html"/>
<entry name="declaring, widget classes, KChildren example" url="ch04lev1sec3.html"/> <entry name="declaring, widget classes, KChildren example" url="ch04lev1sec3.html"/>
<entry name="declaring widget classes, KConfigDemo widget" url="ch07lev1sec2.html"/> <entry name="declaring widget classes, TDEConfigDemo widget" url="ch07lev1sec2.html"/>
<entry name="declaring widget classes, KCustomActions widget" url="ch05.html"/> <entry name="declaring widget classes, KCustomActions widget" url="ch05.html"/>
<entry name="declaring, widget classes, KDialogApp" url="ch11.html"/> <entry name="declaring, widget classes, KDialogApp" url="ch11.html"/>
<entry name="declaring, widget classes, KDisc example" url="ch04lev1sec4.html"/> <entry name="declaring, widget classes, KDisc example" url="ch04lev1sec4.html"/>
@ -704,7 +704,7 @@
<entry name="defiing, widget classes, KChildren example" url="ch04lev1sec3.html"/> <entry name="defiing, widget classes, KChildren example" url="ch04lev1sec3.html"/>
<entry name="defining, streams" url="ch14lev1sec3.html"/> <entry name="defining, streams" url="ch14lev1sec3.html"/>
<entry name="defining, widget classes, KabDemo" url="ch10lev1sec4.html"/> <entry name="defining, widget classes, KabDemo" url="ch10lev1sec4.html"/>
<entry name="defining widget classes, KConfigDemo widget" url="ch07lev1sec2.html"/> <entry name="defining widget classes, TDEConfigDemo widget" url="ch07lev1sec2.html"/>
<entry name="defining widget classes, KCustomActions widget" url="ch05.html"/> <entry name="defining widget classes, KCustomActions widget" url="ch05.html"/>
<entry name="defining, widget classes, KDialogApp" url="ch11.html"/> <entry name="defining, widget classes, KDialogApp" url="ch11.html"/>
<entry name="defining, widget classes, KDisc example" url="ch04lev1sec4.html"/> <entry name="defining, widget classes, KDisc example" url="ch04lev1sec4.html"/>
@ -1033,7 +1033,7 @@
<entry name="functions, i18n()" url="ch07lev1sec4.html"/> <entry name="functions, i18n()" url="ch07lev1sec4.html"/>
<entry name="functions, information()" url="ch05lev1sec3.html"/> <entry name="functions, information()" url="ch05lev1sec3.html"/>
<entry name="functions, kingioRegister()" url="ch07lev1sec4.html"/> <entry name="functions, kingioRegister()" url="ch07lev1sec4.html"/>
<entry name="functions, main(), KConfigDemo widget" url="ch07lev1sec2.html"/> <entry name="functions, main(), TDEConfigDemo widget" url="ch07lev1sec2.html"/>
<entry name="functions, main(), KCustomActions widget" url="ch05.html"/> <entry name="functions, main(), KCustomActions widget" url="ch05.html"/>
<entry name="functions, main(), KDragDemo widget" url="ch07.html"/> <entry name="functions, main(), KDragDemo widget" url="ch07.html"/>
<entry name="functions, main(), KDropDemo widget" url="ch07.html"/> <entry name="functions, main(), KDropDemo widget" url="ch07.html"/>
@ -1284,11 +1284,11 @@
<entry name="KChildren sample widget (child widget), kchildren.h class declaration" url="ch04lev1sec3.html"/> <entry name="KChildren sample widget (child widget), kchildren.h class declaration" url="ch04lev1sec3.html"/>
<entry name="KChildren sample widget (child widget), main() method" url="ch04lev1sec3.html"/> <entry name="KChildren sample widget (child widget), main() method" url="ch04lev1sec3.html"/>
<entry name="KChildren sample widget (child widget)" url="ch04lev1sec3.html"/> <entry name="KChildren sample widget (child widget)" url="ch04lev1sec3.html"/>
<entry name="kconfigdemo.cpp file (KConfigDemo widget)" url="ch07lev1sec2.html"/> <entry name="kconfigdemo.cpp file (TDEConfigDemo widget)" url="ch07lev1sec2.html"/>
<entry name="kconfigdemo.h file (KConfigDemo widget)" url="ch07lev1sec2.html"/> <entry name="kconfigdemo.h file (TDEConfigDemo widget)" url="ch07lev1sec2.html"/>
<entry name="KConfigDemo widget, kconfigdemo.cpp class definition" url="ch07lev1sec2.html"/> <entry name="TDEConfigDemo widget, kconfigdemo.cpp class definition" url="ch07lev1sec2.html"/>
<entry name="KConfigDemo widget, kconfigdemo.h class declaration" url="ch07lev1sec2.html"/> <entry name="TDEConfigDemo widget, kconfigdemo.h class declaration" url="ch07lev1sec2.html"/>
<entry name="KConfigDemo widget, main() function" url="ch07lev1sec2.html"/> <entry name="TDEConfigDemo widget, main() function" url="ch07lev1sec2.html"/>
<entry name="kcustomactions.cpp file (KCustomActions widget)" url="ch05.html"/> <entry name="kcustomactions.cpp file (KCustomActions widget)" url="ch05.html"/>
<entry name="kcustomactions.h file (KCustomActions widget)" url="ch05.html"/> <entry name="kcustomactions.h file (KCustomActions widget)" url="ch05.html"/>
<entry name="KCustomActions widget, kcustomactions.cpp class definition" url="ch05.html"/> <entry name="KCustomActions widget, kcustomactions.cpp class definition" url="ch05.html"/>
@ -1675,9 +1675,9 @@
<entry name="listings, KChildren widget, kchildren.cpp class definition" url="ch04lev1sec3.html"/> <entry name="listings, KChildren widget, kchildren.cpp class definition" url="ch04lev1sec3.html"/>
<entry name="listings, KChildren widget, kchildren.h class declaration" url="ch04lev1sec3.html"/> <entry name="listings, KChildren widget, kchildren.h class declaration" url="ch04lev1sec3.html"/>
<entry name="listings, KChildren widget, main() method" url="ch04lev1sec3.html"/> <entry name="listings, KChildren widget, main() method" url="ch04lev1sec3.html"/>
<entry name="listings, KConfigDemo widget, kconfigdemo.cpp class definition" url="ch07lev1sec2.html"/> <entry name="listings, TDEConfigDemo widget, kconfigdemo.cpp class definition" url="ch07lev1sec2.html"/>
<entry name="listings, KConfigDemo widget, kconfigdemo.h class declaration" url="ch07lev1sec2.html"/> <entry name="listings, TDEConfigDemo widget, kconfigdemo.h class declaration" url="ch07lev1sec2.html"/>
<entry name="listings, KConfigDemo widget, main() function" url="ch07lev1sec2.html"/> <entry name="listings, TDEConfigDemo widget, main() function" url="ch07lev1sec2.html"/>
<entry name="listings, KCustomActions widget, kcustomactions.cpp class definition" url="ch05.html"/> <entry name="listings, KCustomActions widget, kcustomactions.cpp class definition" url="ch05.html"/>
<entry name="listings, KCustomActions widget, kcustomactions.h class declaration" url="ch05.html"/> <entry name="listings, KCustomActions widget, kcustomactions.h class declaration" url="ch05.html"/>
<entry name="listings, KCustomActions widget, kcustomactions.h class definition" url="ch05.html"/> <entry name="listings, KCustomActions widget, kcustomactions.h class definition" url="ch05.html"/>
@ -1792,7 +1792,7 @@
<entry name="mail action" url="ch06.html"/> <entry name="mail action" url="ch06.html"/>
<entry name="mailing lists" url="ch01lev1sec3.html"/> <entry name="mailing lists" url="ch01lev1sec3.html"/>
<entry name="main.cpp file (KstaqndardDialogs)" url="ch05lev1sec3.html"/> <entry name="main.cpp file (KstaqndardDialogs)" url="ch05lev1sec3.html"/>
<entry name="main() function, KConfigDemo widget" url="ch07lev1sec2.html"/> <entry name="main() function, TDEConfigDemo widget" url="ch07lev1sec2.html"/>
<entry name="main() function, KCustomActions widget" url="ch05.html"/> <entry name="main() function, KCustomActions widget" url="ch05.html"/>
<entry name="main() function, KDragDemo widget" url="ch07.html"/> <entry name="main() function, KDragDemo widget" url="ch07.html"/>
<entry name="main() function, KDropDemo widget" url="ch07.html"/> <entry name="main() function, KDropDemo widget" url="ch07.html"/>

@ -104,7 +104,7 @@ m_newFileNames(newFileNames), m_cppSupport( cppSupport )
readUiFile(); readUiFile();
m_creatingNewSubclass = true; m_creatingNewSubclass = true;
KConfig *config = CppSupportFactory::instance()->config(); TDEConfig *config = CppSupportFactory::instance()->config();
if (config) if (config)
{ {
config->setGroup("Subclassing"); config->setGroup("Subclassing");
@ -126,7 +126,7 @@ m_newFileNames(dummy), m_cppSupport( cppSupport )
m_creatingNewSubclass = false; m_creatingNewSubclass = false;
m_filename = filename; m_filename = filename;
KConfig *config = CppSupportFactory::instance()->config(); TDEConfig *config = CppSupportFactory::instance()->config();
if (config) if (config)
{ {
config->setGroup("Subclassing"); config->setGroup("Subclassing");
@ -342,7 +342,7 @@ bool SubclassingDlg::saveBuffer(TQString &buffer, const TQString& filename)
void SubclassingDlg::accept() void SubclassingDlg::accept()
{ {
KConfig *config = CppSupportFactory::instance()->config(); TDEConfig *config = CppSupportFactory::instance()->config();
if (config) if (config)
{ {
config->setGroup("Subclassing"); config->setGroup("Subclassing");

@ -14,7 +14,7 @@
#include <tdeversion.h> #include <tdeversion.h>
#include <kglobal.h> #include <kglobal.h>
using namespace KIO; using namespace TDEIO;
CSharpdocProtocol::CSharpdocProtocol(const TQCString &pool, const TQCString &app) CSharpdocProtocol::CSharpdocProtocol(const TQCString &pool, const TQCString &app)
@ -95,7 +95,7 @@ TQCString CSharpdocProtocol::errorMessage()
void CSharpdocProtocol::stat(const KURL &/*url*/) void CSharpdocProtocol::stat(const KURL &/*url*/)
{ {
UDSAtom uds_atom; UDSAtom uds_atom;
uds_atom.m_uds = KIO::UDS_FILE_TYPE; uds_atom.m_uds = TDEIO::UDS_FILE_TYPE;
uds_atom.m_long = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO; uds_atom.m_long = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
UDSEntry uds_entry; UDSEntry uds_entry;
@ -108,7 +108,7 @@ void CSharpdocProtocol::stat(const KURL &/*url*/)
void CSharpdocProtocol::listDir(const KURL &url) void CSharpdocProtocol::listDir(const KURL &url)
{ {
error( KIO::ERR_CANNOT_ENTER_DIRECTORY, url.path() ); error( TDEIO::ERR_CANNOT_ENTER_DIRECTORY, url.path() );
} }

@ -5,7 +5,7 @@
#include <kio/slavebase.h> #include <kio/slavebase.h>
class CSharpdocProtocol : public KIO::SlaveBase class CSharpdocProtocol : public TDEIO::SlaveBase
{ {
public: public:
CSharpdocProtocol(const TQCString &pool, const TQCString &app); CSharpdocProtocol(const TQCString &pool, const TQCString &app);

@ -93,7 +93,7 @@ public void setupActions()
actionCollection(), "custom_action"); actionCollection(), "custom_action");
} }
protected void saveProperties(KConfig config) protected void saveProperties(TDEConfig config)
{ {
// the 'config' object points to the session managed // the 'config' object points to the session managed
// config file. anything you write here will be available // config file. anything you write here will be available
@ -103,7 +103,7 @@ protected void saveProperties(KConfig config)
config.writeEntry("lastURL", m_view.currentURL()); config.writeEntry("lastURL", m_view.currentURL());
} }
protected void readProperties(KConfig config) protected void readProperties(TDEConfig config)
{ {
// the 'config' object points to the session managed // the 'config' object points to the session managed
// config file. this function is automatically called whenever // config file. this function is automatically called whenever

@ -11,7 +11,7 @@
void ConfigureProblemReporter::init() void ConfigureProblemReporter::init()
{ {
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup( "General Options" ); config->setGroup( "General Options" );
bgParserCheckbox->setChecked( config->readBoolEntry("EnableJavaBgParser", true) ); bgParserCheckbox->setChecked( config->readBoolEntry("EnableJavaBgParser", true) );
delaySlider->setEnabled( bgParserCheckbox->isChecked() ); delaySlider->setEnabled( bgParserCheckbox->isChecked() );
@ -25,7 +25,7 @@ void ConfigureProblemReporter::destroy()
void ConfigureProblemReporter::accept() void ConfigureProblemReporter::accept()
{ {
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup( "General Options" ); config->setGroup( "General Options" );
config->writeEntry( "EnableJavaBgParser", bgParserCheckbox->isChecked() ); config->writeEntry( "EnableJavaBgParser", bgParserCheckbox->isChecked() );
if( bgParserCheckbox->isChecked() ) if( bgParserCheckbox->isChecked() )

@ -754,15 +754,15 @@ KMimeType::List JavaSupportPart::mimeTypes( )
int JavaSupportPart::pcsVersion() int JavaSupportPart::pcsVersion()
{ {
KConfig* config = JavaSupportFactory::instance()->config(); TDEConfig* config = JavaSupportFactory::instance()->config();
KConfigGroupSaver cgs( config, "PCS" ); TDEConfigGroupSaver cgs( config, "PCS" );
return config->readNumEntry( "Version", 0 ); return config->readNumEntry( "Version", 0 );
} }
void JavaSupportPart::setPcsVersion( int version ) void JavaSupportPart::setPcsVersion( int version )
{ {
KConfig* config = JavaSupportFactory::instance()->config(); TDEConfig* config = JavaSupportFactory::instance()->config();
KConfigGroupSaver cgs( config, "PCS" ); TDEConfigGroupSaver cgs( config, "PCS" );
config->writeEntry( "Version", version ); config->writeEntry( "Version", version );
config->sync(); config->sync();
} }

@ -72,7 +72,7 @@ public:
KTextEditor::Document* findDocument( const KURL& url ); KTextEditor::Document* findDocument( const KURL& url );
static KConfig *config(); static TDEConfig *config();
virtual TQString formatTag( const Tag& tag ); virtual TQString formatTag( const Tag& tag );
virtual TQString formatModelItem( const CodeModelItem *item, bool shortDescription=false ); virtual TQString formatModelItem( const CodeModelItem *item, bool shortDescription=false );

@ -227,7 +227,7 @@ void ProblemReporter::reportProblem( const TQString& fileName, const Problem& p
void ProblemReporter::configure() void ProblemReporter::configure()
{ {
kdDebug(9013) << "ProblemReporter::configure()" << endl; kdDebug(9013) << "ProblemReporter::configure()" << endl;
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup( "General Options" ); config->setGroup( "General Options" );
m_active = config->readBoolEntry( "EnableJavaBgParser", TRUE ); m_active = config->readBoolEntry( "EnableJavaBgParser", TRUE );
m_delay = config->readNumEntry( "BgParserDelay", 500 ); m_delay = config->readNumEntry( "BgParserDelay", 500 );

@ -103,7 +103,7 @@ m_newFileNames(newFileNames), m_kjsSupport( kjsSupport )
readUiFile(); readUiFile();
m_creatingNewSubclass = true; m_creatingNewSubclass = true;
/* KConfig *config = kjsSupportFactory::instance()->config(); /* TDEConfig *config = kjsSupportFactory::instance()->config();
if (config) if (config)
{ {
config->setGroup("Subclassing"); config->setGroup("Subclassing");
@ -125,7 +125,7 @@ m_newFileNames(dummy), m_kjsSupport( kjsSupport )
m_creatingNewSubclass = false; m_creatingNewSubclass = false;
m_filename = filename; m_filename = filename;
KConfig *config = kjsSupportFactory::instance()->config(); TDEConfig *config = kjsSupportFactory::instance()->config();
if (config) if (config)
{ {
config->setGroup("Subclassing"); config->setGroup("Subclassing");
@ -363,7 +363,7 @@ bool SubclassingDlg::saveBuffer(TQString &buffer, const TQString& filename)
void SubclassingDlg::accept() void SubclassingDlg::accept()
//=========================== //===========================
{ {
/* KConfig *config = kjsSupportFactory::instance()->config(); /* TDEConfig *config = kjsSupportFactory::instance()->config();
if (config) if (config)
{ {
config->setGroup("Subclassing"); config->setGroup("Subclassing");

@ -250,7 +250,7 @@ void ProblemReporter::reportMessage( TQString message,
void ProblemReporter::configure() void ProblemReporter::configure()
{ {
kdDebug(9007) << "ProblemReporter::configure()" << endl; kdDebug(9007) << "ProblemReporter::configure()" << endl;
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup( "General Options" ); config->setGroup( "General Options" );
m_active = config->readBoolEntry( "EnablePascalBgParser", TRUE ); m_active = config->readBoolEntry( "EnablePascalBgParser", TRUE );
m_delay = config->readNumEntry( "BgParserDelay", 500 ); m_delay = config->readNumEntry( "BgParserDelay", 500 );

@ -14,7 +14,7 @@
#include <tdeversion.h> #include <tdeversion.h>
#include <kglobal.h> #include <kglobal.h>
using namespace KIO; using namespace TDEIO;
PerldocProtocol::PerldocProtocol(const TQCString &pool, const TQCString &app) PerldocProtocol::PerldocProtocol(const TQCString &pool, const TQCString &app)
@ -95,7 +95,7 @@ TQCString PerldocProtocol::errorMessage()
void PerldocProtocol::stat(const KURL &/*url*/) void PerldocProtocol::stat(const KURL &/*url*/)
{ {
UDSAtom uds_atom; UDSAtom uds_atom;
uds_atom.m_uds = KIO::UDS_FILE_TYPE; uds_atom.m_uds = TDEIO::UDS_FILE_TYPE;
uds_atom.m_long = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO; uds_atom.m_long = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
UDSEntry uds_entry; UDSEntry uds_entry;
@ -108,7 +108,7 @@ void PerldocProtocol::stat(const KURL &/*url*/)
void PerldocProtocol::listDir(const KURL &url) void PerldocProtocol::listDir(const KURL &url)
{ {
error( KIO::ERR_CANNOT_ENTER_DIRECTORY, url.path() ); error( TDEIO::ERR_CANNOT_ENTER_DIRECTORY, url.path() );
} }

@ -5,7 +5,7 @@
#include <kio/slavebase.h> #include <kio/slavebase.h>
class PerldocProtocol : public KIO::SlaveBase class PerldocProtocol : public TDEIO::SlaveBase
{ {
public: public:
PerldocProtocol(const TQCString &pool, const TQCString &app); PerldocProtocol(const TQCString &pool, const TQCString &app);

@ -116,8 +116,8 @@ PHPSupportPart::PHPSupportPart(TQObject *parent, const char *name, const TQStrin
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"));
connect( m_htmlView, TQT_SIGNAL(started(KIO::Job*)), connect( m_htmlView, TQT_SIGNAL(started(TDEIO::Job*)),
this, TQT_SLOT(slotWebJobStarted(KIO::Job*))); this, TQT_SLOT(slotWebJobStarted(TDEIO::Job*)));
configData = new PHPConfigData(projectDom()); configData = new PHPConfigData(projectDom());
connect( configData, TQT_SIGNAL(configStored()), connect( configData, TQT_SIGNAL(configStored()),
@ -294,24 +294,24 @@ TQString PHPSupportPart::getExecuteFile() {
return file; return file;
} }
void PHPSupportPart::slotWebJobStarted(KIO::Job* job) { void PHPSupportPart::slotWebJobStarted(TDEIO::Job* job) {
if (job && job->className() == TQString("KIO::TransferJob")) { if (job && job->className() == TQString("TDEIO::TransferJob")) {
kdDebug(9018) << endl << "job started" << job->progressId(); kdDebug(9018) << endl << "job started" << job->progressId();
KIO::TransferJob *tjob = static_cast<KIO::TransferJob*>(job); TDEIO::TransferJob *tjob = static_cast<TDEIO::TransferJob*>(job);
connect( tjob, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)), connect( tjob, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
this, TQT_SLOT(slotWebData(KIO::Job*, const TQByteArray&))); this, TQT_SLOT(slotWebData(TDEIO::Job*, const TQByteArray&)));
connect( tjob, TQT_SIGNAL(result(KIO::Job*)), connect( tjob, TQT_SIGNAL(result(TDEIO::Job*)),
this, TQT_SLOT(slotWebResult(KIO::Job*))); this, TQT_SLOT(slotWebResult(TDEIO::Job*)));
} }
} }
void PHPSupportPart::slotWebData(KIO::Job* /*job*/,const TQByteArray& data) { void PHPSupportPart::slotWebData(TDEIO::Job* /*job*/,const TQByteArray& data) {
kdDebug(9018) << "slotWebData()" << endl; kdDebug(9018) << "slotWebData()" << endl;
TQString strData(data); TQString strData(data);
m_phpExeOutput += strData; m_phpExeOutput += strData;
} }
void PHPSupportPart::slotWebResult(KIO::Job* /*job*/) { void PHPSupportPart::slotWebResult(TDEIO::Job* /*job*/) {
kdDebug(9018) << "slotWebResult()" << endl; kdDebug(9018) << "slotWebResult()" << endl;
TQString file = getExecuteFile(); TQString file = getExecuteFile();
PHPFile *pfile = new PHPFile(this, file); PHPFile *pfile = new PHPFile(this, file);

@ -75,9 +75,9 @@ private slots:
void slotReceivedPHPExeStderr (TDEProcess* proc, char* buffer, int buflen); void slotReceivedPHPExeStderr (TDEProcess* proc, char* buffer, int buflen);
void slotReceivedPHPExeStdout (TDEProcess* proc, char* buffer, int buflen); void slotReceivedPHPExeStdout (TDEProcess* proc, char* buffer, int buflen);
void slotPHPExeExited (TDEProcess* proc); void slotPHPExeExited (TDEProcess* proc);
void slotWebData(KIO::Job* job,const TQByteArray& data); void slotWebData(TDEIO::Job* job,const TQByteArray& data);
void slotWebResult(KIO::Job* job); void slotWebResult(TDEIO::Job* job);
void slotWebJobStarted(KIO::Job* job); void slotWebJobStarted(TDEIO::Job* job);
// Internal // Internal
void initialParse(); void initialParse();

@ -13,7 +13,7 @@
#include <kglobal.h> #include <kglobal.h>
#include <klocale.h> #include <klocale.h>
using namespace KIO; using namespace TDEIO;
PydocProtocol::PydocProtocol(const TQCString &pool, const TQCString &app) PydocProtocol::PydocProtocol(const TQCString &pool, const TQCString &app)
@ -75,7 +75,7 @@ TQCString PydocProtocol::errorMessage()
void PydocProtocol::stat(const KURL &/*url*/) void PydocProtocol::stat(const KURL &/*url*/)
{ {
UDSAtom uds_atom; UDSAtom uds_atom;
uds_atom.m_uds = KIO::UDS_FILE_TYPE; uds_atom.m_uds = TDEIO::UDS_FILE_TYPE;
uds_atom.m_long = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO; uds_atom.m_long = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
UDSEntry uds_entry; UDSEntry uds_entry;
@ -88,7 +88,7 @@ void PydocProtocol::stat(const KURL &/*url*/)
void PydocProtocol::listDir(const KURL &url) void PydocProtocol::listDir(const KURL &url)
{ {
error( KIO::ERR_CANNOT_ENTER_DIRECTORY, url.path() ); error( TDEIO::ERR_CANNOT_ENTER_DIRECTORY, url.path() );
} }

@ -5,7 +5,7 @@
#include <kio/slavebase.h> #include <kio/slavebase.h>
class PydocProtocol : public KIO::SlaveBase class PydocProtocol : public TDEIO::SlaveBase
{ {
public: public:
PydocProtocol(const TQCString &pool, const TQCString &app); PydocProtocol(const TQCString &pool, const TQCString &app);

@ -42,7 +42,7 @@ For more details, consult :
http://devel-home.kde.org/~larrosa/tutorial/p9.html http://devel-home.kde.org/~larrosa/tutorial/p9.html
http://developer.kde.org/documentation/tutorials/xmlui/preface.html http://developer.kde.org/documentation/tutorials/xmlui/preface.html
* Use KConfig XT to create your configuration dialogs and make * Use TDEConfig XT to create your configuration dialogs and make
them more maintainable. them more maintainable.
For more details, consult : For more details, consult :

@ -57,7 +57,7 @@ class %{APPNAMESC} < KDE::MainWindow
if false if false
# download the contents # download the contents
if KIO::NetAccess.download(url, target, self) if TDEIO::NetAccess.download(url, target, self)
# set our caption # set our caption
setCaption(url.url) setCaption(url.url)
@ -65,7 +65,7 @@ class %{APPNAMESC} < KDE::MainWindow
@view.openURL(KDE::URL.new(target)) @view.openURL(KDE::URL.new(target))
# and remove the temp file # and remove the temp file
KIO::NetAccess.removeTempFile(target) TDEIO::NetAccess.removeTempFile(target)
end end
end end

@ -1,10 +1,10 @@
KConfig XT Ruby template quick start TDEConfig XT Ruby template quick start
Author: Anne-Marie Mahfouf Author: Anne-Marie Mahfouf
Date: 2006-12-12 Date: 2006-12-12
----------------------------------------------- -----------------------------------------------
This README file explains you some basic things for starting with This README file explains you some basic things for starting with
this application template, a KConfig XT Ruby template. this application template, a TDEConfig XT Ruby template.
----------------------------------------------- -----------------------------------------------
-- REQUIREMENTS -- -- REQUIREMENTS --

@ -1,35 +1,35 @@
# KDE Config File # KDE Config File
[General] [General]
Name=KConfig XT application Name=TDEConfig XT application
Name[ca]=Aplicació KConfig XT Name[ca]=Aplicació TDEConfig XT
Name[da]=KConfig XT program Name[da]=TDEConfig XT program
Name[de]=KConfigXT-Anwendung Name[de]=TDEConfigXT-Anwendung
Name[el]=Εφαρμογή KConfig XT Name[el]=Εφαρμογή TDEConfig XT
Name[es]=Aplicación KConfig XT Name[es]=Aplicación TDEConfig XT
Name[et]=KConfig XT rakendus Name[et]=TDEConfig XT rakendus
Name[eu]=KConfig XT aplikazioa Name[eu]=TDEConfig XT aplikazioa
Name[fa]=کاربرد KConfig XT Name[fa]=کاربرد TDEConfig XT
Name[fr]=Application KConfig XT Name[fr]=Application TDEConfig XT
Name[ga]=Feidhmchlár XT KConfig Name[ga]=Feidhmchlár XT TDEConfig
Name[gl]=Aplicación KConfig XT Name[gl]=Aplicación TDEConfig XT
Name[hu]=KConfig XT-alapú alkalmazás Name[hu]=TDEConfig XT-alapú alkalmazás
Name[it]=Applicazione KConfig XT Name[it]=Applicazione TDEConfig XT
Name[ja]=KConfig XT アプリケーション Name[ja]=TDEConfig XT アプリケーション
Name[nds]=KConfig-XT-Programm Name[nds]=TDEConfig-XT-Programm
Name[ne]=KConfig XT अनुप्रयोग Name[ne]=TDEConfig XT अनुप्रयोग
Name[nl]=KConfig XT-toepassing Name[nl]=TDEConfig XT-toepassing
Name[pl]=Program KConfig XT Name[pl]=Program TDEConfig XT
Name[pt]=Aplicação do KConfig XT Name[pt]=Aplicação do TDEConfig XT
Name[pt_BR]=Aplicação do KConfig XT Name[pt_BR]=Aplicação do TDEConfig XT
Name[ru]=Приложение KDE с KConfig XT Name[ru]=Приложение KDE с TDEConfig XT
Name[sk]=KConfig XT aplikácia Name[sk]=TDEConfig XT aplikácia
Name[sr]=KConfig XT програм Name[sr]=TDEConfig XT програм
Name[sr@Latn]=KConfig XT program Name[sr@Latn]=TDEConfig XT program
Name[sv]=KConfig XT-program Name[sv]=TDEConfig XT-program
Name[tr]=KConfig XT uygulaması Name[tr]=TDEConfig XT uygulaması
Name[zh_CN]=KConfig XT 应用程序 Name[zh_CN]=TDEConfig XT 应用程序
Name[zh_TW]=KConfig XT 應用程式 Name[zh_TW]=TDEConfig XT 應用程式
Category=Ruby/KDE Category=Ruby/KDE
Icon=kxtruby.png Icon=kxtruby.png
Comment=Generates a simple KDE application with one widget and a configuration dialog Comment=Generates a simple KDE application with one widget and a configuration dialog
@ -221,31 +221,31 @@ Dest=%{dest}/src/settings.kcfgc
[MSG] [MSG]
Type=message Type=message
Comment=A Korundum KConfig XT Application was created at %{dest} Comment=A Korundum TDEConfig XT Application was created at %{dest}
Comment[ca]=Una aplicació Korundum amb KConfig XT ha estat creada a %{dest} Comment[ca]=Una aplicació Korundum amb TDEConfig XT ha estat creada a %{dest}
Comment[da]=Et Korundum KConfig XT program blev oprettet i %{dest} Comment[da]=Et Korundum TDEConfig XT program blev oprettet i %{dest}
Comment[de]=Eine Korundum-KConfig-XT-Anwendung wurde in %{dest} erstellt. Comment[de]=Eine Korundum-TDEConfig-XT-Anwendung wurde in %{dest} erstellt.
Comment[el]=Μια εφαρμογή Korundum KConfig XT δημιουργήθηκε στο %{dest} Comment[el]=Μια εφαρμογή Korundum TDEConfig XT δημιουργήθηκε στο %{dest}
Comment[es]=Una aplicación Korundum con KConfig XT ha sido creada en %{dest} Comment[es]=Una aplicación Korundum con TDEConfig XT ha sido creada en %{dest}
Comment[et]=Korundumi KConfig XT rakendus loodi asukohta %{dest} Comment[et]=Korundumi TDEConfig XT rakendus loodi asukohta %{dest}
Comment[eu]=Korundum KConfig XT aplikazio bat sortu da hemen: %{dest} Comment[eu]=Korundum TDEConfig XT aplikazio bat sortu da hemen: %{dest}
Comment[fa]=یک کاربرد Korundum KConfig XT در %{dest} ایجاد شد Comment[fa]=یک کاربرد Korundum TDEConfig XT در %{dest} ایجاد شد
Comment[fr]=Une application KConfig XT Korundum a été créée dans %{dest} Comment[fr]=Une application TDEConfig XT Korundum a été créée dans %{dest}
Comment[ga]=Cruthaíodh Feidhmchlár Korundum KConfig XT ag %{dest} Comment[ga]=Cruthaíodh Feidhmchlár Korundum TDEConfig XT ag %{dest}
Comment[gl]=Creouse unha aplicación KConfig XT con Korundum en %{dest} Comment[gl]=Creouse unha aplicación TDEConfig XT con Korundum en %{dest}
Comment[hu]=Létrejött egy Korundum-alapú KConfig XT-s alkalmazás itt: %{dest} Comment[hu]=Létrejött egy Korundum-alapú TDEConfig XT-s alkalmazás itt: %{dest}
Comment[it]=È stata creata un'applicazione Korundum KConfig XT in %{dest} Comment[it]=È stata creata un'applicazione Korundum TDEConfig XT in %{dest}
Comment[ja]=Korundum KConfig XT アプリケーションを %{dest} に作成しました Comment[ja]=Korundum TDEConfig XT アプリケーションを %{dest} に作成しました
Comment[nds]=In %{dest} wöör en Korundum/KConfig-XT-Programm opstellt. Comment[nds]=In %{dest} wöör en Korundum/TDEConfig-XT-Programm opstellt.
Comment[ne]=Korundum KConfig XT अनुप्रयोग %{dest} मा सिर्जना गरियो Comment[ne]=Korundum TDEConfig XT अनुप्रयोग %{dest} मा सिर्जना गरियो
Comment[nl]=Een Korundum KConfig XT-toepassing is aangemaakt in %{dest} Comment[nl]=Een Korundum TDEConfig XT-toepassing is aangemaakt in %{dest}
Comment[pl]=Program Korundum KConfig XT został utworzony w %{dest} Comment[pl]=Program Korundum TDEConfig XT został utworzony w %{dest}
Comment[pt]=Foi criada uma aplicação Korundum com KConfig XT em %{dest} Comment[pt]=Foi criada uma aplicação Korundum com TDEConfig XT em %{dest}
Comment[pt_BR]=Foi criada uma aplicação Korundum com KConfig XT em %{dest} Comment[pt_BR]=Foi criada uma aplicação Korundum com TDEConfig XT em %{dest}
Comment[ru]=Приложение Korundum с KConfig XT создано в %{dest} Comment[ru]=Приложение Korundum с TDEConfig XT создано в %{dest}
Comment[sk]=Korundim KConfig XT aplikácia bola vytvorená v %{dest} Comment[sk]=Korundim TDEConfig XT aplikácia bola vytvorená v %{dest}
Comment[sr]=Korundum KConfig XT програм направљен је у %{dest} Comment[sr]=Korundum TDEConfig XT програм направљен је у %{dest}
Comment[sr@Latn]=Korundum KConfig XT program napravljen je u %{dest} Comment[sr@Latn]=Korundum TDEConfig XT program napravljen je u %{dest}
Comment[sv]=Ett Korundum KConfig XT-program skapades i %{dest} Comment[sv]=Ett Korundum TDEConfig XT-program skapades i %{dest}
Comment[tr]=Bir Korundum KConfig XT uygulaması %{dest} içinde yaratıldı. Comment[tr]=Bir Korundum TDEConfig XT uygulaması %{dest} içinde yaratıldı.
Comment[zh_TW]=一個 Korundum KConfig XT 應用程式已建立於 %{dest} Comment[zh_TW]=一個 Korundum TDEConfig XT 應用程式已建立於 %{dest}

@ -89,7 +89,7 @@ public:
/**@return Whether the application is currently running.*/ /**@return Whether the application is currently running.*/
virtual bool isRunning() = 0; virtual bool isRunning() = 0;
/**Advices to synchronize the settings from KConfig because they were changed externally.*/ /**Advices to synchronize the settings from TDEConfig because they were changed externally.*/
virtual void updateSettingsFromConfig() = 0; virtual void updateSettingsFromConfig() = 0;
signals: signals:

@ -15,7 +15,7 @@
#include "settings.h" #include "settings.h"
TQString Settings::terminalEmulatorName( KConfig & config ) TQString Settings::terminalEmulatorName( TDEConfig & config )
{ {
config.setGroup("TerminalEmulator"); config.setGroup("TerminalEmulator");
bool useKDESetting = config.readBoolEntry( "UseKDESetting", true ); bool useKDESetting = config.readBoolEntry( "UseKDESetting", true );
@ -23,7 +23,7 @@ TQString Settings::terminalEmulatorName( KConfig & config )
if ( useKDESetting ) if ( useKDESetting )
{ {
KConfigGroup confGroup( TDEGlobal::config(), TQString::fromLatin1("General") ); TDEConfigGroup confGroup( TDEGlobal::config(), TQString::fromLatin1("General") );
terminal = confGroup.readEntry("TerminalApplication", TQString::fromLatin1("konsole")); terminal = confGroup.readEntry("TerminalApplication", TQString::fromLatin1("konsole"));
} }
else else
@ -35,7 +35,7 @@ TQString Settings::terminalEmulatorName( KConfig & config )
TQString Settings::profileByAttributes(const TQString &language, const TQStringList &keywords) TQString Settings::profileByAttributes(const TQString &language, const TQStringList &keywords)
{ {
KConfig config(locate("data", "tdevelop/profiles/projectprofiles")); TDEConfig config(locate("data", "tdevelop/profiles/projectprofiles"));
config.setGroup(language); config.setGroup(language);
TQStringList profileKeywords = TQStringList::split("/", "Empty"); TQStringList profileKeywords = TQStringList::split("/", "Empty");

@ -12,13 +12,13 @@
#ifndef SETTINGS_H #ifndef SETTINGS_H
#define SETTINGS_H #define SETTINGS_H
class KConfig; class TDEConfig;
/// Utility functions for settings /// Utility functions for settings
class Settings class Settings
{ {
public: public:
static TQString terminalEmulatorName( KConfig & config ); static TQString terminalEmulatorName( TDEConfig & config );
static TQString profileByAttributes(const TQString &language, const TQStringList &keywords); static TQString profileByAttributes(const TQString &language, const TQStringList &keywords);
}; };

@ -27,7 +27,7 @@ KDevHTMLPart::KDevHTMLPart()
connect(browserExtension(), TQT_SIGNAL(openURLRequestDelayed(const KURL &,const KParts::URLArgs &)), connect(browserExtension(), TQT_SIGNAL(openURLRequestDelayed(const KURL &,const KParts::URLArgs &)),
this, TQT_SLOT(openURLRequest(const KURL &)) ); this, TQT_SLOT(openURLRequest(const KURL &)) );
connect(this, TQT_SIGNAL(started(KIO::Job *)), this, TQT_SLOT(slotStarted(KIO::Job* ))); connect(this, TQT_SIGNAL(started(TDEIO::Job *)), this, TQT_SLOT(slotStarted(TDEIO::Job* )));
connect(this, TQT_SIGNAL(completed()), this, TQT_SLOT(slotCompleted())); connect(this, TQT_SIGNAL(completed()), this, TQT_SLOT(slotCompleted()));
connect(this, TQT_SIGNAL(canceled(const TQString &)), this, TQT_SLOT(slotCancelled(const TQString &))); connect(this, TQT_SIGNAL(canceled(const TQString &)), this, TQT_SLOT(slotCancelled(const TQString &)));
@ -78,7 +78,7 @@ KDevHTMLPart::KDevHTMLPart()
//END documentation history stuff //END documentation history stuff
//settings: //settings:
KConfig *appConfig = TDEGlobal::config(); TDEConfig *appConfig = TDEGlobal::config();
appConfig->setGroup("KHTMLPart"); appConfig->setGroup("KHTMLPart");
setStandardFont(appConfig->readEntry("StandardFont", setStandardFont(appConfig->readEntry("StandardFont",
settings()->stdFontName())); settings()->stdFontName()));
@ -354,7 +354,7 @@ void KDevHTMLPart::slotStop( )
closeURL(); closeURL();
} }
void KDevHTMLPart::slotStarted( KIO::Job * ) void KDevHTMLPart::slotStarted( TDEIO::Job * )
{ {
stopAction->setEnabled(true); stopAction->setEnabled(true);
} }

@ -64,7 +64,7 @@ signals:
protected slots: protected slots:
void slotStarted(KIO::Job *); void slotStarted(TDEIO::Job *);
void slotCompleted(); void slotCompleted();
void slotCancelled(const TQString &errMsg); void slotCancelled(const TQString &errMsg);

@ -28,7 +28,7 @@
KListViewAction::~KListViewAction() KListViewAction::~KListViewAction()
{ {
KConfig *config = TDEGlobal::config(); TDEConfig *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 = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
if (config && m_view->name()) if (config && m_view->name())
{ {
config->setGroup("KListViewAction"); config->setGroup("KListViewAction");

@ -101,8 +101,8 @@ AbbrevPart::AbbrevPart(TQObject *parent, const char *name, const TQStringList &)
m_prevColumn = -1; m_prevColumn = -1;
m_sequenceLength = 0; m_sequenceLength = 0;
KConfig* config = AbbrevFactory::instance()->config(); TDEConfig* config = AbbrevFactory::instance()->config();
KConfigGroupSaver group( config, "General" ); TDEConfigGroupSaver group( config, "General" );
m_autoWordCompletionEnabled = config->readBoolEntry( "AutoWordCompletion", false ); m_autoWordCompletionEnabled = config->readBoolEntry( "AutoWordCompletion", false );
updateActions(); updateActions();
@ -126,8 +126,8 @@ void AbbrevPart::setAutoWordCompletionEnabled( bool enabled )
if( enabled == m_autoWordCompletionEnabled ) if( enabled == m_autoWordCompletionEnabled )
return; return;
KConfig* config = AbbrevFactory::instance()->config(); TDEConfig* config = AbbrevFactory::instance()->config();
KConfigGroupSaver group( config, "General" ); TDEConfigGroupSaver group( config, "General" );
m_autoWordCompletionEnabled = enabled; m_autoWordCompletionEnabled = enabled;
config->writeEntry( "AutoWordCompletion", m_autoWordCompletionEnabled ); config->writeEntry( "AutoWordCompletion", m_autoWordCompletionEnabled );

@ -116,7 +116,7 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, TQWidget *parent, const ch
m_appsInfo.setAutoDelete(true); m_appsInfo.setAutoDelete(true);
m_tempFiles.setAutoDelete(true); m_tempFiles.setAutoDelete(true);
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
//config->setGroup("AppWizard"); //config->setGroup("AppWizard");
//templates_tabwidget->setCurrentPage(config->readNumEntry("CurrentTab", 0)); //templates_tabwidget->setCurrentPage(config->readNumEntry("CurrentTab", 0));
@ -139,7 +139,7 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, TQWidget *parent, const ch
info->templateFile = TDEGlobal::dirs()->findResource("apptemplates", *it); info->templateFile = TDEGlobal::dirs()->findResource("apptemplates", *it);
info->templateName = (*it); info->templateName = (*it);
KConfig templateConfig(info->templateFile); TDEConfig templateConfig(info->templateFile);
templateConfig.setGroup("General"); templateConfig.setGroup("General");
info->name = templateConfig.readEntry("Name"); info->name = templateConfig.readEntry("Name");
@ -186,7 +186,7 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, TQWidget *parent, const ch
if( !(*include).isEmpty() ) if( !(*include).isEmpty() )
{ {
TQString file = KMacroExpander::expandMacros( ( *include ), info->subMap); TQString file = KMacroExpander::expandMacros( ( *include ), info->subMap);
KConfig tmpCfg( file ); TDEConfig tmpCfg( file );
tmpCfg.copyTo( "", &templateConfig); tmpCfg.copyTo( "", &templateConfig);
kdDebug(9010) << "Merging: " << tmpCfg.name() << endl; kdDebug(9010) << "Merging: " << tmpCfg.name() << endl;
} }
@ -643,7 +643,7 @@ void AppWizardDialog::accept()
kdDebug( 9010 ) << "Process dir " << (*dirIt).dir << endl; kdDebug( 9010 ) << "Process dir " << (*dirIt).dir << endl;
if( m_pCurrentAppInfo->subMap[(*dirIt).option] != "false" ) if( m_pCurrentAppInfo->subMap[(*dirIt).option] != "false" )
{ {
if( ! KIO::NetAccess::mkdir( (*dirIt).dir, this ) ) if( ! TDEIO::NetAccess::mkdir( (*dirIt).dir, this ) )
{ {
KMessageBox::sorry(this, i18n("The directory %1 cannot be created.").arg( (*dirIt).dir ) ); KMessageBox::sorry(this, i18n("The directory %1 cannot be created.").arg( (*dirIt).dir ) );
return; return;
@ -786,14 +786,14 @@ bool AppWizardDialog::copyFile( const TQString &source, const TQString &dest, bo
else else
{ {
// Copy the source file to the destFile. // Copy the source file to the destFile.
return KIO::NetAccess::copy( source, dest, this ); return TDEIO::NetAccess::copy( source, dest, this );
} }
return true; return true;
} }
void AppWizardDialog::unpackArchive( const KArchiveDirectory *dir, const TQString &dest, bool process ) void AppWizardDialog::unpackArchive( const KArchiveDirectory *dir, const TQString &dest, bool process )
{ {
KIO::NetAccess::mkdir( dest , this ); TDEIO::NetAccess::mkdir( dest , this );
kdDebug(9010) << "Dir : " << dir->name() << " at " << dest << endl; kdDebug(9010) << "Dir : " << dir->name() << " at " << dest << endl;
TQStringList entries = dir->entries(); TQStringList entries = dir->entries();
kdDebug(9010) << "Entries : " << entries.join(",") << endl; kdDebug(9010) << "Entries : " << entries.join(",") << endl;
@ -913,7 +913,7 @@ void AppWizardDialog::destButtonClicked(const TQString& dir)
if(!dir.isEmpty()) { if(!dir.isEmpty()) {
// set new location as default project dir? // set new location as default project dir?
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("General Options"); config->setGroup("General Options");
TQDir defPrjDir( config->readPathEntry("DefaultProjectsDir", TQDir::homeDirPath()) ); TQDir defPrjDir( config->readPathEntry("DefaultProjectsDir", TQDir::homeDirPath()) );
TQDir newDir (dir); TQDir newDir (dir);
@ -1158,7 +1158,7 @@ void AppWizardDialog::removeFavourite()
void AppWizardDialog::populateFavourites() void AppWizardDialog::populateFavourites()
{ {
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup("AppWizard"); config->setGroup("AppWizard");
//favourites are stored in config as a list of templates and a seperate //favourites are stored in config as a list of templates and a seperate
@ -1204,7 +1204,7 @@ void AppWizardDialog::done(int r)
} }
} }
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup("AppWizard"); config->setGroup("AppWizard");
config->writePathEntry("FavTemplates", templatesList); config->writePathEntry("FavTemplates", templatesList);
config->writeEntry("FavNames", iconNamesList); config->writeEntry("FavNames", iconNamesList);
@ -1234,14 +1234,14 @@ void AppWizardDialog::setPermissions(const KArchiveFile *source, TQString dest)
if (source->permissions() & 00100) if (source->permissions() & 00100)
{ {
kdDebug(9010) << "source is executable" << endl; kdDebug(9010) << "source is executable" << endl;
KIO::UDSEntry entry; TDEIO::UDSEntry entry;
KURL kurl = KURL::fromPathOrURL(dest); KURL kurl = KURL::fromPathOrURL(dest);
if (KIO::NetAccess::stat(kurl, entry, 0)) if (TDEIO::NetAccess::stat(kurl, entry, 0))
{ {
KFileItem it(entry, kurl); KFileItem it(entry, kurl);
int mode = it.permissions(); int mode = it.permissions();
kdDebug(9010) << "stat shows permissions: " << mode << endl; kdDebug(9010) << "stat shows permissions: " << mode << endl;
KIO::chmod(KURL::fromPathOrURL(dest), mode | 00100 ); TDEIO::chmod(KURL::fromPathOrURL(dest), mode | 00100 );
} }
} }
} }
@ -1251,23 +1251,23 @@ void AppWizardDialog::setPermissions(const installFile &file)
kdDebug(9010) << "AppWizardDialog::setPermissions(const installFile &file)" << endl; kdDebug(9010) << "AppWizardDialog::setPermissions(const installFile &file)" << endl;
kdDebug(9010) << " dest: " << file.dest << endl; kdDebug(9010) << " dest: " << file.dest << endl;
KIO::UDSEntry sourceentry; TDEIO::UDSEntry sourceentry;
KURL sourceurl = KURL::fromPathOrURL(file.source); KURL sourceurl = KURL::fromPathOrURL(file.source);
if (KIO::NetAccess::stat(sourceurl, sourceentry, 0)) if (TDEIO::NetAccess::stat(sourceurl, sourceentry, 0))
{ {
KFileItem sourceit(sourceentry, sourceurl); KFileItem sourceit(sourceentry, sourceurl);
int sourcemode = sourceit.permissions(); int sourcemode = sourceit.permissions();
if (sourcemode & 00100) if (sourcemode & 00100)
{ {
kdDebug(9010) << "source is executable" << endl; kdDebug(9010) << "source is executable" << endl;
KIO::UDSEntry entry; TDEIO::UDSEntry entry;
KURL kurl = KURL::fromPathOrURL(file.dest); KURL kurl = KURL::fromPathOrURL(file.dest);
if (KIO::NetAccess::stat(kurl, entry, 0)) if (TDEIO::NetAccess::stat(kurl, entry, 0))
{ {
KFileItem it(entry, kurl); KFileItem it(entry, kurl);
int mode = it.permissions(); int mode = it.permissions();
kdDebug(9010) << "stat shows permissions: " << mode << endl; kdDebug(9010) << "stat shows permissions: " << mode << endl;
KIO::chmod(KURL::fromPathOrURL(file.dest), mode | 00100 ); TDEIO::chmod(KURL::fromPathOrURL(file.dest), mode | 00100 );
} }
} }
} }

@ -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(TDEGlobal::dirs()->findResource("appimports", *it)); TDEConfig 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);

@ -32,7 +32,7 @@ ProfileSupport::ProfileSupport(KDevPlugin *parent)
for (KURL::List::const_iterator it = resources.constBegin(); it != resources.constEnd(); ++it) for (KURL::List::const_iterator it = resources.constBegin(); it != resources.constEnd(); ++it)
{ {
KConfig config((*it).path()); TDEConfig config((*it).path());
config.setGroup("General"); config.setGroup("General");
m_templateList += config.readListEntry("List"); m_templateList += config.readListEntry("List");
} }

@ -88,7 +88,7 @@ AStylePart::AStylePart(TQObject *parent, const char *name, const TQStringList &)
void AStylePart::loadGlobal() void AStylePart::loadGlobal()
{ {
// kdDebug(9009) << "Load global"<<endl; // kdDebug(9009) << "Load global"<<endl;
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("AStyle"); config->setGroup("AStyle");
TQString options = config->readEntry("Options","BlockBreak=0,BlockBreakAll=0,BlockIfElse=0,Brackets=Break,BracketsCloseHeaders=0,FStyle=UserDefined,Fill=Tabs,FillCount=4,FillEmptyLines=0,FillForce=0,IndentBlocks=0,IndentBrackets=0,IndentCases=0,IndentClasses=1,IndentLabels=1,IndentNamespaces=1,IndentPreprocessors=0,IndentSwitches=1,KeepBlocks=1,KeepStatements=1,MaxStatement=40,MinConditional=-1,PadOperators=0,PadParenthesesIn=1,PadParenthesesOut=1,PadParenthesesUn=1,"); TQString options = config->readEntry("Options","BlockBreak=0,BlockBreakAll=0,BlockIfElse=0,Brackets=Break,BracketsCloseHeaders=0,FStyle=UserDefined,Fill=Tabs,FillCount=4,FillEmptyLines=0,FillForce=0,IndentBlocks=0,IndentBrackets=0,IndentCases=0,IndentClasses=1,IndentLabels=1,IndentNamespaces=1,IndentPreprocessors=0,IndentSwitches=1,KeepBlocks=1,KeepStatements=1,MaxStatement=40,MinConditional=-1,PadOperators=0,PadParenthesesIn=1,PadParenthesesOut=1,PadParenthesesUn=1,");
m_globalExtensions=TQStringList::split(",",config->readEntry("Extensions",defaultFormatExtensions)); m_globalExtensions=TQStringList::split(",",config->readEntry("Extensions",defaultFormatExtensions));
@ -123,7 +123,7 @@ void AStylePart::saveGlobal()
// kdDebug(9009) << "project before: " <<iter.key() << "="<< iter.data() << endl; // kdDebug(9009) << "project before: " <<iter.key() << "="<< iter.data() << endl;
// } // }
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("AStyle"); config->setGroup("AStyle");
config->writeEntry("Options",options); config->writeEntry("Options",options);
config->writeEntry("Extensions",m_globalExtensions.join(",")); config->writeEntry("Extensions",m_globalExtensions.join(","));

@ -32,7 +32,7 @@ BookmarksConfig::~BookmarksConfig()
*/ */
void BookmarksConfig::writeConfig() void BookmarksConfig::writeConfig()
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("Bookmarks"); config->setGroup("Bookmarks");
config->writeEntry("Context", _context ); config->writeEntry("Context", _context );
@ -49,7 +49,7 @@ void BookmarksConfig::writeConfig()
*/ */
void BookmarksConfig::readConfig() void BookmarksConfig::readConfig()
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("Bookmarks"); config->setGroup("Bookmarks");
_context = config->readPropertyEntry( "Context", 5 ).toInt(); _context = config->readPropertyEntry( "Context", 5 ).toInt();

@ -94,7 +94,7 @@ ClassViewWidget::ClassViewWidget( ClassViewPart * part )
m_actionFollowEditor = new KToggleAction( i18n("Follow Editor"), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotFollowEditor()), m_part->actionCollection(), "classview_follow_editor" ); m_actionFollowEditor = new KToggleAction( i18n("Follow Editor"), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT(slotFollowEditor()), m_part->actionCollection(), "classview_follow_editor" );
KConfig* config = m_part->instance()->config(); TDEConfig* config = m_part->instance()->config();
config->setGroup( "General" ); config->setGroup( "General" );
setViewMode( config->readNumEntry( "ViewMode", KDevelop3ViewMode ) ); setViewMode( config->readNumEntry( "ViewMode", KDevelop3ViewMode ) );
m_doFollowEditor = config->readBoolEntry( "FollowEditor", false ); m_doFollowEditor = config->readBoolEntry( "FollowEditor", false );
@ -102,7 +102,7 @@ ClassViewWidget::ClassViewWidget( ClassViewPart * part )
ClassViewWidget::~ClassViewWidget( ) ClassViewWidget::~ClassViewWidget( )
{ {
KConfig* config = m_part->instance()->config(); TDEConfig* config = m_part->instance()->config();
config->setGroup( "General" ); config->setGroup( "General" );
config->writeEntry( "ViewMode", viewMode() ); config->writeEntry( "ViewMode", viewMode() );
config->writeEntry( "FollowEditor", m_doFollowEditor ); config->writeEntry( "FollowEditor", m_doFollowEditor );

@ -198,7 +198,7 @@ void Navigator::slotCursorPositionChanged()
//FIXME: we assume that background parser delay is set globally in tdeveloprc file //FIXME: we assume that background parser delay is set globally in tdeveloprc file
//for all available language supports //for all available language supports
//this is reasonable assumption because problem reporter should be the same for all languages //this is reasonable assumption because problem reporter should be the same for all languages
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup( "General Options" ); config->setGroup( "General Options" );
int m_delay = config->readNumEntry( "BgParserDelay", 500 ); int m_delay = config->readNumEntry( "BgParserDelay", 500 );

@ -147,7 +147,7 @@ bool CTags2Part::createTagsFile(const TQString& tagFile, const TQString& dir)
*/ */
// get name of the ctags binary // get name of the ctags binary
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->setGroup( "CTAGS" ); config->setGroup( "CTAGS" );
TQString ctagsBinary = config->readEntry( "ctags binary" ).stripWhiteSpace(); TQString ctagsBinary = config->readEntry( "ctags binary" ).stripWhiteSpace();
if ( ctagsBinary.isEmpty() ) if ( ctagsBinary.isEmpty() )
@ -180,7 +180,7 @@ void CTags2Part::contextMenu(TQPopupMenu *popup, const Context *context)
if (ident.isEmpty()) if (ident.isEmpty())
return; return;
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->setGroup( "CTAGS" ); config->setGroup( "CTAGS" );
bool showDeclaration = config->readBoolEntry( "ShowDeclaration", true ); bool showDeclaration = config->readBoolEntry( "ShowDeclaration", true );
bool showDefinition = config->readBoolEntry( "ShowDefinition", true ); bool showDefinition = config->readBoolEntry( "ShowDefinition", true );
@ -223,7 +223,7 @@ void CTags2Part::gotoTagForTypes( TQStringList const & types )
if ( list.count() < 1 ) return; if ( list.count() < 1 ) return;
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->setGroup("CTAGS"); config->setGroup("CTAGS");
bool jumpToFirst = config->readBoolEntry( "JumpToFirst", false ); bool jumpToFirst = config->readBoolEntry( "JumpToFirst", false );

@ -73,7 +73,7 @@ void CTags2SettingsWidget::loadSettings()
TQStringList activeTagsFiles = DomUtil::readListEntry(dom, "/ctagspart/activeTagsFiles", "file"); TQStringList activeTagsFiles = DomUtil::readListEntry(dom, "/ctagspart/activeTagsFiles", "file");
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->setGroup( "CTAGS" ); config->setGroup( "CTAGS" );
showDeclarationBox->setChecked( config->readBoolEntry( "ShowDeclaration", true ) ); showDeclarationBox->setChecked( config->readBoolEntry( "ShowDeclaration", true ) );
showDefinitionBox->setChecked( config->readBoolEntry( "ShowDefinition", true ) ); showDefinitionBox->setChecked( config->readBoolEntry( "ShowDefinition", true ) );
@ -102,7 +102,7 @@ void CTags2SettingsWidget::storeSettings()
DomUtil::writeEntry( dom, "/ctagspart/customArguments", tagfileCustomEdit->text() ); DomUtil::writeEntry( dom, "/ctagspart/customArguments", tagfileCustomEdit->text() );
DomUtil::writeEntry( dom, "/ctagspart/customTagfilePath", tagfilePath->url() ); DomUtil::writeEntry( dom, "/ctagspart/customTagfilePath", tagfilePath->url() );
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->setGroup( "CTAGS" ); config->setGroup( "CTAGS" );
config->writeEntry( "ShowDeclaration", showDeclarationBox->isChecked() ); config->writeEntry( "ShowDeclaration", showDeclarationBox->isChecked() );
config->writeEntry( "ShowDefinition", showDefinitionBox->isChecked() ); config->writeEntry( "ShowDefinition", showDefinitionBox->isChecked() );

@ -44,7 +44,7 @@ TQStringList KDiffTextEdit::extPartsTranslated;
KDiffTextEdit::KDiffTextEdit( TQWidget* parent, const char* name ): TQTextEdit( parent, name ) KDiffTextEdit::KDiffTextEdit( TQWidget* parent, const char* name ): TQTextEdit( parent, name )
{ {
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup( "Diff" ); config->setGroup( "Diff" );
_highlight = config->readBoolEntry( "Highlight", true ); _highlight = config->readBoolEntry( "Highlight", true );
@ -53,7 +53,7 @@ KDiffTextEdit::KDiffTextEdit( TQWidget* parent, const char* name ): TQTextEdit(
KDiffTextEdit::~KDiffTextEdit() KDiffTextEdit::~KDiffTextEdit()
{ {
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup( "Diff" ); config->setGroup( "Diff" );
config->writeEntry( "Highlight", _highlight ); config->writeEntry( "Highlight", _highlight );
@ -256,7 +256,7 @@ void DiffWidget::slotAppend( const TQString& str )
} }
// internally for the TextEdit only! // internally for the TextEdit only!
void DiffWidget::slotAppend( KIO::Job*, const TQByteArray& ba ) void DiffWidget::slotAppend( TDEIO::Job*, const TQByteArray& ba )
{ {
slotAppend( TQString( ba ) ); slotAppend( TQString( ba ) );
} }
@ -305,13 +305,13 @@ void DiffWidget::openURL( const KURL& url )
if ( job ) if ( job )
job->kill(); job->kill();
KIO::TransferJob* job = KIO::get( url ); TDEIO::TransferJob* job = TDEIO::get( url );
if ( !job ) if ( !job )
return; return;
connect( job, TQT_SIGNAL(data( KIO::Job *, const TQByteArray & )), connect( job, TQT_SIGNAL(data( TDEIO::Job *, const TQByteArray & )),
this, TQT_SLOT(slotAppend( KIO::Job*, const TQByteArray& )) ); this, TQT_SLOT(slotAppend( TDEIO::Job*, const TQByteArray& )) );
connect( job, TQT_SIGNAL(result( KIO::Job * )), connect( job, TQT_SIGNAL(result( TDEIO::Job * )),
this, TQT_SLOT(slotFinished()) ); this, TQT_SLOT(slotFinished()) );
} }

@ -21,7 +21,7 @@
class KTempFile; class KTempFile;
class DiffPart; class DiffPart;
namespace KIO { namespace TDEIO {
class Job; class Job;
} }
@ -80,7 +80,7 @@ private slots:
/** appends a piece of "diff" */ /** appends a piece of "diff" */
void slotAppend( const TQString& str ); void slotAppend( const TQString& str );
/** overloaded for convenience */ /** overloaded for convenience */
void slotAppend( KIO::Job*, const TQByteArray& ba ); void slotAppend( TDEIO::Job*, const TQByteArray& ba );
/** call this when the whole "diff" has been sent. /** call this when the whole "diff" has been sent.
* Don't call slotAppend afterwards! * Don't call slotAppend afterwards!
*/ */
@ -100,7 +100,7 @@ private:
private: private:
DiffPart * m_part; DiffPart * m_part;
KDiffTextEdit* te; KDiffTextEdit* te;
KIO::Job* job; TDEIO::Job* job;
KParts::ReadOnlyPart* extPart; KParts::ReadOnlyPart* extPart;
KTempFile* tempFile; KTempFile* tempFile;
TQString rawDiff; TQString rawDiff;

@ -191,7 +191,7 @@ void DistpartDialog::slotuploadSubmitPushButtonPressed() {
kdDebug() << "Implement ftp.kde.org & apps.kde.com ftp transfer" << endl; kdDebug() << "Implement ftp.kde.org & apps.kde.com ftp transfer" << endl;
else { else {
for(unsigned int i=0; i< uploadFileListBox->count(); i++) for(unsigned int i=0; i< uploadFileListBox->count(); i++)
KIO::NetAccess::copy(KURL::fromPathOrURL( uploadFileListBox->text(i) ), TDEIO::NetAccess::copy(KURL::fromPathOrURL( uploadFileListBox->text(i) ),
KURL::fromPathOrURL( getuploadURLLineEditText() + uploadFileListBox->text(i).replace(TQRegExp("[^/]*/"),"") )); KURL::fromPathOrURL( getuploadURLLineEditText() + uploadFileListBox->text(i).replace(TQRegExp("[^/]*/"),"") ));
} }
} }

@ -63,7 +63,7 @@ DocGlobalConfigWidget::DocGlobalConfigWidget(DocumentationPart *part,
(*it)->loadCatalogConfiguration( m_View ); (*it)->loadCatalogConfiguration( m_View );
} }
KConfig *config = m_part->config(); TDEConfig *config = m_part->config();
//read full text search settings //read full text search settings
config->setGroup("htdig"); config->setGroup("htdig");
TQString databaseDir = kapp->dirs()->saveLocation("data", TQString databaseDir = kapp->dirs()->saveLocation("data",
@ -105,7 +105,7 @@ DocGlobalConfigWidget::DocGlobalConfigWidget(DocumentationPart *part,
//font sizes and zoom levels //font sizes and zoom levels
KHTMLPart htmlpart; KHTMLPart htmlpart;
KConfig *appConfig = TDEGlobal::config(); TDEConfig *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()));
@ -173,7 +173,7 @@ void DocGlobalConfigWidget::accept()
(*it)->reinit(m_widget->contents(), m_widget->index(), TQStringList()); (*it)->reinit(m_widget->contents(), m_widget->index(), TQStringList());
} }
KConfig *config = m_part->config(); TDEConfig *config = m_part->config();
//write full text search settings //write full text search settings
config->setGroup("htdig"); config->setGroup("htdig");
config->writePathEntry("databaseDir", DocUtils::envURL(databaseDirEdit)); config->writePathEntry("databaseDir", DocUtils::envURL(databaseDirEdit));
@ -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 = TDEGlobal::config(); TDEConfig *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 = TDEGlobal::config(); TDEConfig *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"));

@ -183,7 +183,7 @@ void DocumentationPart::insertConfigWidget(const KDialogBase *dlg, TQWidget *pag
} }
} }
KConfig *DocumentationPart::config() TDEConfig *DocumentationPart::config()
{ {
return DocumentationFactory::instance()->config(); return DocumentationFactory::instance()->config();
} }
@ -508,7 +508,7 @@ void DocumentationPart::contextMenu(TQPopupMenu *popup, const Context *context)
bool DocumentationPart::hasContextFeature(ContextFeature feature) bool DocumentationPart::hasContextFeature(ContextFeature feature)
{ {
KConfig *config = DocumentationFactory::instance()->config(); TDEConfig *config = DocumentationFactory::instance()->config();
TQString group = config->group(); TQString group = config->group();
config->setGroup("Context Features"); config->setGroup("Context Features");
switch (feature) switch (feature)
@ -535,7 +535,7 @@ bool DocumentationPart::hasContextFeature(ContextFeature feature)
void DocumentationPart::setContextFeature(ContextFeature feature, bool b) void DocumentationPart::setContextFeature(ContextFeature feature, bool b)
{ {
KConfig *config = DocumentationFactory::instance()->config(); TDEConfig *config = DocumentationFactory::instance()->config();
TQString group = config->group(); TQString group = config->group();
config->setGroup("Context Features"); config->setGroup("Context Features");
TQString key; TQString key;
@ -687,7 +687,7 @@ void DocumentationPart::setAssistantUsed(bool b)
{ {
m_assistantUsed = b; m_assistantUsed = b;
//use global config to store different settings for kdevassistant and tdevelop //use global config to store different settings for kdevassistant and tdevelop
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("Documentation"); config->setGroup("Documentation");
config->writeEntry("UseAssistant", isAssistantUsed()); config->writeEntry("UseAssistant", isAssistantUsed());
} }
@ -735,7 +735,7 @@ void DocumentationPart::callAssistant(const TQCString &interface, const TQCStrin
void DocumentationPart::loadSettings() void DocumentationPart::loadSettings()
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("Documentation"); config->setGroup("Documentation");
m_assistantUsed = config->readBoolEntry("UseAssistant", false); m_assistantUsed = config->readBoolEntry("UseAssistant", false);

@ -27,7 +27,7 @@
class FindDocumentation; class FindDocumentation;
class DocumentationWidget; class DocumentationWidget;
class IndexBox; class IndexBox;
class KConfig; class TDEConfig;
class KDialogBase; class KDialogBase;
class ConfigWidgetProxy; class ConfigWidgetProxy;
class DocumentationPlugin; class DocumentationPlugin;
@ -84,7 +84,7 @@ signals:
protected: protected:
void loadDocumentationPlugins(); void loadDocumentationPlugins();
KConfig *config(); TDEConfig *config();
void setupActions(); void setupActions();
void loadSettings(); void loadSettings();
void saveProjectDocumentationInfo(); void saveProjectDocumentationInfo();

@ -69,7 +69,7 @@ DocumentationWidget::DocumentationWidget(DocumentationPart *part)
DocumentationWidget::~DocumentationWidget() DocumentationWidget::~DocumentationWidget()
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("Documentation"); config->setGroup("Documentation");
config->writeEntry("LastPage", m_tab->currentIndex()); config->writeEntry("LastPage", m_tab->currentIndex());
} }

@ -24,7 +24,7 @@
#include "find_documentation_optionsbase.h" #include "find_documentation_optionsbase.h"
class TQCheckListItem; class TQCheckListItem;
class KConfig; class TDEConfig;
class FindDocumentationOptions : public FindDocumentationOptionsBase class FindDocumentationOptions : public FindDocumentationOptionsBase
{ {
@ -60,7 +60,7 @@ private:
TQCheckListItem *m_google_item; TQCheckListItem *m_google_item;
TQCheckListItem *m_contents_item; TQCheckListItem *m_contents_item;
KConfig* config; TDEConfig* config;
}; };
#endif #endif

@ -253,7 +253,7 @@ int ConfigurationItem::width(const TQFontMetrics &fm, const TQListView *lv, int
//class DocumentationPlugin //class DocumentationPlugin
DocumentationPlugin::DocumentationPlugin(KConfig *pluginConfig, TQObject *parent, const char *name) DocumentationPlugin::DocumentationPlugin(TDEConfig *pluginConfig, TQObject *parent, const char *name)
:TQObject(parent, name), config(pluginConfig), m_indexCreated(false) :TQObject(parent, name), config(pluginConfig), m_indexCreated(false)
{ {
} }

@ -234,7 +234,7 @@ public:
setCapabilities(Index | FullTextSearch); setCapabilities(Index | FullTextSearch);
@endcode @endcode
*/ */
DocumentationPlugin(KConfig *pluginConfig, TQObject *parent =0, const char *name =0); DocumentationPlugin(TDEConfig *pluginConfig, TQObject *parent =0, const char *name =0);
virtual ~DocumentationPlugin(); virtual ~DocumentationPlugin();
/**Returns the i18n name of the plugin.*/ /**Returns the i18n name of the plugin.*/
@ -298,8 +298,8 @@ public:
/**Loads catalog configuration and fills configurationView with ConfigurationItem objects.*/ /**Loads catalog configuration and fills configurationView with ConfigurationItem objects.*/
virtual void loadCatalogConfiguration(KListView *configurationView); virtual void loadCatalogConfiguration(KListView *configurationView);
/**Saves catalog configuration basing on configurationView and /**Saves catalog configuration basing on configurationView and
deletedConfigurationItems contents. If you use KConfig to store configuration, deletedConfigurationItems contents. If you use TDEConfig to store configuration,
it is important that you call KConfig::sync() method after saving.*/ it is important that you call TDEConfig::sync() method after saving.*/
virtual void saveCatalogConfiguration(KListView *configurationView); virtual void saveCatalogConfiguration(KListView *configurationView);
/**Adds new catalog to a configuration.*/ /**Adds new catalog to a configuration.*/
virtual void addCatalogConfiguration(KListView *configurationView, virtual void addCatalogConfiguration(KListView *configurationView,
@ -366,7 +366,7 @@ protected:
TQStringList deletedConfigurationItems; TQStringList deletedConfigurationItems;
/**Configuration object used by a plugin.*/ /**Configuration object used by a plugin.*/
KConfig *config; TDEConfig *config;
private: private:
/**Adds catalog item to catalogs, namedCatalogs and indexes lists and maps.*/ /**Adds catalog item to catalogs, namedCatalogs and indexes lists and maps.*/

@ -82,7 +82,7 @@ TQString DocCHMPlugin::getSpecialData(const TQString& name, KURL url) {
url.addPath("/:" + name); url.addPath("/:" + name);
TQString tmpFile; TQString tmpFile;
if( KIO::NetAccess::download( url, tmpFile, 0 ) ) if( TDEIO::NetAccess::download( url, tmpFile, 0 ) )
{ {
std::filebuf fb; std::filebuf fb;
fb.open (tmpFile.ascii(), std::ios::in); fb.open (tmpFile.ascii(), std::ios::in);
@ -93,7 +93,7 @@ TQString DocCHMPlugin::getSpecialData(const TQString& name, KURL url) {
ret += buf; ret += "\n"; ret += buf; ret += "\n";
} }
fb.close(); fb.close();
KIO::NetAccess::removeTempFile( tmpFile ); TDEIO::NetAccess::removeTempFile( tmpFile );
} else { } else {
kdDebug(9002) << "DocCHMPlugin::getSpecialData could not download data from " << url.url() << endl; kdDebug(9002) << "DocCHMPlugin::getSpecialData could not download data from " << url.url() << endl;
} }

@ -23,7 +23,7 @@
#include <kdevdocumentationplugin.h> #include <kdevdocumentationplugin.h>
#include <tqdom.h> #include <tqdom.h>
class KConfig; class TDEConfig;
class DocQtPlugin : public DocumentationPlugin class DocQtPlugin : public DocumentationPlugin
{ {

@ -35,7 +35,7 @@
#include "chm.h" #include "chm.h"
using namespace KIO; using namespace TDEIO;
extern "C" extern "C"
{ {
@ -100,13 +100,13 @@ void ChmProtocol::get( const KURL& url )
TQString path; TQString path;
if ( !checkNewFile( bigpath, path ) ) { if ( !checkNewFile( bigpath, path ) ) {
error( KIO::ERR_DOES_NOT_EXIST, url.prettyURL() ); error( TDEIO::ERR_DOES_NOT_EXIST, url.prettyURL() );
return; return;
} }
if (m_dirMap.find(path) == m_dirMap.end()) { if (m_dirMap.find(path) == m_dirMap.end()) {
error( KIO::ERR_DOES_NOT_EXIST, url.prettyURL() ); error( TDEIO::ERR_DOES_NOT_EXIST, url.prettyURL() );
return; return;
} }

@ -26,7 +26,7 @@
class TQCString; class TQCString;
class ChmProtocol : public KIO::SlaveBase class ChmProtocol : public TDEIO::SlaveBase
{ {
public: public:
ChmProtocol( const TQCString&, const TQCString& ); ChmProtocol( const TQCString&, const TQCString& );

@ -100,18 +100,18 @@ bool KChmPart::openFile()
m_htmlData.truncate(0); m_htmlData.truncate(0);
m_job = KIO::get( TQString("chm:")+m_file+"/", true, false ); m_job = TDEIO::get( TQString("chm:")+m_file+"/", true, false );
connect( m_job, TQT_SIGNAL( data( KIO::Job *, const TQByteArray &) ), TQT_SLOT( readData( KIO::Job *, const TQByteArray &) ) ); connect( m_job, TQT_SIGNAL( data( TDEIO::Job *, const TQByteArray &) ), TQT_SLOT( readData( TDEIO::Job *, const TQByteArray &) ) );
connect( m_job, TQT_SIGNAL( result( KIO::Job * ) ), TQT_SLOT( jobDone( KIO::Job * ) ) ); connect( m_job, TQT_SIGNAL( result( TDEIO::Job * ) ), TQT_SLOT( jobDone( TDEIO::Job * ) ) );
return true; return true;
} }
void KChmPart::readData(KIO::Job * , const TQByteArray & data) void KChmPart::readData(TDEIO::Job * , const TQByteArray & data)
{ {
m_htmlData += data; m_htmlData += data;
} }
void KChmPart::jobDone( KIO::Job *) void KChmPart::jobDone( TDEIO::Job *)
{ {
m_job=0; m_job=0;
begin(); begin();

@ -64,14 +64,14 @@ class KChmPart : public KDevHTMLPart
virtual bool openURL( const KURL & ); virtual bool openURL( const KURL & );
/* /*
protected slots: protected slots:
void readData(KIO::Job * , const TQByteArray & data); void readData(TDEIO::Job * , const TQByteArray & data);
void jobDone( KIO::Job *); void jobDone( TDEIO::Job *);
*/ */
protected: protected:
//virtual bool openFile(); //virtual bool openFile();
TDEInstance *m_instance; TDEInstance *m_instance;
KParts::BrowserExtension *m_extension; KParts::BrowserExtension *m_extension;
KIO::TransferJob *m_job; TDEIO::TransferJob *m_job;
TQCString m_htmlData; TQCString m_htmlData;
protected slots: protected slots:

@ -123,7 +123,7 @@ void SearchView::updateConfig()
void SearchView::updateIndex() void SearchView::updateIndex()
{ {
runHtdig("-i"); runHtdig("-i");
KConfig *config = m_part->config(); TDEConfig *config = m_part->config();
config->setGroup("htdig"); config->setGroup("htdig");
config->writeEntry("IsSetup", true); config->writeEntry("IsSetup", true);
config->sync(); config->sync();
@ -141,7 +141,7 @@ void tqt_leave_modal(TQWidget *widget);
void SearchView::search() void SearchView::search()
{ {
KConfig *config = m_part->config(); TDEConfig *config = m_part->config();
config->setGroup("htdig"); config->setGroup("htdig");
if (config->readBoolEntry("IsSetup", false) == false) if (config->readBoolEntry("IsSetup", false) == false)
{ {

@ -48,7 +48,7 @@ ProgressDialog::ProgressDialog(bool index, TQWidget *parent, const char *name)
indexdir = kapp->dirs()->saveLocation("data", "kdevdocumentation/search"); indexdir = kapp->dirs()->saveLocation("data", "kdevdocumentation/search");
TQDir d; d.mkdir(indexdir); TQDir d; d.mkdir(indexdir);
KConfig config("kdevdocumentation", true); TDEConfig config("kdevdocumentation", true);
config.setGroup("htdig"); config.setGroup("htdig");
databaseDir = config.readPathEntry("databaseDir", indexdir); databaseDir = config.readPathEntry("databaseDir", indexdir);
@ -300,7 +300,7 @@ bool ProgressDialog::generateIndex()
setState(1); setState(1);
procdone = false; procdone = false;
// run htdig // run htdig
KConfig config("kdevdocumentation", true); TDEConfig config("kdevdocumentation", true);
config.setGroup("htdig"); config.setGroup("htdig");
exe = config.readPathEntry("htdigbin", kapp->dirs()->findExe("htdig")); exe = config.readPathEntry("htdigbin", kapp->dirs()->findExe("htdig"));
if (exe.isEmpty()) if (exe.isEmpty())
@ -365,7 +365,7 @@ void ProgressDialog::htdigExited(TDEProcess *proc)
setFilesDigged(filesToDig); setFilesDigged(filesToDig);
setState(2); setState(2);
KConfig config("kdevdocumentation", true); TDEConfig config("kdevdocumentation", true);
config.setGroup("htdig"); config.setGroup("htdig");
// run htmerge ----------------------------------------------------- // run htmerge -----------------------------------------------------
exe = config.readPathEntry("htmergebin", kapp->dirs()->findExe("htmerge")); exe = config.readPathEntry("htmergebin", kapp->dirs()->findExe("htmerge"));

@ -352,13 +352,13 @@ void FCConfigWidget::copyTemplate(TQString templateUrl, TQString dest, TQString
{ {
KURL destDir; KURL destDir;
destDir.setPath(dest); destDir.setPath(dest);
if (!KIO::NetAccess::exists(destDir, false, 0 )) if (!TDEIO::NetAccess::exists(destDir, false, 0 ))
KIO::NetAccess::mkdir(destDir); TDEIO::NetAccess::mkdir(destDir);
KURL destination; KURL destination;
destination.setPath(dest + destName); destination.setPath(dest + destName);
KIO::NetAccess::upload(templateUrl, destination); TDEIO::NetAccess::upload(templateUrl, destination);
} }
} }
@ -411,7 +411,7 @@ void FCConfigWidget::removetemplate_button_clicked( )
{ {
KURL removedTemplate; KURL removedTemplate;
removedTemplate.setPath(m_part->project()->projectDirectory() + "/templates/" + fctemplates_view->currentItem()->text(0)); removedTemplate.setPath(m_part->project()->projectDirectory() + "/templates/" + fctemplates_view->currentItem()->text(0));
KIO::NetAccess::del(removedTemplate); TDEIO::NetAccess::del(removedTemplate);
TQListViewItem *it = fctemplates_view->currentItem(); TQListViewItem *it = fctemplates_view->currentItem();
if (it->itemBelow()) if (it->itemBelow())
{ {

@ -28,7 +28,7 @@
ProjectviewConfig::ProjectviewConfig(TQWidget *parent, const char *name) ProjectviewConfig::ProjectviewConfig(TQWidget *parent, const char *name)
: ProjectviewConfigBase(parent, name) : ProjectviewConfigBase(parent, name)
{ {
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->setGroup("File List Plugin"); config->setGroup("File List Plugin");
inToolview->setChecked(config->readBoolEntry("ToolbarInToolview", true)); inToolview->setChecked(config->readBoolEntry("ToolbarInToolview", true));
onlyProject->setChecked(config->readBoolEntry("OnlyProjectFiles", false)); onlyProject->setChecked(config->readBoolEntry("OnlyProjectFiles", false));
@ -37,7 +37,7 @@ ProjectviewConfig::ProjectviewConfig(TQWidget *parent, const char *name)
void ProjectviewConfig::accept() void ProjectviewConfig::accept()
{ {
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->setGroup("File List Plugin"); config->setGroup("File List Plugin");
config->writeEntry("ToolbarInToolview", inToolview->isChecked()); config->writeEntry("ToolbarInToolview", inToolview->isChecked());
config->writeEntry("OnlyProjectFiles", onlyProject->isChecked()); config->writeEntry("OnlyProjectFiles", onlyProject->isChecked());

@ -88,7 +88,7 @@ ProjectviewPart::ProjectviewPart(TQObject *parent, const char *name, const TQStr
connect(core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened())); connect(core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()));
connect(core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed())); connect(core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()));
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->setGroup("File List Plugin"); config->setGroup("File List Plugin");
if (config->readBoolEntry("ToolbarInToolview", true)) if (config->readBoolEntry("ToolbarInToolview", true))
{ {
@ -382,7 +382,7 @@ void ProjectviewPart::projectClosed()
void ProjectviewPart::slotOpenProjectView(const TQString &view) void ProjectviewPart::slotOpenProjectView(const TQString &view)
{ {
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->setGroup("File List Plugin"); config->setGroup("File List Plugin");
bool onlyProject = config->readBoolEntry("OnlyProjectFiles", false); bool onlyProject = config->readBoolEntry("OnlyProjectFiles", false);
bool closeOpenFiles = config->readBoolEntry("CloseOpenFiles", true); bool closeOpenFiles = config->readBoolEntry("CloseOpenFiles", true);
@ -535,7 +535,7 @@ void ProjectviewPart::slotSaveAsProjectView(bool askForName)
void ProjectviewPart::writeConfig() void ProjectviewPart::writeConfig()
{ {
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->deleteGroup("ProjectViews", true); config->deleteGroup("ProjectViews", true);
config->setGroup("ProjectViews"); config->setGroup("ProjectViews");
@ -559,7 +559,7 @@ void ProjectviewPart::writeConfig()
void ProjectviewPart::readConfig() void ProjectviewPart::readConfig()
{ {
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
TQMap<TQString, TQString> entries = config->entryMap("ProjectViews"); TQMap<TQString, TQString> entries = config->entryMap("ProjectViews");
m_projectViews.clear(); m_projectViews.clear();

@ -237,7 +237,7 @@ KDevFileSelector::~KDevFileSelector()
//BEGIN Public Methods //BEGIN Public Methods
void KDevFileSelector::readConfig(KConfig *config, const TQString & name) void KDevFileSelector::readConfig(TDEConfig *config, const TQString & name)
{ {
dir->readConfig(config, name + ":dir"); dir->readConfig(config, name + ":dir");
dir->setView( KFile::Default ); dir->setView( KFile::Default );
@ -288,7 +288,7 @@ void KDevFileSelector::initialDirChangeHack()
setDir( waitingDir ); setDir( waitingDir );
} }
void KDevFileSelector::setupToolbar( KConfig *config ) void KDevFileSelector::setupToolbar( TDEConfig *config )
{ {
toolbar->clear(); toolbar->clear();
TQStringList tbactions = config->readListEntry( "toolbar actions", ',' ); TQStringList tbactions = config->readListEntry( "toolbar actions", ',' );
@ -311,7 +311,7 @@ void KDevFileSelector::setupToolbar( KConfig *config )
} }
} }
void KDevFileSelector::writeConfig(KConfig *config, const TQString & name) void KDevFileSelector::writeConfig(TDEConfig *config, const TQString & name)
{ {
dir->writeConfig(config,name + ":dir"); dir->writeConfig(config,name + ":dir");
@ -686,7 +686,7 @@ KFSConfigPage::KFSConfigPage( TQWidget *parent, const char *name, KDevFileSelect
void KFSConfigPage::apply() void KFSConfigPage::apply()
{ {
KConfig *config = fileSelector->m_part->instance()->config(); TDEConfig *config = fileSelector->m_part->instance()->config();
config->setGroup( "fileselector" ); config->setGroup( "fileselector" );
// toolbar // toolbar
TQStringList l; TQStringList l;
@ -741,7 +741,7 @@ void KFSConfigPage::reload()
void KFSConfigPage::init() void KFSConfigPage::init()
{ {
KConfig *config = fileSelector->m_part->instance()->config(); TDEConfig *config = fileSelector->m_part->instance()->config();
config->setGroup( "fileselector" ); config->setGroup( "fileselector" );
// toolbar // toolbar
TQStringList l = config->readListEntry( "toolbar actions", ',' ); TQStringList l = config->readListEntry( "toolbar actions", ',' );

@ -116,9 +116,9 @@ public:
TQWidget * parent = 0, const char * name = 0 ); TQWidget * parent = 0, const char * name = 0 );
~KDevFileSelector(); ~KDevFileSelector();
void readConfig( KConfig *, const TQString & ); void readConfig( TDEConfig *, const TQString & );
void writeConfig( KConfig *, const TQString & ); void writeConfig( TDEConfig *, const TQString & );
void setupToolbar( KConfig * ); void setupToolbar( TDEConfig * );
void setView( KFile::FileView ); void setView( KFile::FileView );
KDevDirOperator *dirOperator(){ return dir; } KDevDirOperator *dirOperator(){ return dir; }
KActionCollection *actionCollection() { return mActionCollection; }; KActionCollection *actionCollection() { return mActionCollection; };

@ -112,9 +112,9 @@ void FileViewPart::loadSettings()
unknown = TQColor( white ), unknown = TQColor( white ),
defaultColor = TQColor( white ); defaultColor = TQColor( white );
KConfig *cfg = instance()->config(); TDEConfig *cfg = instance()->config();
KConfigGroupSaver gs( cfg, "VCS Colors" ); TDEConfigGroupSaver gs( cfg, "VCS Colors" );
vcsColors.added = cfg->readColorEntry( "FileAddedColor", &added ); vcsColors.added = cfg->readColorEntry( "FileAddedColor", &added );
vcsColors.updated = cfg->readColorEntry( "FileUpdatedColor", &updated ); vcsColors.updated = cfg->readColorEntry( "FileUpdatedColor", &updated );
vcsColors.sticky = cfg->readColorEntry( "FileStickyColor", &sticky ); vcsColors.sticky = cfg->readColorEntry( "FileStickyColor", &sticky );
@ -130,9 +130,9 @@ void FileViewPart::loadSettings()
void FileViewPart::storeSettings() void FileViewPart::storeSettings()
{ {
KConfig *cfg = instance()->config(); TDEConfig *cfg = instance()->config();
// VCS colors // VCS colors
KConfigGroupSaver gs( cfg, "VCS Colors" ); TDEConfigGroupSaver gs( cfg, "VCS Colors" );
cfg->writeEntry( "FileAddedColor", vcsColors.added ); cfg->writeEntry( "FileAddedColor", vcsColors.added );
cfg->writeEntry( "FileUpdatedColor", vcsColors.updated ); cfg->writeEntry( "FileUpdatedColor", vcsColors.updated );
cfg->writeEntry( "FileStickyColor", vcsColors.sticky ); cfg->writeEntry( "FileStickyColor", vcsColors.sticky );

@ -51,7 +51,7 @@ ShellFilterDialog::ShellFilterDialog()
m_proc = 0; m_proc = 0;
KConfig *config = FilterFactory::instance()->config(); TDEConfig *config = FilterFactory::instance()->config();
config->setGroup("General"); config->setGroup("General");
combo->insertStringList(config->readListEntry("filteritems")); combo->insertStringList(config->readListEntry("filteritems"));
} }
@ -67,7 +67,7 @@ ShellFilterDialog::~ShellFilterDialog()
for (int i=0; i < combo->count(); ++i) for (int i=0; i < combo->count(); ++i)
list << combo->text(i); list << combo->text(i);
KConfig *config = FilterFactory::instance()->config(); TDEConfig *config = FilterFactory::instance()->config();
config->setGroup("General"); config->setGroup("General");
config->writeEntry("filteritems", list); config->writeEntry("filteritems", list);
} }

@ -52,7 +52,7 @@ ShellInsertDialog::ShellInsertDialog()
connect( combo->lineEdit(), TQT_SIGNAL(textChanged( const TQString &)), this, TQT_SLOT(executeTextChanged( const TQString &))); connect( combo->lineEdit(), TQT_SIGNAL(textChanged( const TQString &)), this, TQT_SLOT(executeTextChanged( const TQString &)));
m_proc = 0; m_proc = 0;
KConfig *config = FilterFactory::instance()->config(); TDEConfig *config = FilterFactory::instance()->config();
config->setGroup("General"); config->setGroup("General");
TQStringList items = config->readListEntry("InsertItems"); TQStringList items = config->readListEntry("InsertItems");
combo->insertStringList(items); combo->insertStringList(items);
@ -71,7 +71,7 @@ ShellInsertDialog::~ShellInsertDialog()
for (int i=0; i < combo->count(); ++i) for (int i=0; i < combo->count(); ++i)
list << combo->text(i); list << combo->text(i);
KConfig *config = FilterFactory::instance()->config(); TDEConfig *config = FilterFactory::instance()->config();
config->setGroup("General"); config->setGroup("General");
config->writeEntry("InsertItems", list); config->writeEntry("InsertItems", list);
} }

@ -19,7 +19,7 @@
#include <klineedit.h> #include <klineedit.h>
class KConfig; class TDEConfig;
class KURLRequester; class KURLRequester;
class TQPushButton; class TQPushButton;
class GrepViewPart; class GrepViewPart;
@ -90,7 +90,7 @@ private:
TQCheckBox *no_find_err_box; TQCheckBox *no_find_err_box;
TQCheckBox *case_sens_box; TQCheckBox *case_sens_box;
TQCheckBox *keep_output_box; TQCheckBox *keep_output_box;
KConfig* config; TDEConfig* config;
TQPushButton *search_button; TQPushButton *search_button;
TQPushButton *synch_button; TQPushButton *synch_button;
GrepViewPart * m_part; GrepViewPart * m_part;

@ -104,7 +104,7 @@ void KonsoleViewWidget::setDirectory(const KURL &dirUrl)
{ {
kdDebug(9035) << k_funcinfo << "Changing dirUrl.path() == " << dirUrl.path() << endl; kdDebug(9035) << k_funcinfo << "Changing dirUrl.path() == " << dirUrl.path() << endl;
kdDebug(9035) << k_funcinfo << "Changing part->url.path() == " << part->url().path() << endl; kdDebug(9035) << k_funcinfo << "Changing part->url.path() == " << part->url().path() << endl;
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
kdDebug(9035) << k_funcinfo << "SyncTerminalEmulator: " << config->readBoolEntry("SyncTerminalEmulator") << endl; kdDebug(9035) << k_funcinfo << "SyncTerminalEmulator: " << config->readBoolEntry("SyncTerminalEmulator") << endl;

@ -43,7 +43,7 @@ AppOutputWidget::AppOutputWidget(AppOutputViewPart* part)
connect(this, TQT_SIGNAL(executed(TQListBoxItem*)), TQT_SLOT(slotRowSelected(TQListBoxItem*))); connect(this, TQT_SIGNAL(executed(TQListBoxItem*)), TQT_SLOT(slotRowSelected(TQListBoxItem*)));
connect(this, TQT_SIGNAL(rightButtonClicked( TQListBoxItem *, const TQPoint & )), connect(this, TQT_SIGNAL(rightButtonClicked( TQListBoxItem *, const TQPoint & )),
TQT_SLOT(slotContextMenu( TQListBoxItem *, const TQPoint & ))); TQT_SLOT(slotContextMenu( TQListBoxItem *, const TQPoint & )));
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("General Options"); config->setGroup("General Options");
setFont(config->readFontEntry("OutputViewFont")); setFont(config->readFontEntry("OutputViewFont"));
setSelectionMode(TQListBox::Extended); setSelectionMode(TQListBox::Extended);

@ -527,7 +527,7 @@ void MakeWidget::searchItem(int parag)
void MakeWidget::insertStdoutLine( const TQCString& line ) void MakeWidget::insertStdoutLine( const TQCString& line )
{ {
TQString sline; TQString sline;
bool forceCLocale = KConfigGroup( kapp->config(), "MakeOutputWidget" ).readBoolEntry( "ForceCLocale", true ); bool forceCLocale = TDEConfigGroup( kapp->config(), "MakeOutputWidget" ).readBoolEntry( "ForceCLocale", true );
if( forceCLocale ) if( forceCLocale )
sline = TQString::fromAscii( stdoutbuf+line ); sline = TQString::fromAscii( stdoutbuf+line );
@ -542,7 +542,7 @@ void MakeWidget::insertStdoutLine( const TQCString& line )
void MakeWidget::insertStderrLine( const TQCString& line ) void MakeWidget::insertStderrLine( const TQCString& line )
{ {
TQString sline; TQString sline;
bool forceCLocale = KConfigGroup( kapp->config(), "MakeOutputWidget" ).readBoolEntry( "ForceCLocale", true ); bool forceCLocale = TDEConfigGroup( kapp->config(), "MakeOutputWidget" ).readBoolEntry( "ForceCLocale", true );
if( forceCLocale ) { if( forceCLocale ) {
sline = TQString( stderrbuf+line ); sline = TQString( stderrbuf+line );
@ -724,7 +724,7 @@ TQPopupMenu* MakeWidget::createPopupMenu( const TQPoint& pos )
void MakeWidget::toggleLineWrapping() void MakeWidget::toggleLineWrapping()
{ {
m_bLineWrapping = !m_bLineWrapping; m_bLineWrapping = !m_bLineWrapping;
KConfig *pConfig = kapp->config(); TDEConfig *pConfig = kapp->config();
pConfig->setGroup("MakeOutputView"); pConfig->setGroup("MakeOutputView");
pConfig->writeEntry("LineWrapping", m_bLineWrapping); pConfig->writeEntry("LineWrapping", m_bLineWrapping);
pConfig->sync(); pConfig->sync();
@ -759,7 +759,7 @@ void MakeWidget::slotFullCompilerOutput() { setTextFormat( TQt::RichText ); setC
void MakeWidget::setCompilerOutputLevel(EOutputLevel level) void MakeWidget::setCompilerOutputLevel(EOutputLevel level)
{ {
m_compilerOutputLevel = level; m_compilerOutputLevel = level;
KConfig *pConfig = kapp->config(); TDEConfig *pConfig = kapp->config();
pConfig->setGroup("MakeOutputView"); pConfig->setGroup("MakeOutputView");
pConfig->writeEntry("CompilerOutputLevel", (int) level); pConfig->writeEntry("CompilerOutputLevel", (int) level);
pConfig->sync(); pConfig->sync();
@ -769,7 +769,7 @@ void MakeWidget::setCompilerOutputLevel(EOutputLevel level)
void MakeWidget::toggleShowDirNavigMessages() void MakeWidget::toggleShowDirNavigMessages()
{ {
DirectoryItem::setShowDirectoryMessages( !DirectoryItem::getShowDirectoryMessages() ); DirectoryItem::setShowDirectoryMessages( !DirectoryItem::getShowDirectoryMessages() );
KConfig *pConfig = kapp->config(); TDEConfig *pConfig = kapp->config();
pConfig->setGroup("MakeOutputView"); pConfig->setGroup("MakeOutputView");
pConfig->writeEntry("ShowDirNavigMsg", DirectoryItem::getShowDirectoryMessages()); pConfig->writeEntry("ShowDirNavigMsg", DirectoryItem::getShowDirectoryMessages());
pConfig->sync(); pConfig->sync();
@ -778,7 +778,7 @@ void MakeWidget::toggleShowDirNavigMessages()
void MakeWidget::updateSettingsFromConfig() void MakeWidget::updateSettingsFromConfig()
{ {
KConfig *pConfig = kapp->config(); TDEConfig *pConfig = kapp->config();
pConfig->setGroup("General Options"); pConfig->setGroup("General Options");
TQFont outputFont = pConfig->readFontEntry("OutputViewFont"); TQFont outputFont = pConfig->readFontEntry("OutputViewFont");
setFont(outputFont); setFont(outputFont);

@ -28,7 +28,7 @@ scriptingGlobalConfig::scriptingGlobalConfig(scriptingPart *part, TQWidget *pare
: scriptingGlobalConfigBase(parent, name), m_part(part) : scriptingGlobalConfigBase(parent, name), m_part(part)
{ {
// read kconfig and post list to the m_dirs // read kconfig and post list to the m_dirs
KConfig *cfg = kapp->config(); TDEConfig *cfg = kapp->config();
TQStringList searchDirs = cfg->readListEntry("SearchDirs"); TQStringList searchDirs = cfg->readListEntry("SearchDirs");
m_dirs->clear(); m_dirs->clear();
m_dirs->insertStringList(searchDirs); m_dirs->insertStringList(searchDirs);
@ -37,7 +37,7 @@ scriptingGlobalConfig::scriptingGlobalConfig(scriptingPart *part, TQWidget *pare
void scriptingGlobalConfig::accept() void scriptingGlobalConfig::accept()
{ {
// read mdirs and save to kconfig // read mdirs and save to kconfig
KConfig *cfg = kapp->config(); TDEConfig *cfg = kapp->config();
if( !m_dirs->isEnabled() ) if( !m_dirs->isEnabled() )
cfg->writeEntry("SearchDirs", TQStringList() ); cfg->writeEntry("SearchDirs", TQStringList() );
else else

@ -79,11 +79,11 @@ void scriptingPart::init()
void scriptingPart::setupActions() void scriptingPart::setupActions()
{ {
kdDebug() << "Load plugins" << endl; kdDebug() << "Load plugins" << endl;
// Read KConfig and get the list of custom directories. // Read TDEConfig and get the list of custom directories.
TQStringList searchDirs; TQStringList searchDirs;
searchDirs += "kate/scripts"; searchDirs += "kate/scripts";
KConfig *cfg = kapp->config(); TDEConfig *cfg = kapp->config();
searchDirs += cfg->readListEntry("SearchDirs"); searchDirs += cfg->readListEntry("SearchDirs");
unplugActionList(TQString::fromLatin1( "script_actions" )); unplugActionList(TQString::fromLatin1( "script_actions" ));

@ -385,7 +385,7 @@ void SnippetWidget::writeConfig()
As far as some guys might have some snippets stored in the "old" way As far as some guys might have some snippets stored in the "old" way
we need to create a "DEFAULT" group into which we can import all snippets we need to create a "DEFAULT" group into which we can import all snippets
*/ */
void SnippetWidget::initConfigOldVersion(KConfig *cfg) void SnippetWidget::initConfigOldVersion(TDEConfig *cfg)
{ {
SnippetGroup * group = new SnippetGroup(this, "DEFAULT", 1); SnippetGroup * group = new SnippetGroup(this, "DEFAULT", 1);
_list.append(group); _list.append(group);
@ -418,7 +418,7 @@ void SnippetWidget::initConfigOldVersion(KConfig *cfg)
void SnippetWidget::initConfig() void SnippetWidget::initConfig()
{ {
if (_cfg == NULL) if (_cfg == NULL)
_cfg = new KConfig("kdevsnippetrc", false, false); _cfg = new TDEConfig("kdevsnippetrc", false, false);
_cfg->setGroup("SnippetPart"); _cfg->setGroup("SnippetPart");

@ -28,7 +28,7 @@ class TQPoint;
class SnippetDlg; class SnippetDlg;
class SnippetItem; class SnippetItem;
class KTextEdit; class KTextEdit;
class KConfig; class TDEConfig;
/** /**
@ -49,7 +49,7 @@ public:
~SnippetWidget(); ~SnippetWidget();
TQPtrList<SnippetItem> * getList() { return (&_list); } TQPtrList<SnippetItem> * getList() { return (&_list); }
void writeConfig(); void writeConfig();
void initConfigOldVersion(KConfig *cfg); void initConfigOldVersion(TDEConfig *cfg);
SnippetConfig * getSnippetConfig() { return (&_SnippetConfig); } SnippetConfig * getSnippetConfig() { return (&_SnippetConfig); }
@ -71,7 +71,7 @@ private:
TQPtrList<SnippetItem> _list; TQPtrList<SnippetItem> _list;
TQMap<TQString, TQString> _mapSaved; TQMap<TQString, TQString> _mapSaved;
KConfig * _cfg; TDEConfig * _cfg;
SnippetConfig _SnippetConfig; SnippetConfig _SnippetConfig;
public slots: public slots:

@ -46,7 +46,7 @@ TipOfDayPart::TipOfDayPart(TQObject *parent, const char *name, const TQStringLis
TQString TipOfDayPart::getFilename() TQString TipOfDayPart::getFilename()
{ {
KConfig * config = TDEApplication::kApplication()->config(); TDEConfig * config = TDEApplication::kApplication()->config();
config->setGroup("Tip of day plugin"); config->setGroup("Tip of day plugin");
return config->readEntry("TipsFile", "kdevtipofday/tips"); return config->readEntry("TipsFile", "kdevtipofday/tips");
} }

@ -90,7 +90,7 @@ void ToolsPart::updateMenu()
unplugActionList("tools_list"); unplugActionList("tools_list");
KConfig *config = ToolsFactory::instance()->config(); TDEConfig *config = ToolsFactory::instance()->config();
config->setGroup("Tools"); config->setGroup("Tools");
TQStringList list = config->readListEntry("Tools"); TQStringList list = config->readListEntry("Tools");
@ -167,7 +167,7 @@ void ToolsPart::startCommand(TQString cmdline, bool captured, TQString fileName)
void ToolsPart::updateToolsMenu() void ToolsPart::updateToolsMenu()
{ {
KConfig *config = ToolsFactory::instance()->config(); TDEConfig *config = ToolsFactory::instance()->config();
config->setGroup("External Tools"); config->setGroup("External Tools");
TQStringList l = config->readListEntry("Tool Menu"); TQStringList l = config->readListEntry("Tool Menu");
@ -176,7 +176,7 @@ void ToolsPart::updateToolsMenu()
TQStringList::ConstIterator it; TQStringList::ConstIterator it;
for (it = l.begin(); it != l.end(); ++it) { for (it = l.begin(); it != l.end(); ++it) {
TQString menutext = *it; TQString menutext = *it;
KConfig *config = ToolsFactory::instance()->config(); TDEConfig *config = ToolsFactory::instance()->config();
config->setGroup("Tool Menu " + menutext); config->setGroup("Tool Menu " + menutext);
bool isdesktopfile = config->readBoolEntry("DesktopFile"); bool isdesktopfile = config->readBoolEntry("DesktopFile");
KAction *action = new KAction(*it, 0, KAction *action = new KAction(*it, 0,
@ -204,7 +204,7 @@ void ToolsPart::contextMenu(TQPopupMenu *popup, const Context *context)
m_contextFileName = fcontext->urls().first().path(); m_contextFileName = fcontext->urls().first().path();
externalToolMenuEntries.clear(); externalToolMenuEntries.clear();
KConfig *config = ToolsFactory::instance()->config(); TDEConfig *config = ToolsFactory::instance()->config();
config->setGroup("External Tools"); config->setGroup("External Tools");
TQStringList filecontextList = config->readListEntry("File Context"); TQStringList filecontextList = config->readListEntry("File Context");
@ -225,7 +225,7 @@ void ToolsPart::contextMenu(TQPopupMenu *popup, const Context *context)
void ToolsPart::toolsMenuActivated() void ToolsPart::toolsMenuActivated()
{ {
TQString menutext = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name(); TQString menutext = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name();
KConfig *config = ToolsFactory::instance()->config(); TDEConfig *config = ToolsFactory::instance()->config();
config->setGroup("Tool Menu " + menutext); config->setGroup("Tool Menu " + menutext);
TQString cmdline = config->readPathEntry("CommandLine"); TQString cmdline = config->readPathEntry("CommandLine");
bool isdesktopfile = config->readBoolEntry("DesktopFile"); bool isdesktopfile = config->readBoolEntry("DesktopFile");
@ -244,7 +244,7 @@ void ToolsPart::fileContextActivated(int id)
{ {
TQString menutext = externalToolMenuEntries[ id ]; TQString menutext = externalToolMenuEntries[ id ];
KConfig *config = ToolsFactory::instance()->config(); TDEConfig *config = ToolsFactory::instance()->config();
config->setGroup("File Context " + menutext); config->setGroup("File Context " + menutext);
TQString cmdline = config->readPathEntry("CommandLine"); TQString cmdline = config->readPathEntry("CommandLine");
bool captured = config->readBoolEntry("Captured"); bool captured = config->readBoolEntry("Captured");
@ -259,7 +259,7 @@ void ToolsPart::dirContextActivated(int id)
{ {
TQString menutext = externalToolMenuEntries[ id ]; TQString menutext = externalToolMenuEntries[ id ];
KConfig *config = ToolsFactory::instance()->config(); TDEConfig *config = ToolsFactory::instance()->config();
config->setGroup("Dir Context " + menutext); config->setGroup("Dir Context " + menutext);
TQString cmdline = config->readPathEntry("CommandLine"); TQString cmdline = config->readPathEntry("CommandLine");
bool captured = config->readBoolEntry("Captured"); bool captured = config->readBoolEntry("Captured");

@ -88,7 +88,7 @@ void ToolsConfig::fill()
{ {
_entries.clear(); _entries.clear();
KConfig *config = ToolsFactory::instance()->config(); TDEConfig *config = ToolsFactory::instance()->config();
config->setGroup("Tools"); config->setGroup("Tools");
TQStringList list = config->readListEntry("Tools"); TQStringList list = config->readListEntry("Tools");
@ -138,7 +138,7 @@ void ToolsConfig::toTree()
void ToolsConfig::accept() void ToolsConfig::accept()
{ {
KConfig *config = ToolsFactory::instance()->config(); TDEConfig *config = ToolsFactory::instance()->config();
config->setGroup("Tools"); config->setGroup("Tools");
TQStringList l; TQStringList l;

@ -63,7 +63,7 @@ ToolsConfigWidget::~ToolsConfigWidget()
void ToolsConfigWidget::readGroup(const TQString &group, TQDict<ToolsConfigEntry> *entryDict) void ToolsConfigWidget::readGroup(const TQString &group, TQDict<ToolsConfigEntry> *entryDict)
{ {
KConfig *config = ToolsFactory::instance()->config(); TDEConfig *config = ToolsFactory::instance()->config();
config->setGroup("External Tools"); config->setGroup("External Tools");
TQStringList list = config->readListEntry(group); TQStringList list = config->readListEntry(group);
@ -85,7 +85,7 @@ void ToolsConfigWidget::readGroup(const TQString &group, TQDict<ToolsConfigEntry
void ToolsConfigWidget::storeGroup(const TQString &group, const TQDict<ToolsConfigEntry> &entryDict) void ToolsConfigWidget::storeGroup(const TQString &group, const TQDict<ToolsConfigEntry> &entryDict)
{ {
KConfig *config = ToolsFactory::instance()->config(); TDEConfig *config = ToolsFactory::instance()->config();
TQStringList list; TQStringList list;

@ -36,7 +36,7 @@ UIChooserWidget::UIChooserWidget( UIChooserPart * part, TQWidget *parent, const
void UIChooserWidget::load() void UIChooserWidget::load()
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("UI"); config->setGroup("UI");
int mdistyle = config->readNumEntry( "MDIStyle", 1 ); int mdistyle = config->readNumEntry( "MDIStyle", 1 );
@ -86,7 +86,7 @@ void UIChooserWidget::load()
void UIChooserWidget::save() void UIChooserWidget::save()
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("UI"); config->setGroup("UI");
if ( AlwaysShowTabs->isChecked() ) if ( AlwaysShowTabs->isChecked() )

@ -71,7 +71,7 @@ Core::~Core()
bool Core::queryClose() bool Core::queryClose()
{ {
// save the the project to open it automaticly on startup if needed // save the the project to open it automaticly on startup if needed
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup("General Options"); config->setGroup("General Options");
config->writePathEntry("Last Project",ProjectManager::getInstance()->projectFile().url()); config->writePathEntry("Last Project",ProjectManager::getInstance()->projectFile().url());

@ -41,7 +41,7 @@ EditorProxy::EditorProxy()
{ {
m_delayedLineTimer = new TQTimer( this ); m_delayedLineTimer = new TQTimer( this );
connect( m_delayedLineTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT(setLineNumberDelayed()) ); connect( m_delayedLineTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT(setLineNumberDelayed()) );
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
m_delayedViewCreationCompatibleUI = true; m_delayedViewCreationCompatibleUI = true;
@ -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 = TDEGlobal::config(); TDEConfig *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)

@ -53,7 +53,7 @@ void KDevIDEExtension::init()
void KDevIDEExtension::createGlobalSettingsPage(KDialogBase *dlg) void KDevIDEExtension::createGlobalSettingsPage(KDialogBase *dlg)
{ {
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
TQVBox *vbox = dlg->addVBoxPage(i18n("General"), i18n("General"), BarIcon("tdevelop", KIcon::SizeMedium) ); TQVBox *vbox = dlg->addVBoxPage(i18n("General"), i18n("General"), BarIcon("tdevelop", KIcon::SizeMedium) );
gsw = new SettingsWidget(vbox, "general settings widget"); gsw = new SettingsWidget(vbox, "general settings widget");
@ -87,7 +87,7 @@ void KDevIDEExtension::createGlobalSettingsPage(KDialogBase *dlg)
void KDevIDEExtension::acceptGlobalSettingsPage(KDialogBase *dlg) void KDevIDEExtension::acceptGlobalSettingsPage(KDialogBase *dlg)
{ {
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup("General Options"); config->setGroup("General Options");
config->writeEntry("DesignerApp", gsw->designerButtonGroup->selectedId()); config->writeEntry("DesignerApp", gsw->designerButtonGroup->selectedId());

@ -302,7 +302,7 @@ void MainWindowShare::slotSettings()
ShellExtension::getInstance()->createGlobalSettingsPage(&dlg); ShellExtension::getInstance()->createGlobalSettingsPage(&dlg);
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup("Global Settings Dialog"); config->setGroup("Global Settings Dialog");
int height = config->readNumEntry( "Height", 600 ); int height = config->readNumEntry( "Height", 600 );

@ -60,7 +60,7 @@ Button::Button(ButtonBar *parent, const TQString text, const TQIconSet &icon,
m_clearAccelAction = new KAction(i18n("Clear Accelerator"), 0, m_clearAccelAction = new KAction(i18n("Clear Accelerator"), 0,
TQT_TQOBJECT(this), TQT_SLOT(clearAccel()), TQT_TQOBJECT(this)); TQT_TQOBJECT(this), TQT_SLOT(clearAccel()), TQT_TQOBJECT(this));
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("UI"); config->setGroup("UI");
TQString accel = config->readEntry(TQString("button_%1").arg(text), ""); TQString accel = config->readEntry(TQString("button_%1").arg(text), "");
if (!accel.isEmpty()) if (!accel.isEmpty())
@ -70,7 +70,7 @@ Button::Button(ButtonBar *parent, const TQString text, const TQIconSet &icon,
Button::~Button() Button::~Button()
{ {
// m_buttonBar->removeButton(this); // m_buttonBar->removeButton(this);
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("UI"); config->setGroup("UI");
TQRegExp r("^&([0-9])\\s.*"); TQRegExp r("^&([0-9])\\s.*");

@ -68,7 +68,7 @@ DDockWindow::DDockWindow(DMainWindow *parent, Position position)
break; break;
} }
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("UI"); config->setGroup("UI");
int mode = config->readNumEntry("MDIStyle", 3); int mode = config->readNumEntry("MDIStyle", 3);
Ideal::ButtonMode buttonMode = Ideal::Text; Ideal::ButtonMode buttonMode = Ideal::Text;
@ -103,7 +103,7 @@ DDockWindow::~DDockWindow()
void DDockWindow::setVisible(bool v) void DDockWindow::setVisible(bool v)
{ {
//write dock width to the config file //write dock width to the config file
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
TQString group = TQString("%1").arg(m_name); TQString group = TQString("%1").arg(m_name);
config->setGroup(group); config->setGroup(group);
@ -147,7 +147,7 @@ void DDockWindow::loadSettings()
void DDockWindow::saveSettings() void DDockWindow::saveSettings()
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
TQString group = TQString("%1").arg(m_name); TQString group = TQString("%1").arg(m_name);
int invisibleWidth = 0; int invisibleWidth = 0;
config->setGroup(group); config->setGroup(group);
@ -199,7 +199,7 @@ void DDockWindow::addWidget(const TQString &title, TQWidget *widget, bool skipAc
{ {
//if the widget was selected last time the dock is deleted //if the widget was selected last time the dock is deleted
//we need to show it //we need to show it
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
TQString group = TQString("%1").arg(m_name); TQString group = TQString("%1").arg(m_name);
config->setGroup(group); config->setGroup(group);
if (config->readEntry("ViewLastWidget") == title) if (config->readEntry("ViewLastWidget") == title)

@ -42,7 +42,7 @@ DMainWindow::DMainWindow(TQWidget *parent, const char *name)
void DMainWindow::loadSettings() void DMainWindow::loadSettings()
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("UI"); config->setGroup("UI");
m_openTabAfterCurrent = config->readBoolEntry("OpenNewTabAfterCurrent", true); m_openTabAfterCurrent = config->readBoolEntry("OpenNewTabAfterCurrent", true);
m_showIconsOnTabs = config->readBoolEntry("ShowTabIcons", false); m_showIconsOnTabs = config->readBoolEntry("ShowTabIcons", false);

@ -55,7 +55,7 @@ DTabWidget::DTabWidget(TQWidget *parent, const char *name)
void DTabWidget::loadSettings() void DTabWidget::loadSettings()
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("UI"); config->setGroup("UI");
// m_tabBarShown = config->readBoolEntry("TabBarShown", true); // m_tabBarShown = config->readBoolEntry("TabBarShown", true);
m_tabBarShown = ! config->readNumEntry("TabWidgetVisibility", 0); m_tabBarShown = ! config->readNumEntry("TabWidgetVisibility", 0);

@ -277,7 +277,7 @@ void PartController::editDocumentInternal( const KURL & inputUrl, int lineNum,
} }
// Make sure the URL exists // Make sure the URL exists
if ( !url.isValid() || !KIO::NetAccess::exists(url, false, 0) ) if ( !url.isValid() || !TDEIO::NetAccess::exists(url, false, 0) )
{ {
bool done = false; bool done = false;
@ -289,7 +289,7 @@ void PartController::editDocumentInternal( const KURL & inputUrl, int lineNum,
relURL.addPath( url.url() ); relURL.addPath( url.url() );
kdDebug() << k_funcinfo << "Looking for file in project dir: " << API::getInstance()->project()->projectDirectory() << " url " << url.url() << " transformed to " << relURL.url() << ": " << done << endl; kdDebug() << k_funcinfo << "Looking for file in project dir: " << API::getInstance()->project()->projectDirectory() << " url " << url.url() << " transformed to " << relURL.url() << ": " << done << endl;
if (relURL.isValid() && KIO::NetAccess::exists(relURL, false, 0)) { if (relURL.isValid() && TDEIO::NetAccess::exists(relURL, false, 0)) {
url = relURL; url = relURL;
done = true; done = true;
} }
@ -297,7 +297,7 @@ void PartController::editDocumentInternal( const KURL & inputUrl, int lineNum,
KURL relURL(API::getInstance()->project()->buildDirectory()); KURL relURL(API::getInstance()->project()->buildDirectory());
relURL.addPath( url.url() ); relURL.addPath( url.url() );
kdDebug() << k_funcinfo << "Looking for file in build dir: " << API::getInstance()->project()->buildDirectory() << " url " << url.url() << " transformed to " << relURL.url() << ": " << done << endl; kdDebug() << k_funcinfo << "Looking for file in build dir: " << API::getInstance()->project()->buildDirectory() << " url " << url.url() << " transformed to " << relURL.url() << ": " << done << endl;
if (relURL.isValid() && KIO::NetAccess::exists(relURL, false, 0)) { if (relURL.isValid() && TDEIO::NetAccess::exists(relURL, false, 0)) {
url = relURL; url = relURL;
done = true; done = true;
} }
@ -307,7 +307,7 @@ void PartController::editDocumentInternal( const KURL & inputUrl, int lineNum,
if (!done) { if (!done) {
url = findURLInProject(url); url = findURLInProject(url);
if ( !url.isValid() || !KIO::NetAccess::exists(url, false, 0) ) if ( !url.isValid() || !TDEIO::NetAccess::exists(url, false, 0) )
// See if this url is relative to the current project's directory // See if this url is relative to the current project's directory
url = API::getInstance()->project()->projectDirectory() + "/" + url.path(); url = API::getInstance()->project()->projectDirectory() + "/" + url.path();
@ -316,7 +316,7 @@ void PartController::editDocumentInternal( const KURL & inputUrl, int lineNum,
} }
} }
if ( !done && ( !url.isValid() || !KIO::NetAccess::exists(url, false, 0) )) if ( !done && ( !url.isValid() || !TDEIO::NetAccess::exists(url, false, 0) ))
{ {
// Not found - prompt the user to find it? // Not found - prompt the user to find it?
kdDebug(9000) << "cannot find URL: " << url.url() << endl; kdDebug(9000) << "cannot find URL: " << url.url() << endl;
@ -382,7 +382,7 @@ void PartController::editDocumentInternal( const KURL & inputUrl, int lineNum,
m_openNextAsText = true; m_openNextAsText = true;
} }
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("General Options"); config->setGroup("General Options");
// we don't trust KDE with designer files, let's handle it ourselves // we don't trust KDE with designer files, let's handle it ourselves
@ -547,7 +547,7 @@ void PartController::editDocumentInternal( const KURL & inputUrl, int lineNum,
{ {
if ( dlg.always_open_as_text->isChecked() ) if ( dlg.always_open_as_text->isChecked() )
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("General"); config->setGroup("General");
TQStringList texttypeslist = config->readListEntry( "TextTypes" ); TQStringList texttypeslist = config->readListEntry( "TextTypes" );
texttypeslist << MimeType->name(); texttypeslist << MimeType->name();
@ -1282,7 +1282,7 @@ void PartController::slotOpenFile()
if ( DefaultEncoding.isEmpty() ) if ( DefaultEncoding.isEmpty() )
{ {
// have a peek at katepart's settings: // have a peek at katepart's settings:
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->setGroup("Kate Document Defaults"); config->setGroup("Kate Document Defaults");
DefaultEncoding = config->readEntry("Encoding", TQString() ); DefaultEncoding = config->readEntry("Encoding", TQString() );
} }
@ -1460,7 +1460,7 @@ bool PartController::isDirty( KURL const & url )
bool PartController::reactToDirty( KURL const & url, unsigned char reason ) bool PartController::reactToDirty( KURL const & url, unsigned char reason )
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("Editor"); config->setGroup("Editor");
TQString dirtyAction = config->readEntry( "DirtyAction" ); TQString dirtyAction = config->readEntry( "DirtyAction" );

@ -33,7 +33,7 @@ Profile::Profile(Profile *parent, const TQString &name)
m_parent->addChildProfile(this); m_parent->addChildProfile(this);
TQString profileConfig = locate("data", "tdevelop/profiles" + dirName() + "/profile.config"); TQString profileConfig = locate("data", "tdevelop/profiles" + dirName() + "/profile.config");
KConfig config(profileConfig); TDEConfig config(profileConfig);
config.setGroup("Information"); config.setGroup("Information");
m_genericName = config.readEntry("GenericName"); m_genericName = config.readEntry("GenericName");
@ -84,7 +84,7 @@ TQString Profile::dirName() const
void Profile::save() void Profile::save()
{ {
TQString profileConfig = locateLocal("data", "tdevelop/profiles" + dirName() + "/profile.config"); TQString profileConfig = locateLocal("data", "tdevelop/profiles" + dirName() + "/profile.config");
KConfig config(profileConfig); TDEConfig config(profileConfig);
config.setGroup("Information"); config.setGroup("Information");
config.writeEntry("GenericName", m_genericName); config.writeEntry("GenericName", m_genericName);
@ -167,7 +167,7 @@ bool Profile::remove()
{ {
TQStringList dirs = TDEGlobal::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 TDEIO::NetAccess::del(KURL::fromPathOrURL(dirs[0]), 0);
return false; return false;
} }
@ -201,5 +201,5 @@ KURL::List Profile::resources(const TQString &nameFilter)
void Profile::addResource(const KURL &url) void Profile::addResource(const KURL &url)
{ {
TQString saveLocation = TDEGlobal::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); TDEIO::NetAccess::file_copy(url, KURL::fromPathOrURL(saveLocation), -1, true);
} }

@ -125,7 +125,7 @@ void ProjectManager::createActions( KActionCollection* ac )
void ProjectManager::slotOpenProject() void ProjectManager::slotOpenProject()
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("General Options"); config->setGroup("General Options");
TQString defaultProjectsDir = config->readPathEntry("DefaultProjectsDir", TQDir::homeDirPath()+"/"); TQString defaultProjectsDir = config->readPathEntry("DefaultProjectsDir", TQDir::homeDirPath()+"/");
@ -153,7 +153,7 @@ void ProjectManager::slotProjectOptions()
GeneralInfoWidget *g = new GeneralInfoWidget(*API::getInstance()->projectDom(), box, "general informations widget"); GeneralInfoWidget *g = new GeneralInfoWidget(*API::getInstance()->projectDom(), box, "general informations widget");
connect (&dlg, TQT_SIGNAL(okClicked()), g, TQT_SLOT(accept())); connect (&dlg, TQT_SIGNAL(okClicked()), g, TQT_SLOT(accept()));
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("Project Settings Dialog"); config->setGroup("Project Settings Dialog");
int height = config->readNumEntry( "Height", 600 ); int height = config->readNumEntry( "Height", 600 );
int width = config->readNumEntry( "Width", 800 ); int width = config->readNumEntry( "Width", 800 );
@ -176,7 +176,7 @@ void ProjectManager::loadSettings()
void ProjectManager::saveSettings() void ProjectManager::saveSettings()
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
if (projectLoaded()) if (projectLoaded())
{ {
@ -189,7 +189,7 @@ void ProjectManager::saveSettings()
void ProjectManager::loadDefaultProject() void ProjectManager::loadDefaultProject()
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("General Options"); config->setGroup("General Options");
TQString project = config->readPathEntry("Last Project"); TQString project = config->readPathEntry("Last Project");
bool readProject = config->readBoolEntry("Read Last Project On Startup", true); bool readProject = config->readBoolEntry("Read Last Project On Startup", true);
@ -353,7 +353,7 @@ bool ProjectManager::closeProject( bool exiting )
bool ProjectManager::loadProjectFile() bool ProjectManager::loadProjectFile()
{ {
TQString path; TQString path;
if (!KIO::NetAccess::download(m_info->m_projectURL, path, 0)) { if (!TDEIO::NetAccess::download(m_info->m_projectURL, path, 0)) {
KMessageBox::sorry(TopLevel::getInstance()->main(), KMessageBox::sorry(TopLevel::getInstance()->main(),
i18n("Could not read project file: %1").arg(m_info->m_projectURL.prettyURL())); i18n("Could not read project file: %1").arg(m_info->m_projectURL.prettyURL()));
return false; return false;
@ -376,7 +376,7 @@ bool ProjectManager::loadProjectFile()
"XML error in line %1, column %2:\n%3") "XML error in line %1, column %2:\n%3")
.arg(errorLine).arg(errorCol).arg(errorMsg)); .arg(errorLine).arg(errorCol).arg(errorMsg));
fin.close(); fin.close();
KIO::NetAccess::removeTempFile(path); TDEIO::NetAccess::removeTempFile(path);
return false; return false;
} }
if (m_info->m_document.documentElement().nodeName() != "tdevelop") if (m_info->m_document.documentElement().nodeName() != "tdevelop")
@ -384,12 +384,12 @@ bool ProjectManager::loadProjectFile()
KMessageBox::sorry(TopLevel::getInstance()->main(), KMessageBox::sorry(TopLevel::getInstance()->main(),
i18n("This is not a valid project file.")); i18n("This is not a valid project file."));
fin.close(); fin.close();
KIO::NetAccess::removeTempFile(path); TDEIO::NetAccess::removeTempFile(path);
return false; return false;
} }
fin.close(); fin.close();
KIO::NetAccess::removeTempFile(path); TDEIO::NetAccess::removeTempFile(path);
API::getInstance()->setProjectDom(&m_info->m_document); API::getInstance()->setProjectDom(&m_info->m_document);
@ -419,7 +419,7 @@ bool ProjectManager::saveProjectFile()
} }
API::getInstance()->projectDom()->save(*(fout.textStream()), 2); API::getInstance()->projectDom()->save(*(fout.textStream()), 2);
fout.close(); fout.close();
KIO::NetAccess::upload(fout.name(), m_info->m_projectURL, 0); TDEIO::NetAccess::upload(fout.name(), m_info->m_projectURL, 0);
} }
return true; return true;
@ -637,7 +637,7 @@ bool ProjectManager::loadKDevelop2Project( const KURL & url )
// TQString ProjectManager::profileByAttributes(const TQString &language, const TQStringList &keywords) // TQString ProjectManager::profileByAttributes(const TQString &language, const TQStringList &keywords)
// { // {
// KConfig config(locate("data", "tdevelop/profiles/projectprofiles")); // TDEConfig config(locate("data", "tdevelop/profiles/projectprofiles"));
// config.setGroup(language); // config.setGroup(language);
// //
// TQStringList profileKeywords = TQStringList::split("/", "Empty"); // TQStringList profileKeywords = TQStringList::split("/", "Empty");

@ -249,7 +249,7 @@ void SimpleMainWindow::embedView( DDockWindow::Position pos, TQWidget * view, co
DDockWindow::Position SimpleMainWindow::recallToolViewPosition( const TQString & name, DDockWindow::Position defaultPos ) DDockWindow::Position SimpleMainWindow::recallToolViewPosition( const TQString & name, DDockWindow::Position defaultPos )
{ {
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->setGroup( "DToolDockPosition" ); config->setGroup( "DToolDockPosition" );
TQString position = config->readEntry( name ); TQString position = config->readEntry( name );
@ -268,7 +268,7 @@ DDockWindow::Position SimpleMainWindow::recallToolViewPosition( const TQString &
void SimpleMainWindow::rememberToolViewPosition( const TQString & name, DDockWindow::Position pos ) void SimpleMainWindow::rememberToolViewPosition( const TQString & name, DDockWindow::Position pos )
{ {
KConfig * config = kapp->config(); TDEConfig * config = kapp->config();
config->setGroup( "DToolDockPosition" ); config->setGroup( "DToolDockPosition" );
TQString position = "unknown"; TQString position = "unknown";
@ -353,7 +353,7 @@ void SimpleMainWindow::lowerView(TQWidget * view)
void SimpleMainWindow::loadSettings() void SimpleMainWindow::loadSettings()
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
ProjectManager::getInstance()->loadSettings(); ProjectManager::getInstance()->loadSettings();
applyMainWindowSettings(config, "SimpleMainWindow"); applyMainWindowSettings(config, "SimpleMainWindow");
@ -363,7 +363,7 @@ void SimpleMainWindow::loadSettings()
void SimpleMainWindow::saveSettings( ) void SimpleMainWindow::saveSettings( )
{ {
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
ProjectManager::getInstance()->saveSettings(); ProjectManager::getInstance()->saveSettings();
saveMainWindowSettings(config, "SimpleMainWindow"); saveMainWindowSettings(config, "SimpleMainWindow");

@ -15,7 +15,7 @@
#include <tqstringlist.h> #include <tqstringlist.h>
class CvsServicePart; class CvsServicePart;
class KConfig; class TDEConfig;
class KDevProject; class KDevProject;
/* This class helps when we have to collect a string list from a text /* This class helps when we have to collect a string list from a text

@ -89,7 +89,7 @@ CheckoutDialog::CheckoutDialog( CvsService_stub *cvsService,
// Grab the entries from $HOME/.cvspass // Grab the entries from $HOME/.cvspass
fetchUserCvsRepositories(); fetchUserCvsRepositories();
// And suggest to use the default projects dir set in KDevelop's preferences // And suggest to use the default projects dir set in KDevelop's preferences
KConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup("General Options"); config->setGroup("General Options");
TQString defaultProjectsDir = config->readPathEntry("DefaultProjectsDir", TQDir::homeDirPath()+"/"); TQString defaultProjectsDir = config->readPathEntry("DefaultProjectsDir", TQDir::homeDirPath()+"/");
setWorkDir( defaultProjectsDir ); setWorkDir( defaultProjectsDir );

@ -54,7 +54,7 @@ CvsOptions::CvsOptions()
{ {
kdDebug( 9006 ) << " **** CvsOptions instance CREATED!" << endl; kdDebug( 9006 ) << " **** CvsOptions instance CREATED!" << endl;
// We share some configuration data with cvsservice // We share some configuration data with cvsservice
m_serviceConfig = new KConfig( "cvsservicerc" ); m_serviceConfig = new TDEConfig( "cvsservicerc" );
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

@ -16,7 +16,7 @@
#include <tqdom.h> #include <tqdom.h>
class CvsServicePart; class CvsServicePart;
class KConfig; class TDEConfig;
class KDevProject; class KDevProject;
/* This class represents the command line options for the used cvs commands. /* This class represents the command line options for the used cvs commands.
@ -92,7 +92,7 @@ private:
unsigned int m_compressionLevel; unsigned int m_compressionLevel;
unsigned int m_contextLines; unsigned int m_contextLines;
//! So we can access cvssservice configuration (repositories first of all) //! So we can access cvssservice configuration (repositories first of all)
KConfig *m_serviceConfig; TDEConfig *m_serviceConfig;
static CvsOptions *m_instance; static CvsOptions *m_instance;
CvsOptions(); CvsOptions();

@ -41,7 +41,7 @@ TQStringList KDiffTextEdit::extPartsTranslated;
KDiffTextEdit::KDiffTextEdit( TQWidget* parent, const char* name ): TQTextEdit( parent, name ) KDiffTextEdit::KDiffTextEdit( TQWidget* parent, const char* name ): TQTextEdit( parent, name )
{ {
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup( "Diff" ); config->setGroup( "Diff" );
_highlight = config->readBoolEntry( "Highlight", true ); _highlight = config->readBoolEntry( "Highlight", true );
@ -50,7 +50,7 @@ KDiffTextEdit::KDiffTextEdit( TQWidget* parent, const char* name ): TQTextEdit(
KDiffTextEdit::~KDiffTextEdit() KDiffTextEdit::~KDiffTextEdit()
{ {
KConfig* config = kapp->config(); TDEConfig* config = kapp->config();
config->setGroup( "Diff" ); config->setGroup( "Diff" );
config->writeEntry( "Highlight", _highlight ); config->writeEntry( "Highlight", _highlight );
@ -248,7 +248,7 @@ void DiffWidget::slotAppend( const TQString& str )
} }
// internally for the TextEdit only! // internally for the TextEdit only!
void DiffWidget::slotAppend( KIO::Job*, const TQByteArray& ba ) void DiffWidget::slotAppend( TDEIO::Job*, const TQByteArray& ba )
{ {
slotAppend( TQString( ba ) ); slotAppend( TQString( ba ) );
} }
@ -297,13 +297,13 @@ void DiffWidget::openURL( const KURL& url )
if ( job ) if ( job )
job->kill(); job->kill();
KIO::TransferJob* job = KIO::get( url ); TDEIO::TransferJob* job = TDEIO::get( url );
if ( !job ) if ( !job )
return; return;
connect( job, TQT_SIGNAL(data( KIO::Job *, const TQByteArray & )), connect( job, TQT_SIGNAL(data( TDEIO::Job *, const TQByteArray & )),
this, TQT_SLOT(slotAppend( KIO::Job*, const TQByteArray& )) ); this, TQT_SLOT(slotAppend( TDEIO::Job*, const TQByteArray& )) );
connect( job, TQT_SIGNAL(result( KIO::Job * )), connect( job, TQT_SIGNAL(result( TDEIO::Job * )),
this, TQT_SLOT(slotFinished()) ); this, TQT_SLOT(slotFinished()) );
} }

@ -20,7 +20,7 @@
class KTempFile; class KTempFile;
namespace KIO { namespace TDEIO {
class Job; class Job;
} }
@ -79,7 +79,7 @@ private slots:
/** appends a piece of "diff" */ /** appends a piece of "diff" */
void slotAppend( const TQString& str ); void slotAppend( const TQString& str );
/** overloaded for convenience */ /** overloaded for convenience */
void slotAppend( KIO::Job*, const TQByteArray& ba ); void slotAppend( TDEIO::Job*, const TQByteArray& ba );
/** call this when the whole "diff" has been sent. /** call this when the whole "diff" has been sent.
* Don't call slotAppend afterwards! * Don't call slotAppend afterwards!
*/ */
@ -97,7 +97,7 @@ private:
private: private:
KDiffTextEdit* te; KDiffTextEdit* te;
KIO::Job* job; TDEIO::Job* job;
KParts::ReadOnlyPart* extPart; KParts::ReadOnlyPart* extPart;
KTempFile* tempFile; KTempFile* tempFile;
}; };

@ -36,7 +36,7 @@
#include <kio/netaccess.h> #include <kio/netaccess.h>
using namespace KIO; using namespace TDEIO;
SvnIntegratorDlg::SvnIntegratorDlg( TQWidget *parent, const char *name ) SvnIntegratorDlg::SvnIntegratorDlg( TQWidget *parent, const char *name )
: SvnIntegratorDlgBase( parent, name ) : SvnIntegratorDlgBase( parent, name )
@ -68,7 +68,7 @@ void SvnIntegratorDlg::accept()
TQDataStream s( parms, IO_WriteOnly ); TQDataStream s( parms, IO_WriteOnly );
int cmd = 10; // MKDIR(list) int cmd = 10; // MKDIR(list)
s << cmd << list; s << cmd << list;
KIO::SimpleJob* job = KIO::special( protocolUrl, parms, true ); TDEIO::SimpleJob* job = TDEIO::special( protocolUrl, parms, true );
if( !NetAccess::synchronousRun( job, 0 ) ){ if( !NetAccess::synchronousRun( job, 0 ) ){
KMessageBox::error( this, i18n("Unable to create project directories on repository") ); KMessageBox::error( this, i18n("Unable to create project directories on repository") );
return; return;
@ -79,7 +79,7 @@ void SvnIntegratorDlg::accept()
cmd = 5; //IMPORT cmd = 5; //IMPORT
servURL.setPath( servURL.path() + "/trunk/" ); servURL.setPath( servURL.path() + "/trunk/" );
s2 << cmd << servURL << KURL::fromPathOrURL( m_projectLocation ); s2 << cmd << servURL << KURL::fromPathOrURL( m_projectLocation );
KIO::SimpleJob* importJob = KIO::special( protocolUrl, parms2, true ); TDEIO::SimpleJob* importJob = TDEIO::special( protocolUrl, parms2, true );
if( !NetAccess::synchronousRun( importJob, 0 ) ){ if( !NetAccess::synchronousRun( importJob, 0 ) ){
KMessageBox::error( this, i18n("Unable to import into repository.") ); KMessageBox::error( this, i18n("Unable to import into repository.") );
return; return;
@ -100,7 +100,7 @@ void SvnIntegratorDlg::accept()
int rev = -1; int rev = -1;
s3 << cmd2 << servURL << KURL::fromPathOrURL( m_projectLocation ) << rev << TQString( "HEAD" ); s3 << cmd2 << servURL << KURL::fromPathOrURL( m_projectLocation ) << rev << TQString( "HEAD" );
SimpleJob *job2 = KIO::special( protocolUrl, parms3, true ); SimpleJob *job2 = TDEIO::special( protocolUrl, parms3, true );
if( ! NetAccess::synchronousRun( job2, 0 ) ){ if( ! NetAccess::synchronousRun( job2, 0 ) ){
// Checkout failed // Checkout failed
KMessageBox::error(this, i18n("Unable to checkout from repository.") ); KMessageBox::error(this, i18n("Unable to checkout from repository.") );

@ -40,7 +40,7 @@ public:
~KDevSvnd(); ~KDevSvnd();
k_dcop: k_dcop:
// void addAuthInfo(KIO::AuthInfo, long); // void addAuthInfo(TDEIO::AuthInfo, long);
TQString commitDialog(TQString); TQString commitDialog(TQString);
int sslServerTrustPrompt(TQString certFailMsg, TQString hostname, TQString fingerPrint, TQString validfrom, TQString validuntil, TQString issuerName, TQString ascii_cert ); int sslServerTrustPrompt(TQString certFailMsg, TQString hostname, TQString fingerPrint, TQString validfrom, TQString validuntil, TQString issuerName, TQString ascii_cert );
TQString sslCertFile(); TQString sslCertFile();

@ -51,7 +51,7 @@
#include <kinstance.h> #include <kinstance.h>
#include <kaboutdata.h> #include <kaboutdata.h>
using namespace KIO; using namespace TDEIO;
using namespace SvnGlobal; using namespace SvnGlobal;
subversionCore::subversionCore(subversionPart *part) subversionCore::subversionCore(subversionPart *part)
@ -125,9 +125,9 @@ void subversionCore::resolve( const KURL::List& list ) {
int cmd = 11; int cmd = 11;
bool recurse = true; bool recurse = true;
s << cmd << *it << recurse; s << cmd << *it << recurse;
SimpleJob * job = KIO::special(servURL, parms, true); SimpleJob * job = TDEIO::special(servURL, parms, true);
job->setWindow( m_part->mainWindow()->main() ); job->setWindow( m_part->mainWindow()->main() );
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
} }
} }
@ -141,9 +141,9 @@ void subversionCore::update( const KURL::List& list ) {
int rev = -1; int rev = -1;
s << cmd << list << rev << TQString( "HEAD" ); s << cmd << list << rev << TQString( "HEAD" );
SimpleJob * job = KIO::special(servURL, parms, false); SimpleJob * job = TDEIO::special(servURL, parms, false);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
initProcessDlg( (KIO::Job*)job, i18n("Subversion Update") , i18n("Subversion Update") ); initProcessDlg( (TDEIO::Job*)job, i18n("Subversion Update") , i18n("Subversion Update") );
} }
void subversionCore::diff( const KURL::List& list, const TQString& where){ void subversionCore::diff( const KURL::List& list, const TQString& where){
@ -159,9 +159,9 @@ void subversionCore::diff( const KURL::List& list, const TQString& where){
TQString revkind1 = where; TQString revkind1 = where;
TQString revkind2 = "WORKING"; TQString revkind2 = "WORKING";
s << cmd << *it << *it << rev1 << revkind1 << rev2 << revkind2 << true ; s << cmd << *it << *it << rev1 << revkind1 << rev2 << revkind2 << true ;
KIO::SimpleJob * job = KIO::special(servURL, parms, true); TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, true);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
KIO::NetAccess::synchronousRun( job, 0 ); TDEIO::NetAccess::synchronousRun( job, 0 );
if ( diffresult.count() > 0 ) { if ( diffresult.count() > 0 ) {
//check kompare is available //check kompare is available
if ( !KStandardDirs::findExe( "kompare" ).isNull() ) { if ( !KStandardDirs::findExe( "kompare" ).isNull() ) {
@ -240,9 +240,9 @@ void subversionCore::diffAsync( const KURL &pathOrUrl1, const KURL &pathOrUrl2,
kdDebug(9036) << "diffing async : " << pathOrUrl1 << " and " << pathOrUrl2 << endl; kdDebug(9036) << "diffing async : " << pathOrUrl1 << " and " << pathOrUrl2 << endl;
s << cmd << pathOrUrl1 << pathOrUrl2 << rev1 << revKind1 << rev2 << revKind2 << recurse; s << cmd << pathOrUrl1 << pathOrUrl2 << rev1 << revKind1 << rev2 << revKind2 << recurse;
s << pegdiff; s << pegdiff;
KIO::SimpleJob * job = KIO::special(servURL, parms, false); TDEIO::SimpleJob * job = TDEIO::special(servURL, parms, false);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotDiffResult( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotDiffResult( TDEIO::Job * ) ) );
initProcessDlg( (KIO::Job*)job, pathOrUrl1.prettyURL(), pathOrUrl2.prettyURL() ); initProcessDlg( (TDEIO::Job*)job, pathOrUrl1.prettyURL(), pathOrUrl2.prettyURL() );
} }
void subversionCore::commit( const KURL::List& list, bool recurse, bool keeplocks ) { void subversionCore::commit( const KURL::List& list, bool recurse, bool keeplocks ) {
@ -260,12 +260,12 @@ void subversionCore::commit( const KURL::List& list, bool recurse, bool keeplock
kdDebug(9036) << "adding to list: " << (*it).prettyURL() << endl; kdDebug(9036) << "adding to list: " << (*it).prettyURL() << endl;
s << *it; s << *it;
} }
SimpleJob * job = KIO::special(servURL, parms, false); SimpleJob * job = TDEIO::special(servURL, parms, false);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
if( list.count() == 1 ) if( list.count() == 1 )
initProcessDlg( (KIO::Job*)job, (*(list.begin())).prettyURL() , i18n("Commit to remote repository") ); initProcessDlg( (TDEIO::Job*)job, (*(list.begin())).prettyURL() , i18n("Commit to remote repository") );
else if( list.count() > 1 ) else if( list.count() > 1 )
initProcessDlg( (KIO::Job*)job, i18n("From working copy") , i18n("Commit to remote repository") ); initProcessDlg( (TDEIO::Job*)job, i18n("From working copy") , i18n("Commit to remote repository") );
} }
// Right now, only one item for each action. // Right now, only one item for each action.
void subversionCore::svnLog( const KURL::List& list, void subversionCore::svnLog( const KURL::List& list,
@ -294,10 +294,10 @@ void subversionCore::svnLog( const KURL::List& list,
kdDebug(9036) << "svnCore: adding to list: " << (*it).prettyURL() << endl; kdDebug(9036) << "svnCore: adding to list: " << (*it).prettyURL() << endl;
s << *it; s << *it;
} }
SimpleJob * job = KIO::special(servURL, parms, false); SimpleJob * job = TDEIO::special(servURL, parms, false);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotLogResult( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotLogResult( TDEIO::Job * ) ) );
// progress info. LogView is allowed and meaninful only for one url in KDev3.4 // progress info. LogView is allowed and meaninful only for one url in KDev3.4
initProcessDlg( (KIO::Job*)job, (*(list.begin())).prettyURL() , i18n("Subversion Log View") ); initProcessDlg( (TDEIO::Job*)job, (*(list.begin())).prettyURL() , i18n("Subversion Log View") );
} }
void subversionCore::blame( const KURL &url, UrlMode mode, int revstart, TQString revKindStart, int revend, TQString revKindEnd ) void subversionCore::blame( const KURL &url, UrlMode mode, int revstart, TQString revKindStart, int revend, TQString revKindEnd )
@ -315,9 +315,9 @@ void subversionCore::blame( const KURL &url, UrlMode mode, int revstart, TQStrin
s << cmd << url << (int)mode ; s << cmd << url << (int)mode ;
s << revstart << revKindStart << revend << revKindEnd ; s << revstart << revKindStart << revend << revKindEnd ;
SimpleJob * job = KIO::special(servURL, parms, false); SimpleJob * job = TDEIO::special(servURL, parms, false);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotBlameResult( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotBlameResult( TDEIO::Job * ) ) );
initProcessDlg( (KIO::Job*)job, url.prettyURL() , i18n("Subversion Blame") ); initProcessDlg( (TDEIO::Job*)job, url.prettyURL() , i18n("Subversion Blame") );
} }
void subversionCore::add( const KURL::List& list ) { void subversionCore::add( const KURL::List& list ) {
@ -330,9 +330,9 @@ void subversionCore::add( const KURL::List& list ) {
int cmd = 6; int cmd = 6;
s << cmd << list; s << cmd << list;
// add/delete/revert works on local copy. Don't need to show progress dialog // add/delete/revert works on local copy. Don't need to show progress dialog
SimpleJob * job = KIO::special(servURL, parms, false); SimpleJob * job = TDEIO::special(servURL, parms, false);
job->setWindow( m_part->mainWindow()->main() ); job->setWindow( m_part->mainWindow()->main() );
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
} }
void subversionCore::del( const KURL::List& list ) { void subversionCore::del( const KURL::List& list ) {
@ -344,9 +344,9 @@ void subversionCore::del( const KURL::List& list ) {
int cmd = 7; int cmd = 7;
s << cmd << list; s << cmd << list;
// add/delete/revert works on local copy. Don't need to show progress dialog // add/delete/revert works on local copy. Don't need to show progress dialog
SimpleJob * job = KIO::special(servURL, parms, false); SimpleJob * job = TDEIO::special(servURL, parms, false);
job->setWindow( m_part->mainWindow()->main() ); job->setWindow( m_part->mainWindow()->main() );
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
} }
void subversionCore::revert( const KURL::List& list ) { void subversionCore::revert( const KURL::List& list ) {
@ -357,9 +357,9 @@ void subversionCore::revert( const KURL::List& list ) {
TQDataStream s( parms, IO_WriteOnly ); TQDataStream s( parms, IO_WriteOnly );
int cmd = 8; int cmd = 8;
s << cmd << list; s << cmd << list;
SimpleJob * job = KIO::special(servURL, parms, false); SimpleJob * job = TDEIO::special(servURL, parms, false);
job->setWindow( m_part->mainWindow()->main() ); job->setWindow( m_part->mainWindow()->main() );
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
} }
void subversionCore::checkout() { void subversionCore::checkout() {
@ -375,9 +375,9 @@ void subversionCore::checkout() {
int rev = -1; int rev = -1;
s << cmd << servURL << KURL( wcPath ) << rev << TQString( "HEAD" ); s << cmd << servURL << KURL( wcPath ) << rev << TQString( "HEAD" );
servURL.setProtocol( "kdevsvn+" + servURL.protocol() ); //make sure it starts with "svn" servURL.setProtocol( "kdevsvn+" + servURL.protocol() ); //make sure it starts with "svn"
SimpleJob * job = KIO::special(servURL,parms, true); SimpleJob * job = TDEIO::special(servURL,parms, true);
job->setWindow( m_part->mainWindow()->main() ); job->setWindow( m_part->mainWindow()->main() );
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotEndCheckout( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotEndCheckout( TDEIO::Job * ) ) );
} }
} }
@ -392,9 +392,9 @@ void subversionCore::switchTree( const KURL &path, const KURL &repositUrl,
s << cmd << path << repositUrl ; s << cmd << path << repositUrl ;
s << recurse << revNum << revKind; s << recurse << revNum << revKind;
SimpleJob * job = KIO::special(servURL, parms, false); SimpleJob * job = TDEIO::special(servURL, parms, false);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
initProcessDlg( (KIO::Job*)job, repositUrl.prettyURL() , path.prettyURL() ); initProcessDlg( (TDEIO::Job*)job, repositUrl.prettyURL() , path.prettyURL() );
} }
void subversionCore::switchRelocate( const KURL &path, void subversionCore::switchRelocate( const KURL &path,
@ -407,8 +407,8 @@ void subversionCore::switchRelocate( const KURL &path,
int cmd = 16; int cmd = 16;
s << cmd << path << currentUrl << newUrl << recurse; s << cmd << path << currentUrl << newUrl << recurse;
SimpleJob * job = KIO::special(servURL, parms, false); SimpleJob * job = TDEIO::special(servURL, parms, false);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
// this doesn't contact repository // this doesn't contact repository
} }
@ -422,9 +422,9 @@ void subversionCore::svnCopy( const KURL &src, int srcRev, const TQString &srcRe
int cmd = 17; int cmd = 17;
s << cmd << src << srcRev << srcRevKind << dest; s << cmd << src << srcRev << srcRevKind << dest;
SimpleJob * job = KIO::special(servURL, parms, false); SimpleJob * job = TDEIO::special(servURL, parms, false);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
initProcessDlg( (KIO::Job*)job, src.prettyURL(), dest.prettyURL() ); initProcessDlg( (TDEIO::Job*)job, src.prettyURL(), dest.prettyURL() );
} }
void subversionCore::merge( const KURL &src1, int rev1, TQString revKind1, void subversionCore::merge( const KURL &src1, int rev1, TQString revKind1,
@ -439,9 +439,9 @@ void subversionCore::merge( const KURL &src1, int rev1, TQString revKind1,
s << cmd << src1 << rev1 << revKind1 << src2 << rev2 << revKind2 << wc_path; s << cmd << src1 << rev1 << revKind1 << src2 << rev2 << revKind2 << wc_path;
s << recurse << ignore_ancestry << force << dry_run; s << recurse << ignore_ancestry << force << dry_run;
SimpleJob * job = KIO::special(servURL, parms, false); SimpleJob * job = TDEIO::special(servURL, parms, false);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
initProcessDlg( (KIO::Job*)job, src1.prettyURL() + "\n" + src2.prettyURL() , initProcessDlg( (TDEIO::Job*)job, src1.prettyURL() + "\n" + src2.prettyURL() ,
wc_path.prettyURL() ); wc_path.prettyURL() );
} }
@ -452,10 +452,10 @@ bool subversionCore::clientInfo( KURL path_or_url, bool recurse, TQMap< KURL, Sv
TQDataStream s( parms, IO_WriteOnly ); TQDataStream s( parms, IO_WriteOnly );
int cmd = 15; int cmd = 15;
s << cmd << path_or_url << -1 << TQString("UNSPECIFIED") << -1 << TQString("UNSPECIFIED") << recurse; s << cmd << path_or_url << -1 << TQString("UNSPECIFIED") << -1 << TQString("UNSPECIFIED") << recurse;
SimpleJob *job = KIO::special( servURL, parms, false ); SimpleJob *job = TDEIO::special( servURL, parms, false );
TQMap<TQString,TQString> ma; TQMap<TQString,TQString> ma;
KIO::NetAccess::synchronousRun(job, 0, 0, 0, &ma ); // synchronize TDEIO::NetAccess::synchronousRun(job, 0, 0, 0, &ma ); // synchronize
TQValueList<TQString> keys = ma.keys(); TQValueList<TQString> keys = ma.keys();
TQValueList<TQString>::Iterator begin = keys.begin(), end = keys.end(), it; TQValueList<TQString>::Iterator begin = keys.begin(), end = keys.end(), it;
@ -493,7 +493,7 @@ bool subversionCore::clientInfo( KURL path_or_url, bool recurse, TQMap< KURL, Sv
return true;; return true;;
} }
void subversionCore::slotEndCheckout( KIO::Job * job ) { void subversionCore::slotEndCheckout( TDEIO::Job * job ) {
if ( job->error() ) { if ( job->error() ) {
job->showErrorDialog( m_part->mainWindow()->main() ); job->showErrorDialog( m_part->mainWindow()->main() );
emit checkoutFinished( TQString() ); emit checkoutFinished( TQString() );
@ -501,7 +501,7 @@ void subversionCore::slotEndCheckout( KIO::Job * job ) {
emit checkoutFinished(wcPath); emit checkoutFinished(wcPath);
} }
void subversionCore::slotResult( KIO::Job * job ) { void subversionCore::slotResult( TDEIO::Job * job ) {
if ( job->error() ){ if ( job->error() ){
job->showErrorDialog( m_part->mainWindow()->main() ); job->showErrorDialog( m_part->mainWindow()->main() );
if( job->error() == ERR_CANNOT_LAUNCH_PROCESS ) if( job->error() == ERR_CANNOT_LAUNCH_PROCESS )
@ -512,7 +512,7 @@ void subversionCore::slotResult( KIO::Job * job ) {
) ); ) );
return; return;
} }
KIO::MetaData ma = job->metaData(); TDEIO::MetaData ma = job->metaData();
TQValueList<TQString> keys = ma.keys(); TQValueList<TQString> keys = ma.keys();
qHeapSort( keys ); qHeapSort( keys );
TQValueList<TQString>::Iterator begin = keys.begin(), end = keys.end(), it; TQValueList<TQString>::Iterator begin = keys.begin(), end = keys.end(), it;
@ -529,7 +529,7 @@ void subversionCore::slotResult( KIO::Job * job ) {
} }
} }
} }
void subversionCore::slotLogResult( KIO::Job * job ) void subversionCore::slotLogResult( TDEIO::Job * job )
{ {
if ( job->error() ){ if ( job->error() ){
job->showErrorDialog( m_part->mainWindow()->main() ); job->showErrorDialog( m_part->mainWindow()->main() );
@ -544,7 +544,7 @@ void subversionCore::slotLogResult( KIO::Job * job )
TQValueList<SvnLogHolder> holderList; TQValueList<SvnLogHolder> holderList;
KIO::MetaData ma = job->metaData(); TDEIO::MetaData ma = job->metaData();
TQValueList<TQString> keys = ma.keys(); TQValueList<TQString> keys = ma.keys();
TQRegExp rx( "([0-9]*)(.*)" ); TQRegExp rx( "([0-9]*)(.*)" );
int curIdx, lastIdx; int curIdx, lastIdx;
@ -589,7 +589,7 @@ void subversionCore::slotLogResult( KIO::Job * job )
} }
void subversionCore::slotBlameResult( KIO::Job * job ) void subversionCore::slotBlameResult( TDEIO::Job * job )
{ {
if ( job->error() ){ if ( job->error() ){
job->showErrorDialog( m_part->mainWindow()->main() ); job->showErrorDialog( m_part->mainWindow()->main() );
@ -603,7 +603,7 @@ void subversionCore::slotBlameResult( KIO::Job * job )
} }
TQValueList<SvnBlameHolder> blameList; TQValueList<SvnBlameHolder> blameList;
KIO::MetaData ma = job->metaData(); TDEIO::MetaData ma = job->metaData();
TQValueList<TQString> keys = ma.keys(); TQValueList<TQString> keys = ma.keys();
TQRegExp rx( "([0-9]*)(.*)" ); TQRegExp rx( "([0-9]*)(.*)" );
int curIdx, lastIdx; int curIdx, lastIdx;
@ -659,7 +659,7 @@ void subversionCore::slotBlameResult( KIO::Job * job )
m_part->mainWindow()->raiseView(processWidget()); m_part->mainWindow()->raiseView(processWidget());
} }
void subversionCore::slotDiffResult( KIO::Job * job ) void subversionCore::slotDiffResult( TDEIO::Job * job )
{ {
if ( job->error() ){ if ( job->error() ){
job->showErrorDialog( m_part->mainWindow()->main() ); job->showErrorDialog( m_part->mainWindow()->main() );
@ -671,7 +671,7 @@ void subversionCore::slotDiffResult( KIO::Job * job )
) ); ) );
return; return;
} }
KIO::MetaData ma = job->metaData(); TDEIO::MetaData ma = job->metaData();
TQValueList<TQString> keys = ma.keys(); TQValueList<TQString> keys = ma.keys();
qHeapSort( keys ); qHeapSort( keys );
TQValueList<TQString>::Iterator begin = keys.begin(), end = keys.end(), it; TQValueList<TQString>::Iterator begin = keys.begin(), end = keys.end(), it;
@ -716,16 +716,16 @@ void subversionCore::slotDiffResult( KIO::Job * job )
} }
} }
void subversionCore::initProcessDlg( KIO::Job *job, const TQString &src, const TQString &dest ) void subversionCore::initProcessDlg( TDEIO::Job *job, const TQString &src, const TQString &dest )
{ {
SvnProgressDlg *progress = new SvnProgressDlg( true ); SvnProgressDlg *progress = new SvnProgressDlg( true );
progress->setSourceUrl( src ); progress->setSourceUrl( src );
progress->setDestUrl( dest ); progress->setDestUrl( dest );
progress->setJob( job ); progress->setJob( job );
connect( job, TQT_SIGNAL( totalSize(KIO::Job*, KIO::filesize_t) ), connect( job, TQT_SIGNAL( totalSize(TDEIO::Job*, TDEIO::filesize_t) ),
progress, TQT_SLOT( slotTotalSize (KIO::Job*, KIO::filesize_t) ) ); progress, TQT_SLOT( slotTotalSize (TDEIO::Job*, TDEIO::filesize_t) ) );
connect( job, TQT_SIGNAL( processedSize(KIO::Job*, KIO::filesize_t) ), connect( job, TQT_SIGNAL( processedSize(TDEIO::Job*, TDEIO::filesize_t) ),
progress, TQT_SLOT( slotProcessedSize(KIO::Job*, KIO::filesize_t) ) ); progress, TQT_SLOT( slotProcessedSize(TDEIO::Job*, TDEIO::filesize_t) ) );
} }
void subversionCore::createNewProject( const TQString& // dirName void subversionCore::createNewProject( const TQString& // dirName

@ -78,16 +78,16 @@ public:
void createNewProject( const TQString& dirName, const KURL& importURL, bool init ); void createNewProject( const TQString& dirName, const KURL& importURL, bool init );
KDevVCSFileInfoProvider *fileInfoProvider() const; KDevVCSFileInfoProvider *fileInfoProvider() const;
void initProcessDlg( KIO::Job *job, const TQString &src, const TQString &dest ); void initProcessDlg( TDEIO::Job *job, const TQString &src, const TQString &dest );
// k_dcop: // k_dcop:
// void notification( const TQString&, int,int, const TQString&, int,int ,long int, const TQString& ); // void notification( const TQString&, int,int, const TQString&, int,int ,long int, const TQString& );
private slots: private slots:
void slotEndCheckout( KIO::Job * job ); void slotEndCheckout( TDEIO::Job * job );
void slotResult( KIO::Job * job ); void slotResult( TDEIO::Job * job );
void slotLogResult( KIO::Job * job ); void slotLogResult( TDEIO::Job * job );
void slotBlameResult( KIO::Job * job ); void slotBlameResult( TDEIO::Job * job );
void slotDiffResult( KIO::Job * job ); void slotDiffResult( TDEIO::Job * job );
signals: signals:
void checkoutFinished( TQString dir ); void checkoutFinished( TQString dir );

@ -71,13 +71,13 @@ const VCSFileInfoMap *SVNFileInfoProvider::status( const TQString &dirPath ) {
// Of course, the user cannot get information about the out-of-dateness of his local copy. // Of course, the user cannot get information about the out-of-dateness of his local copy.
s << cmd << KURL( TQFileInfo( rPath ).absFilePath() ) << false/*checkRepos*/ << false /*fullRecurse*/; s << cmd << KURL( TQFileInfo( rPath ).absFilePath() ) << false/*checkRepos*/ << false /*fullRecurse*/;
KIO::SimpleJob *job2 = KIO::special(servURL, parms, false); TDEIO::SimpleJob *job2 = TDEIO::special(servURL, parms, false);
job2->setWindow( m_part->mainWindow()->main() ); job2->setWindow( m_part->mainWindow()->main() );
TQMap<TQString,TQString> ma; TQMap<TQString,TQString> ma;
KIO::NetAccess::synchronousRun(job2, m_part->mainWindow()->main(), 0, 0, &ma ); TDEIO::NetAccess::synchronousRun(job2, m_part->mainWindow()->main(), 0, 0, &ma );
TQValueList<TQString> keys = ma.keys(); TQValueList<TQString> keys = ma.keys();
qHeapSort( keys ); qHeapSort( keys );
@ -154,18 +154,18 @@ bool SVNFileInfoProvider::requestStatus( const TQString &dirPath, void *callerDa
kdDebug(9036) << "DIR : " << rPath << " " << TQFileInfo( rPath ).absFilePath() << endl; kdDebug(9036) << "DIR : " << rPath << " " << TQFileInfo( rPath ).absFilePath() << endl;
s << cmd << KURL( TQFileInfo( rPath ).absFilePath() ) << checkRepos << recursive; s << cmd << KURL( TQFileInfo( rPath ).absFilePath() ) << checkRepos << recursive;
KURL servURL = "kdevsvn+http://fakeserver_this_is_normal_behavior/"; KURL servURL = "kdevsvn+http://fakeserver_this_is_normal_behavior/";
job = KIO::special(servURL, parms, false); job = TDEIO::special(servURL, parms, false);
connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) ); connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
if( checkRepos ) if( checkRepos )
m_part->svncore()->initProcessDlg( job, dirPath, i18n("Subversion File/Directory Status") ); m_part->svncore()->initProcessDlg( job, dirPath, i18n("Subversion File/Directory Status") );
return true; return true;
} }
void SVNFileInfoProvider::slotResult( KIO::Job *j ) { void SVNFileInfoProvider::slotResult( TDEIO::Job *j ) {
if ( j->error() ) if ( j->error() )
j->showErrorDialog( m_part->mainWindow()->main() ); j->showErrorDialog( m_part->mainWindow()->main() );
KIO::MetaData ma = j->metaData(); TDEIO::MetaData ma = j->metaData();
TQValueList<TQString> keys = ma.keys(); TQValueList<TQString> keys = ma.keys();
qHeapSort( keys ); qHeapSort( keys );
TQValueList<TQString>::Iterator begin = keys.begin(), end = keys.end(), it; TQValueList<TQString>::Iterator begin = keys.begin(), end = keys.end(), it;
@ -329,12 +329,12 @@ const VCSFileInfoMap *SVNFileInfoProvider::statusExt( const TQString &dirPath,
rPath += TQDir::separator() + dirPath; rPath += TQDir::separator() + dirPath;
kdDebug(9036) << "DIR : " << rPath << " " << KURL( TQFileInfo( rPath ).absFilePath() ) << endl; kdDebug(9036) << "DIR : " << rPath << " " << KURL( TQFileInfo( rPath ).absFilePath() ) << endl;
s << cmd << checkRepos << fullRecurse << getAll << noIgnore << -1 << "WORKING" << KURL( TQFileInfo( rPath ).absFilePath() ); s << cmd << checkRepos << fullRecurse << getAll << noIgnore << -1 << "WORKING" << KURL( TQFileInfo( rPath ).absFilePath() );
KIO::SimpleJob *job2 = KIO::special(servURL, parms, false); TDEIO::SimpleJob *job2 = TDEIO::special(servURL, parms, false);
job2->setWindow( m_part->mainWindow()->main() ); job2->setWindow( m_part->mainWindow()->main() );
TQMap<TQString,TQString> ma; TQMap<TQString,TQString> ma;
KIO::NetAccess::synchronousRun(job2, m_part->mainWindow()->main(), 0, 0, &ma ); TDEIO::NetAccess::synchronousRun(job2, m_part->mainWindow()->main(), 0, 0, &ma );
TQValueList<TQString> keys = ma.keys(); TQValueList<TQString> keys = ma.keys();
qHeapSort( keys ); qHeapSort( keys );

@ -59,7 +59,7 @@ k_dcop:
void slotStatus( const TQString& , int, int, int, int, long int ) ; void slotStatus( const TQString& , int, int, int, int, long int ) ;
public slots: public slots:
void slotResult( KIO::Job * ); void slotResult( TDEIO::Job * );
private: private:
mutable void *m_savedCallerData; mutable void *m_savedCallerData;
@ -67,7 +67,7 @@ private:
mutable TQString m_recursivePreviousDirPath; mutable TQString m_recursivePreviousDirPath;
mutable VCSFileInfoMap *m_cachedDirEntries; mutable VCSFileInfoMap *m_cachedDirEntries;
mutable VCSFileInfoMap *m_recursiveDirEntries; mutable VCSFileInfoMap *m_recursiveDirEntries;
KIO::SimpleJob *job; TDEIO::SimpleJob *job;
subversionPart *m_part; subversionPart *m_part;
}; };

@ -115,7 +115,7 @@ SvnLogViewItem ::~SvnLogViewItem ()
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
SvnProgressDlg::SvnProgressDlg( bool showNow ) SvnProgressDlg::SvnProgressDlg( bool showNow )
: KIO::DefaultProgress( showNow ) : TDEIO::DefaultProgress( showNow )
{ {
setStopOnClose( true ); setStopOnClose( true );
setCaption( i18n("Subversion Job Progress") ); setCaption( i18n("Subversion Job Progress") );

@ -85,7 +85,7 @@ class SvnLogViewItem : public SvnIntSortListItem {
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
/// Subversion Progress Display Widget /// Subversion Progress Display Widget
class SvnProgressDlg : public KIO::DefaultProgress { class SvnProgressDlg : public TDEIO::DefaultProgress {
public: public:
SvnProgressDlg( bool showNow = true ); SvnProgressDlg( bool showNow = true );
~SvnProgressDlg(); ~SvnProgressDlg();

@ -56,7 +56,7 @@
// #include "commitdlg.h" // #include "commitdlg.h"
#include <ktextedit.h> #include <ktextedit.h>
using namespace KIO; using namespace TDEIO;
using namespace SvnGlobal; using namespace SvnGlobal;
typedef struct typedef struct
@ -132,14 +132,14 @@ kio_svnProtocol::kio_svnProtocol(const TQCString &pool_socket, const TQCString &
svn_error_t *err = svn_client_create_context(&ctx, pool); svn_error_t *err = svn_client_create_context(&ctx, pool);
if ( err ) { if ( err ) {
kdDebug(9036) << "kio_svnProtocol::kio_svnProtocol() create_context ERROR" << endl; kdDebug(9036) << "kio_svnProtocol::kio_svnProtocol() create_context ERROR" << endl;
error( KIO::ERR_SLAVE_DEFINED, err->message ); error( TDEIO::ERR_SLAVE_DEFINED, err->message );
return; return;
} }
err = svn_config_ensure (NULL,pool); err = svn_config_ensure (NULL,pool);
if ( err ) { if ( err ) {
kdDebug(9036) << "kio_svnProtocol::kio_svnProtocol() configensure ERROR" << endl; kdDebug(9036) << "kio_svnProtocol::kio_svnProtocol() configensure ERROR" << endl;
error( KIO::ERR_SLAVE_DEFINED, err->message ); error( TDEIO::ERR_SLAVE_DEFINED, err->message );
return; return;
} }
svn_config_get_config (&ctx->config, NULL, pool); svn_config_get_config (&ctx->config, NULL, pool);
@ -286,7 +286,7 @@ void kio_svnProtocol::get(const KURL& url ){
svn_error_t *err = svn_client_cat (bt->string_stream, svn_path_canonicalize( target.utf8(),subpool ),&rev,ctx, subpool); svn_error_t *err = svn_client_cat (bt->string_stream, svn_path_canonicalize( target.utf8(),subpool ),&rev,ctx, subpool);
if ( err ) { if ( err ) {
error( KIO::ERR_SLAVE_DEFINED, err->message ); error( TDEIO::ERR_SLAVE_DEFINED, err->message );
svn_pool_destroy( subpool ); svn_pool_destroy( subpool );
return; return;
} }
@ -453,7 +453,7 @@ void kio_svnProtocol::listDir(const KURL& url){
initNotifier(false, false, false, subpool); initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_ls (&dirents, svn_path_canonicalize( target.utf8(), subpool ), &rev, false, ctx, subpool); svn_error_t *err = svn_client_ls (&dirents, svn_path_canonicalize( target.utf8(), subpool ), &rev, false, ctx, subpool);
if ( err ) { if ( err ) {
error( KIO::ERR_SLAVE_DEFINED, err->message ); error( TDEIO::ERR_SLAVE_DEFINED, err->message );
svn_pool_destroy( subpool ); svn_pool_destroy( subpool );
return; return;
} }
@ -504,23 +504,23 @@ bool kio_svnProtocol::createUDSEntry( const TQString& filename, const TQString&
kdDebug(9036) << "MTime : " << ( long )mtime << endl; kdDebug(9036) << "MTime : " << ( long )mtime << endl;
kdDebug(9036) << "UDS filename : " << filename << endl; kdDebug(9036) << "UDS filename : " << filename << endl;
UDSAtom atom; UDSAtom atom;
atom.m_uds = KIO::UDS_NAME; atom.m_uds = TDEIO::UDS_NAME;
atom.m_str = filename; atom.m_str = filename;
entry.append( atom ); entry.append( atom );
atom.m_uds = KIO::UDS_FILE_TYPE; atom.m_uds = TDEIO::UDS_FILE_TYPE;
atom.m_long = isdir ? S_IFDIR : S_IFREG; atom.m_long = isdir ? S_IFDIR : S_IFREG;
entry.append( atom ); entry.append( atom );
atom.m_uds = KIO::UDS_SIZE; atom.m_uds = TDEIO::UDS_SIZE;
atom.m_long = size; atom.m_long = size;
entry.append( atom ); entry.append( atom );
atom.m_uds = KIO::UDS_MODIFICATION_TIME; atom.m_uds = TDEIO::UDS_MODIFICATION_TIME;
atom.m_long = mtime; atom.m_long = mtime;
entry.append( atom ); entry.append( atom );
atom.m_uds = KIO::UDS_USER; atom.m_uds = TDEIO::UDS_USER;
atom.m_str = user; atom.m_str = user;
entry.append( atom ); entry.append( atom );
@ -567,7 +567,7 @@ bool kio_svnProtocol::createUDSEntry( const TQString& filename, const TQString&
// initNotifier(false, false, false, subpool); // initNotifier(false, false, false, subpool);
// svn_error_t *err = svn_client_copy(&commit_info, srcsvn.utf8(), &rev, destsvn.utf8(), ctx, subpool); // svn_error_t *err = svn_client_copy(&commit_info, srcsvn.utf8(), &rev, destsvn.utf8(), ctx, subpool);
// if ( err ) { // if ( err ) {
// error( KIO::ERR_SLAVE_DEFINED, err->message ); // error( TDEIO::ERR_SLAVE_DEFINED, err->message );
// svn_pool_destroy (subpool); // svn_pool_destroy (subpool);
// } // }
// //
@ -596,7 +596,7 @@ void kio_svnProtocol::mkdir( const KURL::List& list, int /*permissions*/ ) {
initNotifier(false, false, false, subpool); initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_mkdir(&commit_info,targets,ctx,subpool); svn_error_t *err = svn_client_mkdir(&commit_info,targets,ctx,subpool);
if ( err ) { if ( err ) {
error( KIO::ERR_COULD_NOT_MKDIR, TQString::fromLocal8Bit(err->message) ); error( TDEIO::ERR_COULD_NOT_MKDIR, TQString::fromLocal8Bit(err->message) );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -621,7 +621,7 @@ void kio_svnProtocol::mkdir( const KURL& url, int /*permissions*/ ) {
initNotifier(false, false, false, subpool); initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_mkdir(&commit_info,targets,ctx,subpool); svn_error_t *err = svn_client_mkdir(&commit_info,targets,ctx,subpool);
if ( err ) { if ( err ) {
error( KIO::ERR_COULD_NOT_MKDIR, err->message ); error( TDEIO::ERR_COULD_NOT_MKDIR, err->message );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -646,7 +646,7 @@ void kio_svnProtocol::del( const KURL& url, bool /*isfile*/ ) {
initNotifier(false, false, false, subpool); initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_delete(&commit_info,targets,false/*force remove locally modified files in wc*/,ctx,subpool); svn_error_t *err = svn_client_delete(&commit_info,targets,false/*force remove locally modified files in wc*/,ctx,subpool);
if ( err ) { if ( err ) {
error( KIO::ERR_CANNOT_DELETE, err->message ); error( TDEIO::ERR_CANNOT_DELETE, err->message );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -694,7 +694,7 @@ void kio_svnProtocol::rename(const KURL& src, const KURL& dest, bool /*overwrite
initNotifier(false, false, false, subpool); initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_move(&commit_info, srcsvn.utf8(), &rev, destsvn.utf8(), false/*force remove locally modified files in wc*/, ctx, subpool); svn_error_t *err = svn_client_move(&commit_info, srcsvn.utf8(), &rev, destsvn.utf8(), false/*force remove locally modified files in wc*/, ctx, subpool);
if ( err ) { if ( err ) {
error( KIO::ERR_CANNOT_RENAME, err->message ); error( TDEIO::ERR_CANNOT_RENAME, err->message );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -1005,7 +1005,7 @@ void kio_svnProtocol::blame( KURL url, UrlMode /*mode*/,/* int pegRev, TQString
svn_client_blame_receiver_t receiver = kio_svnProtocol::blameReceiver; svn_client_blame_receiver_t receiver = kio_svnProtocol::blameReceiver;
svn_error_t *err = svn_client_blame( path_or_url, &rev1, &rev2, receiver, (void*)this, ctx, subpool ); svn_error_t *err = svn_client_blame( path_or_url, &rev1, &rev2, receiver, (void*)this, ctx, subpool );
if ( err ) if ( err )
error( KIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) ); error( TDEIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) );
finished(); finished();
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
@ -1059,7 +1059,7 @@ void kio_svnProtocol::svn_log( int revstart, const TQString& revkindstart, int r
svn_log_message_receiver_t receiver = kio_svnProtocol::receiveLogMessage; svn_log_message_receiver_t receiver = kio_svnProtocol::receiveLogMessage;
svn_error_t *err = svn_client_log2(targets, &rev1, &rev2, 0, discorverChangedPaths, strictNodeHistory, receiver, this, ctx, subpool); svn_error_t *err = svn_client_log2(targets, &rev1, &rev2, 0, discorverChangedPaths, strictNodeHistory, receiver, this, ctx, subpool);
if ( err ){ if ( err ){
error( KIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) ); error( TDEIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -1183,7 +1183,7 @@ void kio_svnProtocol::svn_diff(const KURL & url1, const KURL& url2,int rev1, int
} }
if ( err ){ if ( err ){
error( KIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) ); error( TDEIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -1233,7 +1233,7 @@ void kio_svnProtocol::svn_switch( const KURL& wc, const KURL& repos, int revnumb
initNotifier(false, false, false, subpool); initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_switch (NULL/*result revision*/, path, url, &rev, recurse, ctx, subpool); svn_error_t *err = svn_client_switch (NULL/*result revision*/, path, url, &rev, recurse, ctx, subpool);
if ( err ){ if ( err ){
error( KIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit( err->message ) ); error( TDEIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit( err->message ) );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -1255,7 +1255,7 @@ void kio_svnProtocol::svn_switch_relocate( const KURL &wc, const KURL &origUrl,
svn_error_t *err = svn_client_relocate( wcPath, fromUrl, toUrl, recurse, ctx, pool ); svn_error_t *err = svn_client_relocate( wcPath, fromUrl, toUrl, recurse, ctx, pool );
if ( err ){ if ( err ){
error( KIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit( err->message ) ); error( TDEIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit( err->message ) );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -1284,7 +1284,7 @@ void kio_svnProtocol::update( const KURL::List &list, int revnumber, const TQStr
true/*recurse*/, false/*ignore_external*/, true/*recurse*/, false/*ignore_external*/,
ctx, subpool); ctx, subpool);
if ( err ){ if ( err ){
error( KIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) ); error( TDEIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -1310,7 +1310,7 @@ void kio_svnProtocol::import( const KURL& repos, const KURL& wc ) {
svn_error_t *err = svn_client_import2(&commit_info, path, url, nonrecursive, false, ctx, subpool); svn_error_t *err = svn_client_import2(&commit_info, path, url, nonrecursive, false, ctx, subpool);
if ( err ){ if ( err ){
error( KIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) ); error( TDEIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -1337,7 +1337,7 @@ void kio_svnProtocol::checkout( const KURL& repos, const KURL& wc, int revnumber
initNotifier(true, false, false, subpool); initNotifier(true, false, false, subpool);
svn_error_t *err = svn_client_checkout (NULL/* rev actually checkedout */, svn_path_canonicalize( target.utf8(), subpool ), svn_path_canonicalize ( dpath.utf8(), subpool ), &rev, true, ctx, subpool); svn_error_t *err = svn_client_checkout (NULL/* rev actually checkedout */, svn_path_canonicalize( target.utf8(), subpool ), svn_path_canonicalize ( dpath.utf8(), subpool ), &rev, true, ctx, subpool);
if ( err ){ if ( err ){
error( KIO::ERR_SLAVE_DEFINED, err->message ); error( TDEIO::ERR_SLAVE_DEFINED, err->message );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -1372,7 +1372,7 @@ void kio_svnProtocol::commit2(bool recurse, bool keeplocks, const KURL::List& wc
if ( err ){ if ( err ){
char errbuf[512]; char errbuf[512];
svn_strerror(err->apr_err, errbuf, 512); svn_strerror(err->apr_err, errbuf, 512);
error( KIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) + "\n: " + TQString::fromLocal8Bit(errbuf) ); error( TDEIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) + "\n: " + TQString::fromLocal8Bit(errbuf) );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -1420,7 +1420,7 @@ void kio_svnProtocol::add(const KURL::List& list) {
if( err ) break; if( err ) break;
} }
if ( err ){ if ( err ){
error( KIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) ); error( TDEIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -1449,7 +1449,7 @@ void kio_svnProtocol::wc_delete(const KURL::List& wc) {
svn_error_t *err = svn_client_delete(&commit_info,targets,force,ctx,subpool); svn_error_t *err = svn_client_delete(&commit_info,targets,force,ctx,subpool);
if ( err ) if ( err )
error( KIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) ); error( TDEIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) );
finished(); finished();
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
@ -1473,7 +1473,7 @@ void kio_svnProtocol::wc_revert(const KURL::List& wc) {
initNotifier(false, false, false, subpool); initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_revert(targets,nonrecursive,ctx,subpool); svn_error_t *err = svn_client_revert(targets,nonrecursive,ctx,subpool);
if ( err ){ if ( err ){
error( KIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit( err->message ) ); error( TDEIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit( err->message ) );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -1506,7 +1506,7 @@ void kio_svnProtocol::wc_status2(const KURL& wc, bool checkRepos, bool fullRecur
svn_error_t *err = svn_client_status(&result_rev, svn_path_canonicalize( nurl.path().utf8(), subpool ), &rev, kio_svnProtocol::status, this, fullRecurse, getAll, checkRepos, noIgnore, ctx, subpool); svn_error_t *err = svn_client_status(&result_rev, svn_path_canonicalize( nurl.path().utf8(), subpool ), &rev, kio_svnProtocol::status, this, fullRecurse, getAll, checkRepos, noIgnore, ctx, subpool);
if ( err ){ if ( err ){
error( KIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) ); error( TDEIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -1531,7 +1531,7 @@ void kio_svnProtocol::svn_info( KURL pathOrUrl, int pegRev, TQString pegRevKind,
ctx, pool ); ctx, pool );
if ( err ){ if ( err ){
error( KIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) ); error( TDEIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(err->message) );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -1577,7 +1577,7 @@ void kio_svnProtocol::svn_copy( const KURL &srcUrl, int srcRev, const TQString &
apr_status_t errcode = err->apr_err; apr_status_t errcode = err->apr_err;
char buf[512]; char buf[512];
svn_strerror(errcode, buf, 512); svn_strerror(errcode, buf, 512);
error( KIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(buf) ); error( TDEIO::ERR_SLAVE_DEFINED, TQString::fromLocal8Bit(buf) );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
} }
@ -1599,7 +1599,7 @@ void kio_svnProtocol::svn_merge(const KURL &src1, int revNum1, TQString revKind1
const KURL &target_wc, const KURL &target_wc,
bool recurse, bool ignore_ancestry, bool force, bool dry_run ) bool recurse, bool ignore_ancestry, bool force, bool dry_run )
{ {
kdDebug(9036) << " KIO::svn_merge src1 " << src1.pathOrURL().utf8() << " src2 " << src2.pathOrURL().utf8() << " target " << target_wc.pathOrURL().utf8() << endl; kdDebug(9036) << " TDEIO::svn_merge src1 " << src1.pathOrURL().utf8() << " src2 " << src2.pathOrURL().utf8() << " target " << target_wc.pathOrURL().utf8() << endl;
apr_pool_t *subpool = svn_pool_create( pool ); apr_pool_t *subpool = svn_pool_create( pool );
svn_opt_revision_t rev1 = createRevision( revNum1, revKind1, subpool ); svn_opt_revision_t rev1 = createRevision( revNum1, revKind1, subpool );
@ -1615,7 +1615,7 @@ void kio_svnProtocol::svn_merge(const KURL &src1, int revNum1, TQString revKind1
apr_status_t errcode = err->apr_err; apr_status_t errcode = err->apr_err;
char buf[512]; char buf[512];
svn_strerror(errcode, buf, 512); svn_strerror(errcode, buf, 512);
error( KIO::ERR_SLAVE_DEFINED, error( TDEIO::ERR_SLAVE_DEFINED,
TQString::fromLocal8Bit(err->message) + "\n "+ TQString::fromLocal8Bit(buf) ); TQString::fromLocal8Bit(err->message) + "\n "+ TQString::fromLocal8Bit(buf) );
svn_pool_destroy (subpool); svn_pool_destroy (subpool);
return; return;
@ -2127,7 +2127,7 @@ void kio_svnProtocol::wc_resolve( const KURL& wc, bool recurse ) {
initNotifier(false, false, false, subpool); initNotifier(false, false, false, subpool);
svn_error_t *err = svn_client_resolved(svn_path_canonicalize( nurl.path().utf8(), subpool ), recurse,ctx,subpool); svn_error_t *err = svn_client_resolved(svn_path_canonicalize( nurl.path().utf8(), subpool ), recurse,ctx,subpool);
if ( err ) if ( err )
error( KIO::ERR_SLAVE_DEFINED, err->message ); error( TDEIO::ERR_SLAVE_DEFINED, err->message );
finished(); finished();
svn_pool_destroy (subpool); svn_pool_destroy (subpool);

@ -65,7 +65,7 @@ typedef struct notify_baton {
} notify_baton; } notify_baton;
class kio_svnProtocol : public KIO::SlaveBase class kio_svnProtocol : public TDEIO::SlaveBase
{ {
public: public:
kio_svnProtocol(const TQCString &pool_socket, const TQCString &app_socket); kio_svnProtocol(const TQCString &pool_socket, const TQCString &app_socket);
@ -128,7 +128,7 @@ class kio_svnProtocol : public KIO::SlaveBase
KURL myURL; KURL myURL;
svn_client_ctx_t *ctx; svn_client_ctx_t *ctx;
KIO::AuthInfo info; TDEIO::AuthInfo info;
enum SVN_METHOD { enum SVN_METHOD {
SVN_CHECKOUT=1, //KURL repository, KURL workingcopy, int revnumber=-1, TQString revkind(HEAD, ...) //revnumber==-1 => use of revkind SVN_CHECKOUT=1, //KURL repository, KURL workingcopy, int revnumber=-1, TQString revkind(HEAD, ...) //revnumber==-1 => use of revkind
@ -155,7 +155,7 @@ class kio_svnProtocol : public KIO::SlaveBase
}; };
private: private:
bool createUDSEntry( const TQString& filename, const TQString& user, long long int size, bool isdir, time_t mtime, KIO::UDSEntry& entry); bool createUDSEntry( const TQString& filename, const TQString& user, long long int size, bool isdir, time_t mtime, TDEIO::UDSEntry& entry);
apr_pool_t *pool; apr_pool_t *pool;
unsigned long int m_counter; unsigned long int m_counter;
}; };

Loading…
Cancel
Save