diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:35:07 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:35:07 -0600 |
commit | 703fb0c89c2eee56a1e613e67a446db9d4287929 (patch) | |
tree | dd8c5ca66075cd89c2638a2b48cf78386a9870a7 /interfaces/ktexteditor | |
parent | 818e7abec3d5d3809b6b77293558678371c16b71 (diff) | |
download | tdelibs-703fb0c89c2eee56a1e613e67a446db9d4287929.tar.gz tdelibs-703fb0c89c2eee56a1e613e67a446db9d4287929.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'interfaces/ktexteditor')
-rw-r--r-- | interfaces/ktexteditor/configinterface.h | 10 | ||||
-rw-r--r-- | interfaces/ktexteditor/editorchooser.cpp | 14 | ||||
-rw-r--r-- | interfaces/ktexteditor/editorchooser.h | 6 | ||||
-rw-r--r-- | interfaces/ktexteditor/sessionconfiginterface.h | 6 |
4 files changed, 18 insertions, 18 deletions
diff --git a/interfaces/ktexteditor/configinterface.h b/interfaces/ktexteditor/configinterface.h index cb8538465..4879fa66b 100644 --- a/interfaces/ktexteditor/configinterface.h +++ b/interfaces/ktexteditor/configinterface.h @@ -22,7 +22,7 @@ #include <tdelibs_export.h> class TQCString; -class KConfig; +class TDEConfig; namespace KTextEditor { @@ -60,14 +60,14 @@ class KTEXTEDITOR_EXPORT ConfigInterface Read/Write the config of the part to a given kconfig object to store the settings in a different place than the standard */ - virtual void readConfig (KConfig *) = 0; - virtual void writeConfig (KConfig *) = 0; + virtual void readConfig (TDEConfig *) = 0; + virtual void writeConfig (TDEConfig *) = 0; /** Read/Write session config of only this document/view/plugin */ - virtual void readSessionConfig (KConfig *) = 0; - virtual void writeSessionConfig (KConfig *) = 0; + virtual void readSessionConfig (TDEConfig *) = 0; + virtual void writeSessionConfig (TDEConfig *) = 0; /** Shows a config dialog for the part, changes will be applied diff --git a/interfaces/ktexteditor/editorchooser.cpp b/interfaces/ktexteditor/editorchooser.cpp index 85466f55d..807d342d0 100644 --- a/interfaces/ktexteditor/editorchooser.cpp +++ b/interfaces/ktexteditor/editorchooser.cpp @@ -47,7 +47,7 @@ EditorChooser::EditorChooser(TQWidget *parent,const char *name) : KTrader::OfferList offers = KTrader::self()->query("text/plain", "'KTextEditor/Document' in ServiceTypes"); - KConfig *config=new KConfig("default_components"); + TDEConfig *config=new TDEConfig("default_components"); config->setGroup("KTextEditor"); TQString editor = config->readPathEntry("embeddedEditor"); @@ -75,7 +75,7 @@ EditorChooser:: ~EditorChooser(){ } void EditorChooser::readAppSetting(const TQString& postfix){ - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); TQString previousGroup=cfg->group(); cfg->setGroup("KTEXTEDITOR:"+postfix); TQString editor=cfg->readPathEntry("editor"); @@ -90,7 +90,7 @@ void EditorChooser::readAppSetting(const TQString& postfix){ } void EditorChooser::writeAppSetting(const TQString& postfix){ - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); TQString previousGroup=cfg->group(); cfg->setGroup("KTEXTEDITOR:"+postfix); cfg->writeEntry("DEVELOPER_INFO","NEVER TRY TO USE VALUES FROM THAT GROUP, THEY ARE SUBJECT TO CHANGES"); @@ -105,14 +105,14 @@ KTextEditor::Document *EditorChooser::createDocument(TQObject *parent,const char KTextEditor::Document *tmpDoc=0; - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); TQString previousGroup=cfg->group(); cfg->setGroup("KTEXTEDITOR:"+postfix); TQString editor=cfg->readPathEntry("editor"); cfg->setGroup(previousGroup); if (editor.isEmpty()) { - KConfig *config=new KConfig("default_components"); + TDEConfig *config=new TDEConfig("default_components"); config->setGroup("KTextEditor"); editor = config->readPathEntry("embeddedEditor", "katepart"); delete config; @@ -135,14 +135,14 @@ KTextEditor::Editor *EditorChooser::createEditor(TQWidget *parentWidget,TQObject KTextEditor::Editor *tmpEd=0; - KConfig *cfg=kapp->config(); + TDEConfig *cfg=kapp->config(); TQString previousGroup=cfg->group(); cfg->setGroup("KTEXTEDITOR:"+postfix); TQString editor=cfg->readPathEntry("editor"); cfg->setGroup(previousGroup); if (editor.isEmpty()) { - KConfig *config=new KConfig("default_components"); + TDEConfig *config=new TDEConfig("default_components"); config->setGroup("KTextEditor"); editor = config->readPathEntry("embeddedEditor", "katepart"); delete config; diff --git a/interfaces/ktexteditor/editorchooser.h b/interfaces/ktexteditor/editorchooser.h index 0010dd3a8..d56e8d8e5 100644 --- a/interfaces/ktexteditor/editorchooser.h +++ b/interfaces/ktexteditor/editorchooser.h @@ -6,7 +6,7 @@ #include <tqwidget.h> -class KConfig; +class TDEConfig; class TQString; namespace KTextEditor @@ -45,8 +45,8 @@ public: virtual const TQStringList &choices(); virtual void saveSettings(); - void readAppSetting(KConfig *cfg,const TQString& postfix); - void writeAppSetting(KConfig *cfg,const TQString& postfix); + void readAppSetting(TDEConfig *cfg,const TQString& postfix); + void writeAppSetting(TDEConfig *cfg,const TQString& postfix); public slots: virtual void madeChoice(int pos,const TQString &choice); diff --git a/interfaces/ktexteditor/sessionconfiginterface.h b/interfaces/ktexteditor/sessionconfiginterface.h index c79de0011..b4fb52233 100644 --- a/interfaces/ktexteditor/sessionconfiginterface.h +++ b/interfaces/ktexteditor/sessionconfiginterface.h @@ -22,7 +22,7 @@ #include <tdelibs_export.h> class TQCString; -class KConfig; +class TDEConfig; namespace KTextEditor { @@ -53,8 +53,8 @@ class KTEXTEDITOR_EXPORT SessionConfigInterface * In case of the document, that means for example it should reload the file, * restore all marks, ... */ - virtual void readSessionConfig (KConfig *) = 0; - virtual void writeSessionConfig (KConfig *) = 0; + virtual void readSessionConfig (TDEConfig *) = 0; + virtual void writeSessionConfig (TDEConfig *) = 0; private: class PrivateSessionConfigInterface *d; |