summaryrefslogtreecommitdiffstats
path: root/parts/documentation
diff options
context:
space:
mode:
Diffstat (limited to 'parts/documentation')
-rw-r--r--parts/documentation/docglobalconfigwidget.cpp10
-rw-r--r--parts/documentation/documentation_part.cpp10
-rw-r--r--parts/documentation/documentation_part.h4
-rw-r--r--parts/documentation/documentation_widget.cpp2
-rw-r--r--parts/documentation/find_documentation_options.h4
-rw-r--r--parts/documentation/interfaces/kdevdocumentationplugin.cpp2
-rw-r--r--parts/documentation/interfaces/kdevdocumentationplugin.h8
-rw-r--r--parts/documentation/plugins/chm/docchmplugin.cpp4
-rw-r--r--parts/documentation/plugins/qt/docqtplugin.h2
-rw-r--r--parts/documentation/protocols/chm/chm.cpp6
-rw-r--r--parts/documentation/protocols/chm/chm.h2
-rw-r--r--parts/documentation/protocols/chm/kchmpart.cpp10
-rw-r--r--parts/documentation/protocols/chm/kchmpart.h6
-rw-r--r--parts/documentation/searchview.cpp4
-rw-r--r--parts/documentation/tools/htdig/htdigindex.cpp6
15 files changed, 40 insertions, 40 deletions
diff --git a/parts/documentation/docglobalconfigwidget.cpp b/parts/documentation/docglobalconfigwidget.cpp
index 712a57fa..0b04548d 100644
--- a/parts/documentation/docglobalconfigwidget.cpp
+++ b/parts/documentation/docglobalconfigwidget.cpp
@@ -63,7 +63,7 @@ DocGlobalConfigWidget::DocGlobalConfigWidget(DocumentationPart *part,
(*it)->loadCatalogConfiguration( m_View );
}
- KConfig *config = m_part->config();
+ TDEConfig *config = m_part->config();
//read full text search settings
config->setGroup("htdig");
TQString databaseDir = kapp->dirs()->saveLocation("data",
@@ -105,7 +105,7 @@ DocGlobalConfigWidget::DocGlobalConfigWidget(DocumentationPart *part,
//font sizes and zoom levels
KHTMLPart htmlpart;
- KConfig *appConfig = TDEGlobal::config();
+ TDEConfig *appConfig = TDEGlobal::config();
appConfig->setGroup("KHTMLPart");
standardFont_combo->setCurrentText(appConfig->readEntry("StandardFont",
htmlpart.settings()->stdFontName()));
@@ -173,7 +173,7 @@ void DocGlobalConfigWidget::accept()
(*it)->reinit(m_widget->contents(), m_widget->index(), TQStringList());
}
- KConfig *config = m_part->config();
+ TDEConfig *config = m_part->config();
//write full text search settings
config->setGroup("htdig");
config->writePathEntry("databaseDir", DocUtils::envURL(databaseDirEdit));
@@ -214,7 +214,7 @@ void DocGlobalConfigWidget::accept()
m_part->setAssistantUsed(useAssistant_box->isChecked());
//font sizes and zoom levels
- KConfig *appConfig = TDEGlobal::config();
+ TDEConfig *appConfig = TDEGlobal::config();
appConfig->setGroup("KHTMLPart");
appConfig->writeEntry("StandardFont", standardFont_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));
if (htmlPart)
{
- KConfig *appConfig = TDEGlobal::config();
+ TDEConfig *appConfig = TDEGlobal::config();
appConfig->setGroup("KHTMLPart");
htmlPart->setStandardFont(appConfig->readEntry("StandardFont"));
htmlPart->setFixedFont(appConfig->readEntry("FixedFont"));
diff --git a/parts/documentation/documentation_part.cpp b/parts/documentation/documentation_part.cpp
index 23fd0e14..32b08323 100644
--- a/parts/documentation/documentation_part.cpp
+++ b/parts/documentation/documentation_part.cpp
@@ -183,7 +183,7 @@ void DocumentationPart::insertConfigWidget(const KDialogBase *dlg, TQWidget *pag
}
}
-KConfig *DocumentationPart::config()
+TDEConfig *DocumentationPart::config()
{
return DocumentationFactory::instance()->config();
}
@@ -508,7 +508,7 @@ void DocumentationPart::contextMenu(TQPopupMenu *popup, const Context *context)
bool DocumentationPart::hasContextFeature(ContextFeature feature)
{
- KConfig *config = DocumentationFactory::instance()->config();
+ TDEConfig *config = DocumentationFactory::instance()->config();
TQString group = config->group();
config->setGroup("Context Features");
switch (feature)
@@ -535,7 +535,7 @@ bool DocumentationPart::hasContextFeature(ContextFeature feature)
void DocumentationPart::setContextFeature(ContextFeature feature, bool b)
{
- KConfig *config = DocumentationFactory::instance()->config();
+ TDEConfig *config = DocumentationFactory::instance()->config();
TQString group = config->group();
config->setGroup("Context Features");
TQString key;
@@ -687,7 +687,7 @@ void DocumentationPart::setAssistantUsed(bool b)
{
m_assistantUsed = b;
//use global config to store different settings for kdevassistant and tdevelop
- KConfig *config = kapp->config();
+ TDEConfig *config = kapp->config();
config->setGroup("Documentation");
config->writeEntry("UseAssistant", isAssistantUsed());
}
@@ -735,7 +735,7 @@ void DocumentationPart::callAssistant(const TQCString &interface, const TQCStrin
void DocumentationPart::loadSettings()
{
- KConfig *config = kapp->config();
+ TDEConfig *config = kapp->config();
config->setGroup("Documentation");
m_assistantUsed = config->readBoolEntry("UseAssistant", false);
diff --git a/parts/documentation/documentation_part.h b/parts/documentation/documentation_part.h
index d6bdacd2..722ad4bd 100644
--- a/parts/documentation/documentation_part.h
+++ b/parts/documentation/documentation_part.h
@@ -27,7 +27,7 @@
class FindDocumentation;
class DocumentationWidget;
class IndexBox;
-class KConfig;
+class TDEConfig;
class KDialogBase;
class ConfigWidgetProxy;
class DocumentationPlugin;
@@ -84,7 +84,7 @@ signals:
protected:
void loadDocumentationPlugins();
- KConfig *config();
+ TDEConfig *config();
void setupActions();
void loadSettings();
void saveProjectDocumentationInfo();
diff --git a/parts/documentation/documentation_widget.cpp b/parts/documentation/documentation_widget.cpp
index 90cd6234..84d8eada 100644
--- a/parts/documentation/documentation_widget.cpp
+++ b/parts/documentation/documentation_widget.cpp
@@ -69,7 +69,7 @@ DocumentationWidget::DocumentationWidget(DocumentationPart *part)
DocumentationWidget::~DocumentationWidget()
{
- KConfig *config = kapp->config();
+ TDEConfig *config = kapp->config();
config->setGroup("Documentation");
config->writeEntry("LastPage", m_tab->currentIndex());
}
diff --git a/parts/documentation/find_documentation_options.h b/parts/documentation/find_documentation_options.h
index 65f852ba..ab1a3cc9 100644
--- a/parts/documentation/find_documentation_options.h
+++ b/parts/documentation/find_documentation_options.h
@@ -24,7 +24,7 @@
#include "find_documentation_optionsbase.h"
class TQCheckListItem;
-class KConfig;
+class TDEConfig;
class FindDocumentationOptions : public FindDocumentationOptionsBase
{
@@ -60,7 +60,7 @@ private:
TQCheckListItem *m_google_item;
TQCheckListItem *m_contents_item;
- KConfig* config;
+ TDEConfig* config;
};
#endif
diff --git a/parts/documentation/interfaces/kdevdocumentationplugin.cpp b/parts/documentation/interfaces/kdevdocumentationplugin.cpp
index 15d0d0a9..5c261c4c 100644
--- a/parts/documentation/interfaces/kdevdocumentationplugin.cpp
+++ b/parts/documentation/interfaces/kdevdocumentationplugin.cpp
@@ -253,7 +253,7 @@ int ConfigurationItem::width(const TQFontMetrics &fm, const TQListView *lv, int
//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)
{
}
diff --git a/parts/documentation/interfaces/kdevdocumentationplugin.h b/parts/documentation/interfaces/kdevdocumentationplugin.h
index 545b101a..aa329ac5 100644
--- a/parts/documentation/interfaces/kdevdocumentationplugin.h
+++ b/parts/documentation/interfaces/kdevdocumentationplugin.h
@@ -234,7 +234,7 @@ public:
setCapabilities(Index | FullTextSearch);
@endcode
*/
- DocumentationPlugin(KConfig *pluginConfig, TQObject *parent =0, const char *name =0);
+ DocumentationPlugin(TDEConfig *pluginConfig, TQObject *parent =0, const char *name =0);
virtual ~DocumentationPlugin();
/**Returns the i18n name of the plugin.*/
@@ -298,8 +298,8 @@ public:
/**Loads catalog configuration and fills configurationView with ConfigurationItem objects.*/
virtual void loadCatalogConfiguration(KListView *configurationView);
/**Saves catalog configuration basing on configurationView and
- deletedConfigurationItems contents. If you use KConfig to store configuration,
- it is important that you call KConfig::sync() method after saving.*/
+ deletedConfigurationItems contents. If you use TDEConfig to store configuration,
+ it is important that you call TDEConfig::sync() method after saving.*/
virtual void saveCatalogConfiguration(KListView *configurationView);
/**Adds new catalog to a configuration.*/
virtual void addCatalogConfiguration(KListView *configurationView,
@@ -366,7 +366,7 @@ protected:
TQStringList deletedConfigurationItems;
/**Configuration object used by a plugin.*/
- KConfig *config;
+ TDEConfig *config;
private:
/**Adds catalog item to catalogs, namedCatalogs and indexes lists and maps.*/
diff --git a/parts/documentation/plugins/chm/docchmplugin.cpp b/parts/documentation/plugins/chm/docchmplugin.cpp
index 09b81d72..7293d985 100644
--- a/parts/documentation/plugins/chm/docchmplugin.cpp
+++ b/parts/documentation/plugins/chm/docchmplugin.cpp
@@ -82,7 +82,7 @@ TQString DocCHMPlugin::getSpecialData(const TQString& name, KURL url) {
url.addPath("/:" + name);
TQString tmpFile;
- if( KIO::NetAccess::download( url, tmpFile, 0 ) )
+ if( TDEIO::NetAccess::download( url, tmpFile, 0 ) )
{
std::filebuf fb;
fb.open (tmpFile.ascii(), std::ios::in);
@@ -93,7 +93,7 @@ TQString DocCHMPlugin::getSpecialData(const TQString& name, KURL url) {
ret += buf; ret += "\n";
}
fb.close();
- KIO::NetAccess::removeTempFile( tmpFile );
+ TDEIO::NetAccess::removeTempFile( tmpFile );
} else {
kdDebug(9002) << "DocCHMPlugin::getSpecialData could not download data from " << url.url() << endl;
}
diff --git a/parts/documentation/plugins/qt/docqtplugin.h b/parts/documentation/plugins/qt/docqtplugin.h
index 4712dc14..53dd6740 100644
--- a/parts/documentation/plugins/qt/docqtplugin.h
+++ b/parts/documentation/plugins/qt/docqtplugin.h
@@ -23,7 +23,7 @@
#include <kdevdocumentationplugin.h>
#include <tqdom.h>
-class KConfig;
+class TDEConfig;
class DocQtPlugin : public DocumentationPlugin
{
diff --git a/parts/documentation/protocols/chm/chm.cpp b/parts/documentation/protocols/chm/chm.cpp
index 3f0fbc54..7c8421a8 100644
--- a/parts/documentation/protocols/chm/chm.cpp
+++ b/parts/documentation/protocols/chm/chm.cpp
@@ -35,7 +35,7 @@
#include "chm.h"
-using namespace KIO;
+using namespace TDEIO;
extern "C"
{
@@ -100,13 +100,13 @@ void ChmProtocol::get( const KURL& url )
TQString path;
if ( !checkNewFile( bigpath, path ) ) {
- error( KIO::ERR_DOES_NOT_EXIST, url.prettyURL() );
+ error( TDEIO::ERR_DOES_NOT_EXIST, url.prettyURL() );
return;
}
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;
}
diff --git a/parts/documentation/protocols/chm/chm.h b/parts/documentation/protocols/chm/chm.h
index feb075dc..333b5ca3 100644
--- a/parts/documentation/protocols/chm/chm.h
+++ b/parts/documentation/protocols/chm/chm.h
@@ -26,7 +26,7 @@
class TQCString;
-class ChmProtocol : public KIO::SlaveBase
+class ChmProtocol : public TDEIO::SlaveBase
{
public:
ChmProtocol( const TQCString&, const TQCString& );
diff --git a/parts/documentation/protocols/chm/kchmpart.cpp b/parts/documentation/protocols/chm/kchmpart.cpp
index c9c5f58e..11e5e93e 100644
--- a/parts/documentation/protocols/chm/kchmpart.cpp
+++ b/parts/documentation/protocols/chm/kchmpart.cpp
@@ -100,18 +100,18 @@ bool KChmPart::openFile()
m_htmlData.truncate(0);
- m_job = KIO::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( result( KIO::Job * ) ), TQT_SLOT( jobDone( KIO::Job * ) ) );
+ m_job = TDEIO::get( TQString("chm:")+m_file+"/", true, false );
+ connect( m_job, TQT_SIGNAL( data( TDEIO::Job *, const TQByteArray &) ), TQT_SLOT( readData( TDEIO::Job *, const TQByteArray &) ) );
+ connect( m_job, TQT_SIGNAL( result( TDEIO::Job * ) ), TQT_SLOT( jobDone( TDEIO::Job * ) ) );
return true;
}
-void KChmPart::readData(KIO::Job * , const TQByteArray & data)
+void KChmPart::readData(TDEIO::Job * , const TQByteArray & data)
{
m_htmlData += data;
}
-void KChmPart::jobDone( KIO::Job *)
+void KChmPart::jobDone( TDEIO::Job *)
{
m_job=0;
begin();
diff --git a/parts/documentation/protocols/chm/kchmpart.h b/parts/documentation/protocols/chm/kchmpart.h
index 3ed054fe..1ec2eaf8 100644
--- a/parts/documentation/protocols/chm/kchmpart.h
+++ b/parts/documentation/protocols/chm/kchmpart.h
@@ -64,14 +64,14 @@ class KChmPart : public KDevHTMLPart
virtual bool openURL( const KURL & );
/*
protected slots:
- void readData(KIO::Job * , const TQByteArray & data);
- void jobDone( KIO::Job *);
+ void readData(TDEIO::Job * , const TQByteArray & data);
+ void jobDone( TDEIO::Job *);
*/
protected:
//virtual bool openFile();
TDEInstance *m_instance;
KParts::BrowserExtension *m_extension;
- KIO::TransferJob *m_job;
+ TDEIO::TransferJob *m_job;
TQCString m_htmlData;
protected slots:
diff --git a/parts/documentation/searchview.cpp b/parts/documentation/searchview.cpp
index 69a91a6e..16f71171 100644
--- a/parts/documentation/searchview.cpp
+++ b/parts/documentation/searchview.cpp
@@ -123,7 +123,7 @@ void SearchView::updateConfig()
void SearchView::updateIndex()
{
runHtdig("-i");
- KConfig *config = m_part->config();
+ TDEConfig *config = m_part->config();
config->setGroup("htdig");
config->writeEntry("IsSetup", true);
config->sync();
@@ -141,7 +141,7 @@ void tqt_leave_modal(TQWidget *widget);
void SearchView::search()
{
- KConfig *config = m_part->config();
+ TDEConfig *config = m_part->config();
config->setGroup("htdig");
if (config->readBoolEntry("IsSetup", false) == false)
{
diff --git a/parts/documentation/tools/htdig/htdigindex.cpp b/parts/documentation/tools/htdig/htdigindex.cpp
index 4c0dfa99..b7b56304 100644
--- a/parts/documentation/tools/htdig/htdigindex.cpp
+++ b/parts/documentation/tools/htdig/htdigindex.cpp
@@ -48,7 +48,7 @@ ProgressDialog::ProgressDialog(bool index, TQWidget *parent, const char *name)
indexdir = kapp->dirs()->saveLocation("data", "kdevdocumentation/search");
TQDir d; d.mkdir(indexdir);
- KConfig config("kdevdocumentation", true);
+ TDEConfig config("kdevdocumentation", true);
config.setGroup("htdig");
databaseDir = config.readPathEntry("databaseDir", indexdir);
@@ -300,7 +300,7 @@ bool ProgressDialog::generateIndex()
setState(1);
procdone = false;
// run htdig
- KConfig config("kdevdocumentation", true);
+ TDEConfig config("kdevdocumentation", true);
config.setGroup("htdig");
exe = config.readPathEntry("htdigbin", kapp->dirs()->findExe("htdig"));
if (exe.isEmpty())
@@ -365,7 +365,7 @@ void ProgressDialog::htdigExited(TDEProcess *proc)
setFilesDigged(filesToDig);
setState(2);
- KConfig config("kdevdocumentation", true);
+ TDEConfig config("kdevdocumentation", true);
config.setGroup("htdig");
// run htmerge -----------------------------------------------------
exe = config.readPathEntry("htmergebin", kapp->dirs()->findExe("htmerge"));