diff options
Diffstat (limited to 'src')
52 files changed, 125 insertions, 125 deletions
diff --git a/src/kile/codecompletion.cpp b/src/kile/codecompletion.cpp index ffa408b..9ba197c 100644 --- a/src/kile/codecompletion.cpp +++ b/src/kile/codecompletion.cpp @@ -149,7 +149,7 @@ namespace KileDocument //////////////////// configuration //////////////////// - void CodeCompletion::readConfig(KConfig *config) + void CodeCompletion::readConfig(TDEConfig *config) { KILE_DEBUG() << "=== CodeCompletion::readConfig ===================" << endl; @@ -197,7 +197,7 @@ namespace KileDocument } } - void CodeCompletion::readKateConfigFlags(KConfig *config) + void CodeCompletion::readKateConfigFlags(TDEConfig *config) { config->setGroup("Kate Document Defaults"); m_autobrackets = ( config->readNumEntry("Basic Config Flags",0) & cfAutoBrackets ); diff --git a/src/kile/codecompletion.h b/src/kile/codecompletion.h index 821b73c..6ff53b7 100644 --- a/src/kile/codecompletion.h +++ b/src/kile/codecompletion.h @@ -85,8 +85,8 @@ public: KileInfo* info() const { return m_ki;} - void readConfig(KConfig *config); - void readKateConfigFlags(KConfig *config); + void readConfig(TDEConfig *config); + void readKateConfigFlags(TDEConfig *config); void saveLocalChanges(); void setAbbreviationListview(KileAbbrevView *listview); diff --git a/src/kile/configcodecompletion.cpp b/src/kile/configcodecompletion.cpp index d30b4ef..4e53699 100644 --- a/src/kile/configcodecompletion.cpp +++ b/src/kile/configcodecompletion.cpp @@ -40,7 +40,7 @@ #include "kilelogwidget.h" #include "kiletool_enums.h" -ConfigCodeCompletion::ConfigCodeCompletion(KConfig *config, KileWidget::LogMsg *logwidget, TQWidget *parent, const char *name ) +ConfigCodeCompletion::ConfigCodeCompletion(TDEConfig *config, KileWidget::LogMsg *logwidget, TQWidget *parent, const char *name ) : TQWidget(parent,name), m_config(config), m_logwidget(logwidget) { // Layout diff --git a/src/kile/configcodecompletion.h b/src/kile/configcodecompletion.h index 37211b6..6f3d76e 100644 --- a/src/kile/configcodecompletion.h +++ b/src/kile/configcodecompletion.h @@ -40,7 +40,7 @@ class ConfigCodeCompletion : public TQWidget Q_OBJECT public: - ConfigCodeCompletion(KConfig *config, KileWidget::LogMsg *logwidget, TQWidget *parent=0, const char *name=0); + ConfigCodeCompletion(TDEConfig *config, KileWidget::LogMsg *logwidget, TQWidget *parent=0, const char *name=0); ~ConfigCodeCompletion(); void readConfig(void); @@ -49,7 +49,7 @@ public: private: enum CompletionPage { TexPage=0, DictionaryPage=1, AbbreviationPage=2, NumPages=3 }; - KConfig *m_config; + TDEConfig *m_config; KileWidget::LogMsg *m_logwidget; // tabs, views, pages, wordlists diff --git a/src/kile/configstructure.cpp b/src/kile/configstructure.cpp index d994e42..f2947ac 100644 --- a/src/kile/configstructure.cpp +++ b/src/kile/configstructure.cpp @@ -293,7 +293,7 @@ void ConfigStructure::clickedAdd() //////////////////// read/write configuration //////////////////// -void ConfigStructure::readConfig(KConfig *config) +void ConfigStructure::readConfig(TDEConfig *config) { // config section config->setGroup( "Structure Entries" ); @@ -323,7 +323,7 @@ void ConfigStructure::readConfig(KConfig *config) m_structurelevel->setValue(config->readNumEntry("DefaultLevel",3)); } -void ConfigStructure::writeConfig(KConfig *config) +void ConfigStructure::writeConfig(TDEConfig *config) { // config section config->setGroup( "Structure Entries" ); diff --git a/src/kile/configstructure.h b/src/kile/configstructure.h index 010ce84..f895f23 100644 --- a/src/kile/configstructure.h +++ b/src/kile/configstructure.h @@ -23,7 +23,7 @@ #include <tqstringlist.h> #include <tqmap.h> -class KConfig; +class TDEConfig; class TQRect; class TQPainter; @@ -70,8 +70,8 @@ public: ConfigStructure(TQWidget *parent=0, const char *name=0); ~ConfigStructure(); - void readConfig(KConfig *config); - void writeConfig(KConfig *config); + void readConfig(TDEConfig *config); + void writeConfig(TDEConfig *config); private: TQStringList m_entries; diff --git a/src/kile/configtester.cpp b/src/kile/configtester.cpp index 9bada6a..04bc20a 100644 --- a/src/kile/configtester.cpp +++ b/src/kile/configtester.cpp @@ -156,7 +156,7 @@ Tester::~Tester() void Tester::saveResults(const KURL & dest) { - KIO::NetAccess::file_copy(KURL::fromPathOrURL(m_resultsFile), dest, -1, true); + TDEIO::NetAccess::file_copy(KURL::fromPathOrURL(m_resultsFile), dest, -1, true); } void Tester::runTests() @@ -223,7 +223,7 @@ void Tester::processTestResults (TDEProcess *proc) } } -void Tester::processTool(KConfig *config, const TQString &tool) +void Tester::processTool(TDEConfig *config, const TQString &tool) { config->setGroup(tool); diff --git a/src/kile/configtester.h b/src/kile/configtester.h index f460e1d..83c0417 100644 --- a/src/kile/configtester.h +++ b/src/kile/configtester.h @@ -19,7 +19,7 @@ #include <tqobject.h> class KTempDir; -class KConfig; +class TDEConfig; class TDEProcess; class KURL; @@ -85,7 +85,7 @@ signals: private slots: void determineProgress(TDEProcess *, char *, int); void processTestResults (TDEProcess *); - void processTool(KConfig *, const TQString &); + void processTool(TDEConfig *, const TQString &); void addResult(const TQString &tool, const TQValueList<ConfigTest> &tests); diff --git a/src/kile/docpart.cpp b/src/kile/docpart.cpp index 3093ae5..3e08376 100644 --- a/src/kile/docpart.cpp +++ b/src/kile/docpart.cpp @@ -30,7 +30,7 @@ DocumentationViewer::DocumentationViewer(TQWidget *parent, const char *name ) : KHTMLPart(parent,name, 0, 0, BrowserViewGUI) { m_hpos = 0; - KConfig konqConfig("konquerorrc"); + TDEConfig konqConfig("konquerorrc"); konqConfig.setGroup("HTML Settings"); //const KHTMLSettings * set = settings(); //( const_cast<KHTMLSettings *>(set) )->init( &konqConfig, false ); diff --git a/src/kile/floatdialog.cpp b/src/kile/floatdialog.cpp index 825a707..d44b61c 100644 --- a/src/kile/floatdialog.cpp +++ b/src/kile/floatdialog.cpp @@ -28,7 +28,7 @@ namespace KileDialog { -FloatEnvironmentDialog::FloatEnvironmentDialog(KConfig *config, KileInfo *ki, TQWidget *parent) +FloatEnvironmentDialog::FloatEnvironmentDialog(TDEConfig *config, KileInfo *ki, TQWidget *parent) : Wizard(config,parent), m_ki(ki) { TQWidget *page = new TQWidget(this); diff --git a/src/kile/floatdialog.h b/src/kile/floatdialog.h index b3e1b6f..b697e1b 100644 --- a/src/kile/floatdialog.h +++ b/src/kile/floatdialog.h @@ -35,7 +35,7 @@ class FloatEnvironmentDialog : public Wizard public: - FloatEnvironmentDialog(KConfig *config, KileInfo *ki, TQWidget *parent); + FloatEnvironmentDialog(TDEConfig *config, KileInfo *ki, TQWidget *parent); ~FloatEnvironmentDialog() {} public slots: diff --git a/src/kile/graphicsconfigwidget.ui b/src/kile/graphicsconfigwidget.ui index eeaa454..7756845 100644 --- a/src/kile/graphicsconfigwidget.ui +++ b/src/kile/graphicsconfigwidget.ui @@ -117,7 +117,7 @@ <include location="local" impldecl="in declaration">latexcmddialog.h</include> </includes> <variables> - <variable access="private">KConfig *m_config;</variable> + <variable access="private">TDEConfig *m_config;</variable> <variable access="private">KileDocument::LatexCommands *m_commands;</variable> </variables> <Q_SLOTS> @@ -125,7 +125,7 @@ </Q_SLOTS> <functions> <function access="private" specifier="non virtual">init()</function> - <function specifier="non virtual">setLatexCommands( KConfig * config, KileDocument::LatexCommands * commands )</function> + <function specifier="non virtual">setLatexCommands( TDEConfig * config, KileDocument::LatexCommands * commands )</function> </functions> <layoutdefaults spacing="6" margin="11"/> <includehints> diff --git a/src/kile/kile.h b/src/kile/kile.h index 2d3bdc5..8070fd7 100644 --- a/src/kile/kile.h +++ b/src/kile/kile.h @@ -196,14 +196,14 @@ public slots: /* config */ private: - KConfig *m_config; + TDEConfig *m_config; int m_horSplitRight, m_horSplitLeft, m_verSplitTop, m_verSplitBottom; TQStringList m_recentFilesList, m_listDocsOpenOnStart, m_listProjectsOpenOnStart; void setViewerToolBars(); signals: /** - * Emit this signal when the configuration is changed. Classes that read and write to the global KConfig object + * Emit this signal when the configuration is changed. Classes that read and write to the global TDEConfig object * should connect to this signal so they can update their settings. **/ void configChanged(); diff --git a/src/kile/kileconfigdialog.cpp b/src/kile/kileconfigdialog.cpp index bb9342a..1f3a17e 100644 --- a/src/kile/kileconfigdialog.cpp +++ b/src/kile/kileconfigdialog.cpp @@ -54,7 +54,7 @@ namespace KileDialog { - Config::Config(KConfig *config, KileInfo *ki, TQWidget* parent) + Config::Config(TDEConfig *config, KileInfo *ki, TQWidget* parent) : KDialogBase( KDialogBase::TreeList, TQt::WStyle_DialogBorder, parent, "kileconfiguration", true, i18n("Configure"), Ok|Cancel, Ok ), m_config(config), @@ -63,7 +63,7 @@ namespace KileDialog m_config->sync(); // we need a dialog manager - m_manager = new KConfigDialogManager(this,KileConfig::self()); + m_manager = new TDEConfigDialogManager(this,KileConfig::self()); setShowIconsInTreeList(true); addConfigFolder(i18n("Kile"),"kile"); @@ -326,7 +326,7 @@ namespace KileDialog previewPage->writeConfig(); // Quick Preview (dani) m_config->sync(); - emit okClicked(); // Otherwise, the KConfigXT machine doesn't start... + emit okClicked(); // Otherwise, the TDEConfigXT machine doesn't start... // oder m_manager->updateSettings(); accept(); diff --git a/src/kile/kileconfigdialog.h b/src/kile/kileconfigdialog.h index 4acde8c..e947686 100644 --- a/src/kile/kileconfigdialog.h +++ b/src/kile/kileconfigdialog.h @@ -30,7 +30,7 @@ #include "symbolviewconfig.h" class TQFrame; -class KConfig; +class TDEConfig; namespace KileWidget { class ToolConfig; } class KileWidgetHelpConfig; @@ -51,7 +51,7 @@ namespace KileDialog public: - Config( KConfig *config, KileInfo *ki, TQWidget* parent = 0); + Config( TDEConfig *config, KileInfo *ki, TQWidget* parent = 0); ~Config(); virtual void show(); @@ -66,9 +66,9 @@ namespace KileDialog private: // dialog manager - KConfigDialogManager *m_manager; + TDEConfigDialogManager *m_manager; - KConfig *m_config; + TDEConfig *m_config; KileInfo *m_ki; bool m_editorSettingsChanged; diff --git a/src/kile/kiledocmanager.cpp b/src/kile/kiledocmanager.cpp index 6fe3e38..ba35ada 100644 --- a/src/kile/kiledocmanager.cpp +++ b/src/kile/kiledocmanager.cpp @@ -799,8 +799,8 @@ void Manager::fileSaveAll(bool amAutoSaving, bool disUntitled ) // get the right permissions, start with safe default mode_t perms = 0600; - KIO::UDSEntry fentry; - if (KIO::NetAccess::stat (url, fentry, kapp->mainWidget())) + TDEIO::UDSEntry fentry; + if (TDEIO::NetAccess::stat (url, fentry, kapp->mainWidget())) { KILE_DEBUG () << "stating successful: " << url.prettyURL() << endl; KFileItem item (fentry, url); @@ -809,9 +809,9 @@ void Manager::fileSaveAll(bool amAutoSaving, bool disUntitled ) // first del existing file if any, than copy over the file we have // failure if a: the existing file could not be deleted, b: the file could not be copied - if ( (!KIO::NetAccess::exists( backupUrl, false, kapp->mainWidget() ) - || KIO::NetAccess::del( backupUrl, kapp->mainWidget() ) ) - && KIO::NetAccess::file_copy( url, backupUrl, perms, true, false, kapp->mainWidget() ) ) + if ( (!TDEIO::NetAccess::exists( backupUrl, false, kapp->mainWidget() ) + || TDEIO::NetAccess::del( backupUrl, kapp->mainWidget() ) ) + && TDEIO::NetAccess::file_copy( url, backupUrl, perms, true, false, kapp->mainWidget() ) ) { KILE_DEBUG()<<"backing up successful ("<<url.prettyURL()<<" -> "<<backupUrl.prettyURL()<<")"<<endl; } @@ -932,7 +932,7 @@ void Manager::fileSaveAs(Kate::View* view) if(info->getType() == KileDocument::LaTeX) { saveURL = Info::makeValidTeXURL(saveURL, m_ki->extensions()->isTexFile(saveURL), false); // don't check for file existence } - if(KIO::NetAccess::exists(saveURL, true, kapp->mainWidget())) // check for writing possibility + if(TDEIO::NetAccess::exists(saveURL, true, kapp->mainWidget())) // check for writing possibility { int r = KMessageBox::warningContinueCancel(m_ki->parentWidget(), i18n("A file with the name \"%1\" exists already. Do you want to overwrite it ?").arg(saveURL.fileName()), i18n("Overwrite File ?"), KGuiItem(i18n("&Overwrite")), TQString()); if(r != KMessageBox::Continue) diff --git a/src/kile/kiledocumentinfo.cpp b/src/kile/kiledocumentinfo.cpp index c06e8a1..ac639b8 100644 --- a/src/kile/kiledocumentinfo.cpp +++ b/src/kile/kiledocumentinfo.cpp @@ -112,7 +112,7 @@ KURL Info::repairInvalidCharacters(const KURL& url, bool checkForFileExistence / KURL Info::renameIfExist(const KURL& url) { KURL ret(url); - while ( KIO::NetAccess::exists(url, true, kapp->mainWidget()) ) // check for writing possibility + while ( TDEIO::NetAccess::exists(url, true, kapp->mainWidget()) ) // check for writing possibility { bool isOK; TQString newURL = KInputDialog::getText( diff --git a/src/kile/kiledocumentinfo.h b/src/kile/kiledocumentinfo.h index 934bf43..7f18f1c 100644 --- a/src/kile/kiledocumentinfo.h +++ b/src/kile/kiledocumentinfo.h @@ -195,7 +195,7 @@ protected: TQString m_preamble; TQMap<TQString,KileStructData> m_dictStructLevel; KURL m_url; - KConfig *m_config; + TDEConfig *m_config; bool m_showStructureLabels; bool m_showStructureBibitems; bool m_showStructureGraphics; diff --git a/src/kile/kilejscript.cpp b/src/kile/kilejscript.cpp index 00c36f2..7f5a78b 100644 --- a/src/kile/kilejscript.cpp +++ b/src/kile/kilejscript.cpp @@ -508,7 +508,7 @@ namespace KileJScript { ////////////////////////////// Manager ////////////////////////////// - Manager::Manager(KileInfo *kileInfo, KConfig *config, KActionCollection *actionCollection, TQObject *parent, const char *name) : TQObject(parent, name), m_jScriptDirWatch(NULL), m_kileInfo(kileInfo), m_config(config), m_actionCollection(actionCollection) { + Manager::Manager(KileInfo *kileInfo, TDEConfig *config, KActionCollection *actionCollection, TQObject *parent, const char *name) : TQObject(parent, name), m_jScriptDirWatch(NULL), m_kileInfo(kileInfo), m_config(config), m_actionCollection(actionCollection) { // create a local scripts directory if it doesn't exist yet m_localJScriptDir = locateLocal("appdata", "scripts/", true); m_jScriptDirWatch = new KDirWatch(this, "KileJScript::Manager::JScriptDirWatch"); diff --git a/src/kile/kilejscript.h b/src/kile/kilejscript.h index 9593176..66232e4 100644 --- a/src/kile/kilejscript.h +++ b/src/kile/kilejscript.h @@ -125,7 +125,7 @@ class Manager : public TQObject { /** * Constructs a new Manager object. **/ - Manager(KileInfo *info, KConfig *config, KActionCollection *actionCollection, TQObject *parent = 0, const char *name = 0); + Manager(KileInfo *info, TDEConfig *config, KActionCollection *actionCollection, TQObject *parent = 0, const char *name = 0); virtual ~Manager(); /** @@ -146,7 +146,7 @@ class Manager : public TQObject { TQValueList<JScript*> getJScripts(); /** - * Writes the key sequence-to-script bindings to the KConfig object that has + * Writes the key sequence-to-script bindings to the TDEConfig object that has * passed in the constructor. **/ void writeConfig(); @@ -194,7 +194,7 @@ class Manager : public TQObject { void scanJScriptDirectories(); /** - * Reads and assigns the key sequence-to-script bindings from the KConfig + * Reads and assigns the key sequence-to-script bindings from the TDEConfig * object that has been passed in the constructor. **/ void readConfig(); @@ -206,7 +206,7 @@ class Manager : public TQObject { KDirWatch *m_jScriptDirWatch; KileInfo *m_kileInfo; - KConfig *m_config; + TDEConfig *m_config; KActionCollection *m_actionCollection; /** @@ -226,14 +226,14 @@ class Manager : public TQObject { void deleteJScripts(); /** - * Reads an 'unsigned int' list as value for a specific key from the local KConfig + * Reads an 'unsigned int' list as value for a specific key from the local TDEConfig * object. * @param key the considered entry key **/ TQValueList<unsigned int> readUnsignedIntListEntry(const TQString& key); /** - * Writes a key - value pair to the local KConfig object for the case that the + * Writes a key - value pair to the local TDEConfig object for the case that the * value is an 'unsigned int' list. * @param key the considered entry key * @param l the 'unsigned int' list that is used as value @@ -250,7 +250,7 @@ class Manager : public TQObject { /** * Writes the ID to file name mappings that are currently in use to the local - * KConfig object. + * TDEConfig object. **/ void writeIDs(); diff --git a/src/kile/kileproject.cpp b/src/kile/kileproject.cpp index 1ad1006..95da4df 100644 --- a/src/kile/kileproject.cpp +++ b/src/kile/kileproject.cpp @@ -304,7 +304,7 @@ void KileProject::readMakeIndexOptions() TQString grp = KileTool::groupFor("MakeIndex", m_config); //get the default value - KConfig *cfg = TDEGlobal::config(); + TDEConfig *cfg = TDEGlobal::config(); cfg->setGroup(KileTool::groupFor("MakeIndex", KileTool::configName("MakeIndex", cfg))); TQString deflt = cfg->readEntry("options", "'%S'.idx"); diff --git a/src/kile/kilestdtools.cpp b/src/kile/kilestdtools.cpp index 7a50c67..e03f590 100644 --- a/src/kile/kilestdtools.cpp +++ b/src/kile/kilestdtools.cpp @@ -85,7 +85,7 @@ namespace KileTool { TQString from_cfg = TDEGlobal::dirs()->findResource("appdata", "kilestdtools.rc"); TQString to_cfg = TDEGlobal::dirs()->saveLocation("config") + "/kilerc"; - KConfig *pCfg = new KConfig(from_cfg, false, false); + TDEConfig *pCfg = new TDEConfig(from_cfg, false, false); pCfg->copyTo(to_cfg, m_config); } diff --git a/src/kile/kilestdtools.h b/src/kile/kilestdtools.h index bb819f7..22f62d0 100644 --- a/src/kile/kilestdtools.h +++ b/src/kile/kilestdtools.h @@ -21,7 +21,7 @@ #include "kiletool.h" -class KConfig; +class TDEConfig; namespace KileTool { @@ -32,7 +32,7 @@ namespace KileTool class Factory { public: - Factory(Manager *mngr, KConfig *config) : m_manager(mngr), m_config(config) {} + Factory(Manager *mngr, TDEConfig *config) : m_manager(mngr), m_config(config) {} ~Factory() {} Base* create(const TQString & tool, bool prepare = true); @@ -41,7 +41,7 @@ namespace KileTool private: Manager *m_manager; - KConfig *m_config; + TDEConfig *m_config; }; class LaTeX : public Compile diff --git a/src/kile/kiletool.h b/src/kile/kiletool.h index a60a32b..cfd24a7 100644 --- a/src/kile/kiletool.h +++ b/src/kile/kiletool.h @@ -24,7 +24,7 @@ #include <tqdict.h> #include <tqstringlist.h> -class KConfig; +class TDEConfig; class KileInfo; class KShellProcess; class KileProject; @@ -57,9 +57,9 @@ namespace KileTool void setInfo(KileInfo *ki) { m_ki = ki; } /** - * Sets the KConfig object, this is already taken care of by the Manager. + * Sets the TDEConfig object, this is already taken care of by the Manager. **/ - void setConfig(KConfig *config) { m_config = config; } + void setConfig(TDEConfig *config) { m_config = config; } /** * @returns the Manager object for this tool. @@ -228,7 +228,7 @@ namespace KileTool private: Manager *m_manager; KileInfo *m_ki; - KConfig *m_config; + TDEConfig *m_config; TQString m_name, m_from, m_to; TQString m_target, m_basedir, m_relativedir, m_targetdir, m_source, m_S, m_options; diff --git a/src/kile/kiletoolconfigwidget.cpp b/src/kile/kiletoolconfigwidget.cpp index 1611186..7bf2801 100644 --- a/src/kile/kiletoolconfigwidget.cpp +++ b/src/kile/kiletoolconfigwidget.cpp @@ -444,7 +444,7 @@ namespace KileWidget //KILE_DEBUG() << "==ToolConfig::removeTool()=====================" << endl; if ( KMessageBox::warningContinueCancel(this, i18n("Are you sure you want to remove the tool %1?").arg(m_current)) == KMessageBox::Continue ) { - KConfig *config = m_config; + TDEConfig *config = m_config; TQStringList cfgs = KileTool::configNames(m_current, config); for ( uint i = 0; i < cfgs.count(); ++i) { diff --git a/src/kile/kiletoolconfigwidget.h b/src/kile/kiletoolconfigwidget.h index d256a04..d286cdd 100644 --- a/src/kile/kiletoolconfigwidget.h +++ b/src/kile/kiletoolconfigwidget.h @@ -97,7 +97,7 @@ namespace KileWidget private: ToolConfigWidget *m_configWidget; KileTool::Manager *m_manager; - KConfig *m_config; + TDEConfig *m_config; KileTool::Config m_map; TQGridLayout *m_layout; TQString m_current, m_icon; diff --git a/src/kile/kiletoolmanager.cpp b/src/kile/kiletoolmanager.cpp index 3f086bc..7e74818 100644 --- a/src/kile/kiletoolmanager.cpp +++ b/src/kile/kiletoolmanager.cpp @@ -101,7 +101,7 @@ namespace KileTool } } - Manager::Manager(KileInfo *ki, KConfig *config, KileWidget::LogMsg *log, KileWidget::Output *output, KParts::PartManager *manager, TQWidgetStack *stack, KAction *stop, uint to) : + Manager::Manager(KileInfo *ki, TDEConfig *config, KileWidget::LogMsg *log, KileWidget::Output *output, KParts::PartManager *manager, TQWidgetStack *stack, KAction *stop, uint to) : m_ki(ki), m_config(config), m_log(log), @@ -301,7 +301,7 @@ namespace KileTool KileProject *project = m_ki->docManager()->activeProject(); if (project) { - TQString cfg = configName(name, dynamic_cast<KConfig*>(project->config())); + TQString cfg = configName(name, dynamic_cast<TDEConfig*>(project->config())); if ( cfg.length() > 0 ) return groupFor(name, cfg); } } @@ -327,7 +327,7 @@ namespace KileTool KileProject *project = m_ki->docManager()->activeProject(); if ( useproject && project) { - KConfig *prjcfg = dynamic_cast<KConfig*>(project->config()); + TDEConfig *prjcfg = dynamic_cast<TDEConfig*>(project->config()); if ( prjcfg ) { TQString grp = groupFor(name, prjcfg); @@ -384,7 +384,7 @@ namespace KileTool emit(requestGUIState(state)); } - TQStringList toolList(KConfig *config, bool menuOnly) + TQStringList toolList(TDEConfig *config, bool menuOnly) { KILE_DEBUG() << "==KileTool::toolList()==================" << endl; @@ -409,20 +409,20 @@ namespace KileTool return tools; } - TQString configName(const TQString & tool, KConfig *config) + TQString configName(const TQString & tool, TDEConfig *config) { config->setGroup("Tools"); return config->readEntry(tool, ""); } - void setConfigName(const TQString & tool, const TQString & name, KConfig *config) + void setConfigName(const TQString & tool, const TQString & name, TDEConfig *config) { KILE_DEBUG() << "==KileTool::Manager::setConfigName(" << tool << "," << name << ")===============" << endl; config->setGroup("Tools"); config->writeEntry(tool, name); } - TQString groupFor(const TQString &tool, KConfig *config) + TQString groupFor(const TQString &tool, TDEConfig *config) { return groupFor(tool, configName(tool, config)); } @@ -456,7 +456,7 @@ namespace KileTool return tool; } - TQStringList configNames(const TQString &tool, KConfig *config) + TQStringList configNames(const TQString &tool, TDEConfig *config) { TQStringList groups = config->groupList(), configs; TQRegExp re = TQRegExp("Tool/"+ tool +"/(.+)"); @@ -472,19 +472,19 @@ namespace KileTool return configs; } - TQString menuFor(const TQString &tool, KConfig *config) + TQString menuFor(const TQString &tool, TDEConfig *config) { config->setGroup("ToolsGUI"); return config->readEntry(tool, "Other,gear").section(',',0,0); } - TQString iconFor(const TQString &tool, KConfig *config) + TQString iconFor(const TQString &tool, TDEConfig *config) { config->setGroup("ToolsGUI"); return config->readEntry(tool, "Other,gear").section(',',1,1); } - void setGUIOptions(const TQString &tool, const TQString &menu, const TQString &icon, KConfig *config) + void setGUIOptions(const TQString &tool, const TQString &menu, const TQString &icon, TDEConfig *config) { TQString entry = menu + ',' + icon; diff --git a/src/kile/kiletoolmanager.h b/src/kile/kiletoolmanager.h index 203e31a..ad4e262 100644 --- a/src/kile/kiletoolmanager.h +++ b/src/kile/kiletoolmanager.h @@ -25,7 +25,7 @@ class TQTimer; class TQWidgetStack; -class KConfig; +class TDEConfig; class KTextEdit; class KAction; namespace KParts { class PartManager; } @@ -69,7 +69,7 @@ namespace KileTool public: - Manager(KileInfo *ki, KConfig *config, KileWidget::LogMsg *log, KileWidget::Output *output, KParts::PartManager *, TQWidgetStack *, KAction *, uint to); + Manager(KileInfo *ki, TDEConfig *config, KileWidget::LogMsg *log, KileWidget::Output *output, KParts::PartManager *, TQWidgetStack *, KAction *, uint to); ~Manager(); public: @@ -85,7 +85,7 @@ namespace KileTool TQWidgetStack * widgetStack() { return m_stack; } KileInfo * info() { return m_ki; } - KConfig * config() { return m_config; } + TDEConfig * config() { return m_config; } void setFactory(Factory* fac) { m_factory = fac; } Factory* factory() { return m_factory; } @@ -123,7 +123,7 @@ namespace KileTool private: KileInfo *m_ki; - KConfig *m_config; + TDEConfig *m_config; KileWidget::LogMsg *m_log; KileWidget::Output *m_output; KParts::PartManager *m_pm; @@ -137,24 +137,24 @@ namespace KileTool uint m_nTimeout; }; - TQStringList toolList(KConfig *config, bool menuOnly = false); - TQStringList configNames(const TQString &tool, KConfig *config); + TQStringList toolList(TDEConfig *config, bool menuOnly = false); + TQStringList configNames(const TQString &tool, TDEConfig *config); - TQString configName(const TQString & tool, KConfig *); - void setConfigName(const TQString & tool, const TQString & name, KConfig *); + TQString configName(const TQString & tool, TDEConfig *); + void setConfigName(const TQString & tool, const TQString & name, TDEConfig *); - TQString groupFor(const TQString & tool, KConfig *); + TQString groupFor(const TQString & tool, TDEConfig *); TQString groupFor(const TQString & tool, const TQString & cfg = "Default" ); void extract(const TQString &str, TQString &tool, TQString &cfg); TQString format(const TQString & tool, const TQString &cfg); - TQString menuFor(const TQString &tool, KConfig *config); - TQString iconFor(const TQString &tool, KConfig *config); + TQString menuFor(const TQString &tool, TDEConfig *config); + TQString iconFor(const TQString &tool, TDEConfig *config); TQString categoryFor(const TQString &clss); - void setGUIOptions(const TQString &tool, const TQString &menu, const TQString &icon, KConfig *config); + void setGUIOptions(const TQString &tool, const TQString &menu, const TQString &icon, TDEConfig *config); } #endif diff --git a/src/kile/kilewizard.cpp b/src/kile/kilewizard.cpp index 2f7e760..bbf151e 100644 --- a/src/kile/kilewizard.cpp +++ b/src/kile/kilewizard.cpp @@ -17,7 +17,7 @@ namespace KileDialog { - Wizard::Wizard(KConfig *config, TQWidget *parent, const char *name, const TQString &caption) : + Wizard::Wizard(TDEConfig *config, TQWidget *parent, const char *name, const TQString &caption) : KDialogBase(parent,name,true,caption,KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, true), m_td(TQString(), TQString(), TQString(), 0, 0, TQString()), m_config(config) diff --git a/src/kile/kilewizard.h b/src/kile/kilewizard.h index 7a28f47..4a38961 100644 --- a/src/kile/kilewizard.h +++ b/src/kile/kilewizard.h @@ -20,14 +20,14 @@ #include "kileactions.h" -class KConfig; +class TDEConfig; namespace KileDialog { class Wizard : public KDialogBase { public: - Wizard(KConfig *, TQWidget *parent=0, const char *name=0, const TQString &caption = TQString()); + Wizard(TDEConfig *, TQWidget *parent=0, const char *name=0, const TQString &caption = TQString()); ~Wizard(); public: @@ -35,7 +35,7 @@ namespace KileDialog protected: KileAction::TagData m_td; - KConfig *m_config; + TDEConfig *m_config; }; } diff --git a/src/kile/latexcmd.cpp b/src/kile/latexcmd.cpp index 7bec0be..45466e8 100644 --- a/src/kile/latexcmd.cpp +++ b/src/kile/latexcmd.cpp @@ -26,7 +26,7 @@ namespace KileDocument // BEGIN LatexCommands -LatexCommands::LatexCommands(KConfig *config, KileInfo *info) : m_config(config), m_ki(info) +LatexCommands::LatexCommands(TDEConfig *config, KileInfo *info) : m_config(config), m_ki(info) { m_envGroupName = "Latex Environments"; m_cmdGroupName = "Latex Commands"; diff --git a/src/kile/latexcmd.h b/src/kile/latexcmd.h index 6567925..2321a6f 100644 --- a/src/kile/latexcmd.h +++ b/src/kile/latexcmd.h @@ -61,7 +61,7 @@ class LatexCommands : public TQObject public: - LatexCommands(KConfig *config, KileInfo *info); + LatexCommands(TDEConfig *config, KileInfo *info); ~LatexCommands() {}; TQString envGroupName() { return m_envGroupName; } @@ -92,7 +92,7 @@ public: private: - KConfig *m_config; + TDEConfig *m_config; KileInfo *m_ki; TQString m_envGroupName, m_cmdGroupName; diff --git a/src/kile/latexcmddialog.cpp b/src/kile/latexcmddialog.cpp index fb3ca0a..d6f7a02 100644 --- a/src/kile/latexcmddialog.cpp +++ b/src/kile/latexcmddialog.cpp @@ -300,7 +300,7 @@ void NewLatexCommand::slotOk() //BEGIN LatexCommandsDialog -LatexCommandsDialog::LatexCommandsDialog(KConfig *config, KileDocument::LatexCommands *commands, TQWidget *parent, const char *name) +LatexCommandsDialog::LatexCommandsDialog(TDEConfig *config, KileDocument::LatexCommands *commands, TQWidget *parent, const char *name) : KDialogBase( parent,name, true, i18n("LaTeX Configuration"), Ok | Cancel | Help, Ok, true ), m_config(config), m_commands(commands) { diff --git a/src/kile/latexcmddialog.h b/src/kile/latexcmddialog.h index d682479..7f7e85b 100644 --- a/src/kile/latexcmddialog.h +++ b/src/kile/latexcmddialog.h @@ -72,7 +72,7 @@ class LatexCommandsDialog : public KDialogBase public: - LatexCommandsDialog(KConfig *config, KileDocument::LatexCommands *commands, TQWidget *parent=0, const char *name=0); + LatexCommandsDialog(TDEConfig *config, KileDocument::LatexCommands *commands, TQWidget *parent=0, const char *name=0); ~LatexCommandsDialog() {} //enum EnvParameter { envName,envStarred,envEOL,envMath,envTab,envOption }; @@ -80,7 +80,7 @@ public: private: enum LVmode { lvEnvMode=1, lvCmdMode=2 }; - KConfig *m_config; + TDEConfig *m_config; KileDocument::LatexCommands *m_commands; TQMap<TQString,bool> m_dictCommands; bool m_commandChanged; diff --git a/src/kile/latexconfigwidget.ui b/src/kile/latexconfigwidget.ui index c409952..0902b01 100644 --- a/src/kile/latexconfigwidget.ui +++ b/src/kile/latexconfigwidget.ui @@ -239,7 +239,7 @@ <include location="local" impldecl="in implementation">latexconfigwidget.ui.h</include> </includes> <variables> - <variable access="private">KConfig *m_config;</variable> + <variable access="private">TDEConfig *m_config;</variable> <variable access="private">KileDocument::LatexCommands *m_commands;</variable> </variables> <Q_SLOTS> @@ -247,7 +247,7 @@ </Q_SLOTS> <functions> <function access="private" specifier="non virtual">init()</function> - <function specifier="non virtual">setLatexCommands( KConfig * config, KileDocument::LatexCommands * commands )</function> + <function specifier="non virtual">setLatexCommands( TDEConfig * config, KileDocument::LatexCommands * commands )</function> </functions> <layoutdefaults spacing="6" margin="11"/> <includehints> diff --git a/src/kile/latexconfigwidget.ui.h b/src/kile/latexconfigwidget.ui.h index fcc8bf5..461a714 100644 --- a/src/kile/latexconfigwidget.ui.h +++ b/src/kile/latexconfigwidget.ui.h @@ -37,7 +37,7 @@ void KileWidgetLatexConfig::slotConfigure() } -void KileWidgetLatexConfig::setLatexCommands( KConfig *config, KileDocument::LatexCommands *commands ) +void KileWidgetLatexConfig::setLatexCommands( TDEConfig *config, KileDocument::LatexCommands *commands ) { m_config = config; m_commands = commands; diff --git a/src/kile/main.cpp b/src/kile/main.cpp index 82e43ee..0ac3514 100644 --- a/src/kile/main.cpp +++ b/src/kile/main.cpp @@ -83,7 +83,7 @@ int main( int argc, char ** argv ) aboutData.addAuthor("Brachet Pascal",0,""); aboutData.addCredit("Thomas Braun", I18N_NOOP("Lots of bug fixes!")); - aboutData.addCredit("Simon Martin", I18N_NOOP("KConfig XT, various improvements and bugfixing")); + aboutData.addCredit("Simon Martin", I18N_NOOP("TDEConfig XT, various improvements and bugfixing")); aboutData.addCredit("Roland Schulz", I18N_NOOP("KatePart integration")); aboutData.addCredit("Thorsten Lück", I18N_NOOP("Log Parsing")); aboutData.addCredit("Jan-Marek Glogowski", I18N_NOOP("Find in Files dialog")); diff --git a/src/kile/managetemplatesdialog.cpp b/src/kile/managetemplatesdialog.cpp index 5c2c8bf..0ee55f7 100644 --- a/src/kile/managetemplatesdialog.cpp +++ b/src/kile/managetemplatesdialog.cpp @@ -209,12 +209,12 @@ void ManageTemplatesDialog::addTemplate() { return; } - if (!KIO::NetAccess::exists(iconURL, true, kapp->mainWidget())) { + if (!TDEIO::NetAccess::exists(iconURL, true, kapp->mainWidget())) { KMessageBox::error(this, i18n("Sorry, but the icon file: %1\ndoes not seem to exist. Please choose a new icon.").arg(icon)); return; } - if (!KIO::NetAccess::exists(m_sourceURL, true, kapp->mainWidget())) { + if (!TDEIO::NetAccess::exists(m_sourceURL, true, kapp->mainWidget())) { KMessageBox::error(this, i18n("Sorry, but the file: %1\ndoes not seem to exist. Maybe you forgot to save the file?").arg(m_sourceURL.prettyURL())); return; } @@ -261,7 +261,7 @@ bool ManageTemplatesDialog::removeTemplate() KileTemplate::Info templateInfo = templateItem->getTemplateInfo(); - if (!(KIO::NetAccess::exists(KURL::fromPathOrURL(templateInfo.path), false, kapp->mainWidget()) && (KIO::NetAccess::exists(KURL::fromPathOrURL(templateInfo.icon), false, kapp->mainWidget()) || !TQFileInfo(templateInfo.icon).exists()))) { + if (!(TDEIO::NetAccess::exists(KURL::fromPathOrURL(templateInfo.path), false, kapp->mainWidget()) && (TDEIO::NetAccess::exists(KURL::fromPathOrURL(templateInfo.icon), false, kapp->mainWidget()) || !TQFileInfo(templateInfo.icon).exists()))) { KMessageBox::error(this, i18n("Sorry, but you do not have the necessary permissions to remove the selected template.")); return false; } diff --git a/src/kile/mathenvdialog.cpp b/src/kile/mathenvdialog.cpp index 6f00b55..0539577 100644 --- a/src/kile/mathenvdialog.cpp +++ b/src/kile/mathenvdialog.cpp @@ -31,7 +31,7 @@ namespace KileDialog { -MathEnvironmentDialog::MathEnvironmentDialog(TQWidget *parent, KConfig *config, KileInfo *ki, KileDocument::LatexCommands *commands) +MathEnvironmentDialog::MathEnvironmentDialog(TQWidget *parent, TDEConfig *config, KileInfo *ki, KileDocument::LatexCommands *commands) : Wizard(config,parent), m_ki(ki), m_latexCommands(commands) { TQWidget *page = new TQWidget(this); diff --git a/src/kile/mathenvdialog.h b/src/kile/mathenvdialog.h index d8c3c37..0e8dcb9 100644 --- a/src/kile/mathenvdialog.h +++ b/src/kile/mathenvdialog.h @@ -42,7 +42,7 @@ class MathEnvironmentDialog : public Wizard public: - MathEnvironmentDialog(TQWidget *parent, KConfig *config, KileInfo *ki, KileDocument::LatexCommands *commands); + MathEnvironmentDialog(TQWidget *parent, TDEConfig *config, KileInfo *ki, KileDocument::LatexCommands *commands); ~MathEnvironmentDialog() {} public slots: diff --git a/src/kile/newfilewizard.h b/src/kile/newfilewizard.h index bd9e0be..1b5b804 100644 --- a/src/kile/newfilewizard.h +++ b/src/kile/newfilewizard.h @@ -50,7 +50,7 @@ protected slots: protected: KileTemplate::Manager *m_templateManager; - KConfig *m_config; + TDEConfig *m_config; NewDocumentWidget* m_newDocumentWidget; int m_currentlyDisplayedType; // not a document type, only a local type! diff --git a/src/kile/previewconfigwidget.cpp b/src/kile/previewconfigwidget.cpp index eb6d91b..5f56f0f 100644 --- a/src/kile/previewconfigwidget.cpp +++ b/src/kile/previewconfigwidget.cpp @@ -28,7 +28,7 @@ #include "kileconfig.h" -KileWidgetPreviewConfig::KileWidgetPreviewConfig(KConfig *config, KileTool::QuickPreview *preview, TQWidget *parent, const char *name ) +KileWidgetPreviewConfig::KileWidgetPreviewConfig(TDEConfig *config, KileTool::QuickPreview *preview, TQWidget *parent, const char *name ) : TQWidget(parent,name), m_config(config), m_preview(preview) diff --git a/src/kile/previewconfigwidget.h b/src/kile/previewconfigwidget.h index 75b960b..c593248 100644 --- a/src/kile/previewconfigwidget.h +++ b/src/kile/previewconfigwidget.h @@ -35,14 +35,14 @@ class KileWidgetPreviewConfig : public TQWidget Q_OBJECT public: - KileWidgetPreviewConfig(KConfig *config, KileTool::QuickPreview *preview, TQWidget *parent=0, const char *name=0); + KileWidgetPreviewConfig(TDEConfig *config, KileTool::QuickPreview *preview, TQWidget *parent=0, const char *name=0); ~KileWidgetPreviewConfig() {} void readConfig(void); void writeConfig(void); private: - KConfig *m_config; + TDEConfig *m_config; KComboBox *m_combobox; KileTool::QuickPreview *m_preview; KLineEdit *m_leDvipngResolution; diff --git a/src/kile/quickdocumentdialog.cpp b/src/kile/quickdocumentdialog.cpp index 150ea46..94271e6 100644 --- a/src/kile/quickdocumentdialog.cpp +++ b/src/kile/quickdocumentdialog.cpp @@ -129,7 +129,7 @@ void EditableCheckListItem::paintCell( TQPainter *p, const TQColorGroup &cg, //////////////////// QuickDocument class //////////////////// -QuickDocument::QuickDocument(KConfig *config, TQWidget *parent, const char *name, const TQString &caption) : Wizard(config, parent,name,caption) +QuickDocument::QuickDocument(TDEConfig *config, TQWidget *parent, const char *name, const TQString &caption) : Wizard(config, parent,name,caption) { KILE_DEBUG() << "==QuickDocument::setupGUI()============" << endl; TQTabWidget *tabWidget = new TQTabWidget( this ); diff --git a/src/kile/quickdocumentdialog.h b/src/kile/quickdocumentdialog.h index 5631d31..5ddef45 100644 --- a/src/kile/quickdocumentdialog.h +++ b/src/kile/quickdocumentdialog.h @@ -49,7 +49,7 @@ class QuickDocument : public Wizard public: - QuickDocument(KConfig *, TQWidget *parent=0, const char *name=0, const TQString &caption = TQString()); + QuickDocument(TDEConfig *, TQWidget *parent=0, const char *name=0, const TQString &caption = TQString()); ~QuickDocument(); bool isStandardClass(const TQString &classname); diff --git a/src/kile/symbolview.cpp b/src/kile/symbolview.cpp index 0214644..090c4ea 100644 --- a/src/kile/symbolview.cpp +++ b/src/kile/symbolview.cpp @@ -260,7 +260,7 @@ void SymbolView::fillWidget(const TQString& prefix) if( prefix == MFUSprefix) { - KConfig *config = TDEGlobal::config(); + TDEConfig *config = TDEGlobal::config(); config->setGroup(MFUSGroup); TQString configPaths = config->readEntry("paths"); TQString configrefCnts = config->readEntry("counts"); @@ -302,7 +302,7 @@ void SymbolView::writeConfig() TQStringList paths,refCnts; - KConfig *config = TDEGlobal::config(); + TDEConfig *config = TDEGlobal::config(); config->setGroup(MFUSGroup); if( KileConfig::clearMFUS() ) diff --git a/src/kile/tabbingdialog.cpp b/src/kile/tabbingdialog.cpp index b02bcdf..6afd377 100644 --- a/src/kile/tabbingdialog.cpp +++ b/src/kile/tabbingdialog.cpp @@ -27,7 +27,7 @@ namespace KileDialog { - QuickTabbing::QuickTabbing(KConfig *config, KileInfo *ki, TQWidget *parent, const char *name, const TQString &caption ) : Wizard(config, parent,name, caption), m_ki(ki) + QuickTabbing::QuickTabbing(TDEConfig *config, KileInfo *ki, TQWidget *parent, const char *name, const TQString &caption ) : Wizard(config, parent,name, caption), m_ki(ki) { TQWidget *page = new TQWidget(this); setMainWidget(page); diff --git a/src/kile/tabbingdialog.h b/src/kile/tabbingdialog.h index a833ea5..372bfce 100644 --- a/src/kile/tabbingdialog.h +++ b/src/kile/tabbingdialog.h @@ -37,7 +37,7 @@ namespace KileDialog public: - QuickTabbing(KConfig *config, KileInfo *ki, TQWidget *parent=0, const char *name=0, const TQString &caption = TQString()); + QuickTabbing(TDEConfig *config, KileInfo *ki, TQWidget *parent=0, const char *name=0, const TQString &caption = TQString()); ~QuickTabbing(); public slots: diff --git a/src/kile/tabulardialog.cpp b/src/kile/tabulardialog.cpp index 8187b76..1e408aa 100644 --- a/src/kile/tabulardialog.cpp +++ b/src/kile/tabulardialog.cpp @@ -1832,7 +1832,7 @@ TabularCell::Count TabularTable::countCells(int x1,int y1,int x2,int y2) //BEGIN TabularDialog -TabularDialog::TabularDialog(TQWidget *parent, KConfig *config, KileDocument::LatexCommands *commands, bool tabularenv) +TabularDialog::TabularDialog(TQWidget *parent, TDEConfig *config, KileDocument::LatexCommands *commands, bool tabularenv) : Wizard(config,parent), m_latexCommands(commands) { TQWidget *page = new TQWidget(this); diff --git a/src/kile/tabulardialog.h b/src/kile/tabulardialog.h index 9606b1f..5c0ecdf 100644 --- a/src/kile/tabulardialog.h +++ b/src/kile/tabulardialog.h @@ -260,7 +260,7 @@ class TabularDialog : public Wizard public: - TabularDialog(TQWidget *parent, KConfig *config, KileDocument::LatexCommands *commands, bool tabularenv= true); + TabularDialog(TQWidget *parent, TDEConfig *config, KileDocument::LatexCommands *commands, bool tabularenv= true); ~TabularDialog() {} TQStringList columnAlignments(); diff --git a/src/kile/templates.cpp b/src/kile/templates.cpp index 950e0bc..d63da16 100644 --- a/src/kile/templates.cpp +++ b/src/kile/templates.cpp @@ -73,7 +73,7 @@ bool Manager::copyAppData(const KURL& src, const TQString& subdir, const TQStrin //if a directory is found if (!dir.isNull()) { - return KIO::NetAccess::copy(src, targetURL, kapp->mainWidget()); + return TDEIO::NetAccess::copy(src, targetURL, kapp->mainWidget()); } else { KMessageBox::error(0, i18n("Could not find a folder to save %1 to.\nCheck whether you have a .kde folder with write permissions in your home folder.").arg(fileName)); @@ -84,7 +84,7 @@ bool Manager::copyAppData(const KURL& src, const TQString& subdir, const TQStrin bool Manager::removeAppData(const TQString &file) { TQFileInfo fileInfo(file); if(fileInfo.exists()) { - return KIO::NetAccess::del(KURL::fromPathOrURL(file), kapp->mainWidget()); + return TDEIO::NetAccess::del(KURL::fromPathOrURL(file), kapp->mainWidget()); } return true; } @@ -123,29 +123,29 @@ bool Manager::replace(const KileTemplate::Info& toBeReplaced, const KURL& newTem //start by copying the files that belong to the new template to a safe place TQString templateTempFile, iconTempFile; - if(!KIO::NetAccess::download(newTemplateSourceURL, templateTempFile, kapp->mainWidget())) { + if(!TDEIO::NetAccess::download(newTemplateSourceURL, templateTempFile, kapp->mainWidget())) { return false; } - if(!KIO::NetAccess::download(newIcon, iconTempFile, kapp->mainWidget())) { - KIO::NetAccess::removeTempFile(templateTempFile); + if(!TDEIO::NetAccess::download(newIcon, iconTempFile, kapp->mainWidget())) { + TDEIO::NetAccess::removeTempFile(templateTempFile); return false; } //now delete the template that should be replaced if(!remove(toBeReplaced)) { - KIO::NetAccess::removeTempFile(templateTempFile); - KIO::NetAccess::removeTempFile(iconTempFile); + TDEIO::NetAccess::removeTempFile(templateTempFile); + TDEIO::NetAccess::removeTempFile(iconTempFile); } //finally, create the new template if(!add(KURL::fromPathOrURL(templateTempFile), type, newName, KURL::fromPathOrURL(iconTempFile))) { - KIO::NetAccess::removeTempFile(templateTempFile); - KIO::NetAccess::removeTempFile(iconTempFile); + TDEIO::NetAccess::removeTempFile(templateTempFile); + TDEIO::NetAccess::removeTempFile(iconTempFile); return false; } - KIO::NetAccess::removeTempFile(templateTempFile); - KIO::NetAccess::removeTempFile(iconTempFile); + TDEIO::NetAccess::removeTempFile(templateTempFile); + TDEIO::NetAccess::removeTempFile(iconTempFile); return true; } diff --git a/src/kile/userhelp.cpp b/src/kile/userhelp.cpp index e022e28..9b39a5c 100644 --- a/src/kile/userhelp.cpp +++ b/src/kile/userhelp.cpp @@ -54,7 +54,7 @@ void UserHelp::readConfig() TQStringList menu,files; // first read all entries - KConfig *config = m_manager->config(); + TDEConfig *config = m_manager->config(); config->setGroup("UserHelp"); int entries = config->readNumEntry("entries"); for ( int i=0; i<entries; ++i ) @@ -76,7 +76,7 @@ void UserHelp::writeConfig() int entries = m_menuentries.count(); // first delete old entries - KConfig *config = m_manager->config(); + TDEConfig *config = m_manager->config(); config->deleteGroup("UserHelp"); // then write new entries @@ -272,7 +272,7 @@ void UserHelp::slotUserHelpActivated(int index) type = "ViewHTML"; } - KConfig *config = m_manager->config(); + TDEConfig *config = m_manager->config(); if ( type!=TQString() && config->hasGroup("Tool/" + type + '/' + cfg) ) { KileTool::View *tool = new KileTool::View(type, m_manager, false); |