summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:10:32 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:10:32 -0600
commit3fe437def8063926892bddf2dcc733861308836d (patch)
tree021d66ad023a32bc8ea0074a1ab3d01316aff8b0 /lib/kofficecore
parent5b8ab149469c8e186ee8b05d90c0103ae722dd85 (diff)
downloadkoffice-3fe437def8063926892bddf2dcc733861308836d.tar.gz
koffice-3fe437def8063926892bddf2dcc733861308836d.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'lib/kofficecore')
-rw-r--r--lib/kofficecore/KoDetailsPane.cpp20
-rw-r--r--lib/kofficecore/KoDetailsPane.h4
-rw-r--r--lib/kofficecore/KoDocument.cpp12
-rw-r--r--lib/kofficecore/KoDocument.h4
-rw-r--r--lib/kofficecore/KoDocumentInfo.cpp6
-rw-r--r--lib/kofficecore/KoDocumentInfo.h2
-rw-r--r--lib/kofficecore/KoDocumentInfoDlg.cpp4
-rw-r--r--lib/kofficecore/KoGlobal.cpp6
-rw-r--r--lib/kofficecore/KoGlobal.h12
-rw-r--r--lib/kofficecore/KoMainWindow.cpp12
-rw-r--r--lib/kofficecore/KoOpenPane.cpp12
-rw-r--r--lib/kofficecore/KoOpenPane.h4
-rw-r--r--lib/kofficecore/KoPicture.cpp4
-rw-r--r--lib/kofficecore/KoPictureBase.cpp2
-rw-r--r--lib/kofficecore/KoSpeaker.cpp2
-rw-r--r--lib/kofficecore/KoSpeaker.h4
-rw-r--r--lib/kofficecore/KoTemplates.cpp4
17 files changed, 57 insertions, 57 deletions
diff --git a/lib/kofficecore/KoDetailsPane.cpp b/lib/kofficecore/KoDetailsPane.cpp
index 1e204af7c..8fb845892 100644
--- a/lib/kofficecore/KoDetailsPane.cpp
+++ b/lib/kofficecore/KoDetailsPane.cpp
@@ -97,7 +97,7 @@ KoTemplatesPane::KoTemplatesPane(TQWidget* parent, TDEInstance* instance,
KGuiItem openGItem(i18n("Use This Template"));
m_openButton->setGuiItem(openGItem);
m_documentList->header()->hide();
- KConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
+ TDEConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
TQString fullTemplateName = cfgGrp.readPathEntry("FullTemplateName");
d->m_alwaysUseTemplate = cfgGrp.readPathEntry("AlwaysUseTemplate");
connect(m_alwaysUseCheckBox, TQT_SIGNAL(clicked()), this, TQT_SLOT(alwaysUseClicked()));
@@ -173,7 +173,7 @@ void KoTemplatesPane::openTemplate()
void KoTemplatesPane::openTemplate(TQListViewItem* item)
{
if(item) {
- KConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
+ TDEConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
cfgGrp.writePathEntry("FullTemplateName", item->text(2));
cfgGrp.writeEntry("LastReturnType", "Template");
cfgGrp.writeEntry("AlwaysUseTemplate", d->m_alwaysUseTemplate);
@@ -199,7 +199,7 @@ void KoTemplatesPane::alwaysUseClicked()
TQListViewItem* item = m_documentList->selectedItem();
if(!m_alwaysUseCheckBox->isChecked()) {
- KConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
+ TDEConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
cfgGrp.writeEntry("AlwaysUseTemplate", TQString());
d->m_alwaysUseTemplate = TQString();
} else {
@@ -264,7 +264,7 @@ class KoRecentDocumentsPanePrivate
m_previewJob->kill();
}
- KIO::PreviewJob* m_previewJob;
+ TDEIO::PreviewJob* m_previewJob;
TDEInstance* m_instance;
};
@@ -346,9 +346,9 @@ KoRecentDocumentsPane::KoRecentDocumentsPane(TQWidget* parent, TDEInstance* inst
m_documentList->setSelected(m_documentList->firstChild(), true);
- d->m_previewJob = KIO::filePreview(fileList, 200, 200);
+ d->m_previewJob = TDEIO::filePreview(fileList, 200, 200);
- connect(d->m_previewJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(previewResult(KIO::Job*)));
+ connect(d->m_previewJob, TQT_SIGNAL(result(TDEIO::Job*)), this, TQT_SLOT(previewResult(TDEIO::Job*)));
connect(d->m_previewJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
this, TQT_SLOT(updatePreview(const KFileItem*, const TQPixmap&)));
}
@@ -369,9 +369,9 @@ void KoRecentDocumentsPane::selectionChanged(TQListViewItem* item)
KFileItem* fileItem = static_cast<KoFileListItem*>(item)->fileItem();
TQString details = "<center><table border=\"0\">";
details += i18n("File modification date and time. %1 is date time", "<tr><td><b>Modified:</b></td><td>%1</td></tr>")
- .arg(fileItem->timeString(KIO::UDS_MODIFICATION_TIME));
+ .arg(fileItem->timeString(TDEIO::UDS_MODIFICATION_TIME));
details += i18n("File access date and time. %1 is date time", "<tr><td><b>Accessed:</b></td><td>%1</td></tr>")
- .arg(fileItem->timeString(KIO::UDS_ACCESS_TIME));
+ .arg(fileItem->timeString(TDEIO::UDS_ACCESS_TIME));
details += "</table></center>";
m_detailsLabel->setText(details);
} else {
@@ -393,14 +393,14 @@ void KoRecentDocumentsPane::openFile()
void KoRecentDocumentsPane::openFile(TQListViewItem* item)
{
- KConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
+ TDEConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
cfgGrp.writeEntry("LastReturnType", "File");
if(item)
emit openFile(item->text(1));
}
-void KoRecentDocumentsPane::previewResult(KIO::Job* job)
+void KoRecentDocumentsPane::previewResult(TDEIO::Job* job)
{
if(d->m_previewJob == job)
d->m_previewJob = 0;
diff --git a/lib/kofficecore/KoDetailsPane.h b/lib/kofficecore/KoDetailsPane.h
index 86190edea..596c3c12a 100644
--- a/lib/kofficecore/KoDetailsPane.h
+++ b/lib/kofficecore/KoDetailsPane.h
@@ -32,7 +32,7 @@ class KoRichTextListItemPrivate;
class KFileItem;
class TQPixmap;
-namespace KIO {
+namespace TDEIO {
class Job;
}
@@ -122,7 +122,7 @@ class KoRecentDocumentsPane : public KoDetailsPaneBase
void openFile();
void openFile(TQListViewItem* item);
- void previewResult(KIO::Job* job);
+ void previewResult(TDEIO::Job* job);
void updatePreview(const KFileItem* fileItem, const TQPixmap& preview);
void changePalette();
diff --git a/lib/kofficecore/KoDocument.cpp b/lib/kofficecore/KoDocument.cpp
index beb0b266e..8bc8f88cb 100644
--- a/lib/kofficecore/KoDocument.cpp
+++ b/lib/kofficecore/KoDocument.cpp
@@ -264,7 +264,7 @@ KoDocument::KoDocument( TQWidget * parentWidget, const char *widgetName, TQObjec
// A way to 'fix' the job's window, since we have no widget known to KParts
if ( !singleViewMode )
- connect( this, TQT_SIGNAL( started( KIO::Job* ) ), TQT_SLOT( slotStarted( KIO::Job* ) ) );
+ connect( this, TQT_SIGNAL( started( TDEIO::Job* ) ), TQT_SLOT( slotStarted( TDEIO::Job* ) ) );
}
KoDocument::~KoDocument()
@@ -393,8 +393,8 @@ bool KoDocument::saveFile()
if ( url().isLocalFile() )
KSaveFile::backupFile( url().path(), d->m_backupPath );
else {
- KIO::UDSEntry entry;
- if ( KIO::NetAccess::stat( url(), entry, shells().current() ) ) { // this file exists => backup
+ TDEIO::UDSEntry entry;
+ if ( TDEIO::NetAccess::stat( url(), entry, shells().current() ) ) { // this file exists => backup
emit sigStatusBarMessage( i18n("Making backup...") );
KURL backup;
if ( d->m_backupPath.isEmpty())
@@ -404,7 +404,7 @@ bool KoDocument::saveFile()
backup.setPath( backup.path() + TQString::fromLatin1("~") );
KFileItem item( entry, url() );
Q_ASSERT( item.name() == url().fileName() );
- KIO::NetAccess::file_copy( url(), backup, item.permissions(), true /*overwrite*/, false /*resume*/, shells().current() );
+ TDEIO::NetAccess::file_copy( url(), backup, item.permissions(), true /*overwrite*/, false /*resume*/, shells().current() );
}
}
}
@@ -2485,7 +2485,7 @@ bool KoDocument::hasExternURL() const
return !url().protocol().isEmpty() && url().protocol() != STORE_PROTOCOL && url().protocol() != INTERNAL_PROTOCOL;
}
-void KoDocument::slotStarted( KIO::Job* job )
+void KoDocument::slotStarted( TDEIO::Job* job )
{
if ( job )
{
@@ -2545,7 +2545,7 @@ TQString KoDocument::unitName() const
void KoDocument::showStartUpWidget( KoMainWindow* parent, bool alwaysShow )
{
if(!alwaysShow) {
- KConfigGroup cfgGrp( instance()->config(), "TemplateChooserDialog" );
+ TDEConfigGroup cfgGrp( instance()->config(), "TemplateChooserDialog" );
TQString fullTemplateName = cfgGrp.readPathEntry( "AlwaysUseTemplate" );
if( !fullTemplateName.isEmpty() ) {
diff --git a/lib/kofficecore/KoDocument.h b/lib/kofficecore/KoDocument.h
index 30b9ad977..4dc192b7d 100644
--- a/lib/kofficecore/KoDocument.h
+++ b/lib/kofficecore/KoDocument.h
@@ -1123,7 +1123,7 @@ protected:
/**
* Creates the open widget showed at application start up.
* @param parent the parent widget
- * @param instance the TDEInstance to be used for KConfig data
+ * @param instance the TDEInstance to be used for TDEConfig data
* @param templateType the template-type (group) that should be selected on creation.
* @since 1.5
*/
@@ -1134,7 +1134,7 @@ private slots:
void slotChildChanged( KoChild *c );
void slotChildDestroyed();
void slotAutoSave();
- void slotStarted( KIO::Job* );
+ void slotStarted( TDEIO::Job* );
void startCustomDocument();
/**
* Removes the open widget showed at application start up.
diff --git a/lib/kofficecore/KoDocumentInfo.cpp b/lib/kofficecore/KoDocumentInfo.cpp
index 871c81fde..eafda4b50 100644
--- a/lib/kofficecore/KoDocumentInfo.cpp
+++ b/lib/kofficecore/KoDocumentInfo.cpp
@@ -217,9 +217,9 @@ KoDocumentInfoAuthor::~KoDocumentInfoAuthor()
}
void KoDocumentInfoAuthor::initParameters()
{
- KConfig* config = KoGlobal::kofficeConfig();
+ TDEConfig* config = KoGlobal::kofficeConfig();
if ( config->hasGroup( "Author" ) ) {
- KConfigGroupSaver cgs( config, "Author" );
+ TDEConfigGroupSaver cgs( config, "Author" );
m_telephoneHome=config->readEntry( "telephone" );
m_telephoneWork=config->readEntry( "telephone-work" );
m_fax=config->readEntry( "fax" );
@@ -229,7 +229,7 @@ void KoDocumentInfoAuthor::initParameters()
m_street=config->readEntry( "street" );
}
- m_emailCfg = new KConfig( "emaildefaults", true );
+ m_emailCfg = new TDEConfig( "emaildefaults", true );
m_emailCfg->setGroup( "Defaults" );
TQString group = m_emailCfg->readEntry("Profile","Default");
m_emailCfg->setGroup(TQString("PROFILE_%1").arg(group));
diff --git a/lib/kofficecore/KoDocumentInfo.h b/lib/kofficecore/KoDocumentInfo.h
index 4ecd2cef0..b113e75e6 100644
--- a/lib/kofficecore/KoDocumentInfo.h
+++ b/lib/kofficecore/KoDocumentInfo.h
@@ -131,7 +131,7 @@ private:
TQString m_street;
TQString m_initial;
TQString m_position;
- KConfig *m_emailCfg;
+ TDEConfig *m_emailCfg;
};
class KOFFICECORE_EXPORT KoDocumentInfoAbout : public KoDocumentInfoPage
diff --git a/lib/kofficecore/KoDocumentInfoDlg.cpp b/lib/kofficecore/KoDocumentInfoDlg.cpp
index 7918fab24..7e67c1486 100644
--- a/lib/kofficecore/KoDocumentInfoDlg.cpp
+++ b/lib/kofficecore/KoDocumentInfoDlg.cpp
@@ -346,8 +346,8 @@ void KoDocumentInfoDlg::save( KoDocumentInfoAuthor *authorInfo )
authorInfo->setStreet( d->m_authorWidget->leStreet->text() );
authorInfo->setPosition( d->m_authorWidget->leAuthorPosition->text() );
- KConfig* config = KoGlobal::kofficeConfig();
- KConfigGroupSaver cgs( config, "Author" );
+ TDEConfig* config = KoGlobal::kofficeConfig();
+ TDEConfigGroupSaver cgs( config, "Author" );
config->writeEntry("telephone", d->m_authorWidget->leTelephoneHome->text());
config->writeEntry("telephone-work", d->m_authorWidget->leTelephoneWork->text());
config->writeEntry("fax", d->m_authorWidget->leFax->text());
diff --git a/lib/kofficecore/KoGlobal.cpp b/lib/kofficecore/KoGlobal.cpp
index 10ee5bd92..566397978 100644
--- a/lib/kofficecore/KoGlobal.cpp
+++ b/lib/kofficecore/KoGlobal.cpp
@@ -111,7 +111,7 @@ TQStringList KoGlobal::_listOfLanguages()
void KoGlobal::createListOfLanguages()
{
- KConfig config( "all_languages", true, false, "locale" );
+ TDEConfig config( "all_languages", true, false, "locale" );
// Note that we could also use KLocale::allLanguagesTwoAlpha
TQMap<TQString, bool> seenLanguages;
@@ -188,10 +188,10 @@ TQString KoGlobal::languageFromTag( const TQString &langTag )
return langTag;
}
-KConfig* KoGlobal::_kofficeConfig()
+TDEConfig* KoGlobal::_kofficeConfig()
{
if ( !m_kofficeConfig ) {
- m_kofficeConfig = new KConfig( "kofficerc" );
+ m_kofficeConfig = new TDEConfig( "kofficerc" );
}
return m_kofficeConfig;
}
diff --git a/lib/kofficecore/KoGlobal.h b/lib/kofficecore/KoGlobal.h
index cad645b4f..15523b3e1 100644
--- a/lib/kofficecore/KoGlobal.h
+++ b/lib/kofficecore/KoGlobal.h
@@ -25,7 +25,7 @@
#include <tqstringlist.h>
#include <tqfont.h>
#include <tqmap.h>
-class KConfig;
+class TDEConfig;
#include <koffice_export.h>
class KOFFICECORE_EXPORT KoGlobal
@@ -46,12 +46,12 @@ public:
}
/**
- * @return the global KConfig object around kofficerc.
+ * @return the global TDEConfig object around kofficerc.
* kofficerc is used for KOffice-wide settings, from totally unrelated classes,
- * so this is the centralization of the KConfig object so that the file is
+ * so this is the centralization of the TDEConfig object so that the file is
* parsed only once
*/
- static KConfig* kofficeConfig() {
+ static TDEConfig* kofficeConfig() {
return self()->_kofficeConfig();
}
@@ -87,13 +87,13 @@ private:
TQFont _defaultFont();
TQStringList _listOfLanguages();
TQStringList _listOfLanguageTags();
- KConfig* _kofficeConfig();
+ TDEConfig* _kofficeConfig();
void createListOfLanguages();
int m_pointSize;
typedef TQMap<TQString, TQString> LanguageMap;
LanguageMap m_langMap; // display-name -> language tag
- KConfig* m_kofficeConfig;
+ TDEConfig* m_kofficeConfig;
int m_dpiX;
int m_dpiY;
// No BC problem here, constructor is private, feel free to add members
diff --git a/lib/kofficecore/KoMainWindow.cpp b/lib/kofficecore/KoMainWindow.cpp
index 70275b6e3..f06d2c46a 100644
--- a/lib/kofficecore/KoMainWindow.cpp
+++ b/lib/kofficecore/KoMainWindow.cpp
@@ -284,7 +284,7 @@ KoMainWindow::KoMainWindow( TDEInstance *instance, const char* name )
d->m_splitViewActionList.append(new KActionSeparator(TQT_TQOBJECT(this)));
// Load list of recent files
- KConfig * config = instance ? instance->config() : TDEGlobal::config();
+ TDEConfig * config = instance ? instance->config() : TDEGlobal::config();
m_recent->loadEntries( config );
createShellGUI();
@@ -462,7 +462,7 @@ void KoMainWindow::addRecentURL( const KURL& url )
void KoMainWindow::saveRecentFiles()
{
// Save list of recent files
- KConfig * config = instance() ? instance()->config() : TDEGlobal::config();
+ TDEConfig * config = instance() ? instance()->config() : TDEGlobal::config();
kdDebug(30003) << this << " Saving recent files list into config. instance()=" << instance() << endl;
m_recent->saveEntries( config );
config->sync();
@@ -478,7 +478,7 @@ void KoMainWindow::saveRecentFiles()
void KoMainWindow::reloadRecentFileList()
{
- KConfig * config = instance() ? instance()->config() : TDEGlobal::config();
+ TDEConfig * config = instance() ? instance()->config() : TDEGlobal::config();
m_recent->loadEntries( config );
}
@@ -542,7 +542,7 @@ KParts::PartManager *KoMainWindow::partManager()
bool KoMainWindow::openDocument( const KURL & url )
{
- if ( !KIO::NetAccess::exists(url,true,0) )
+ if ( !TDEIO::NetAccess::exists(url,true,0) )
{
KMessageBox::error(0L, i18n("The file %1 does not exist.").arg(url.url()) );
m_recent->removeURL(url); //remove the file from the recent-opened-file-list
@@ -555,7 +555,7 @@ bool KoMainWindow::openDocument( const KURL & url )
// (not virtual)
bool KoMainWindow::openDocument( KoDocument *newdoc, const KURL & url )
{
- if (!KIO::NetAccess::exists(url,true,0) )
+ if (!TDEIO::NetAccess::exists(url,true,0) )
{
if (!newdoc->checkAutoSaveFile())
{
@@ -847,7 +847,7 @@ bool KoMainWindow::saveDocument( bool saveas, bool silent )
// this file exists and we are not just clicking "Save As" to change filter options
// => ask for confirmation
- if ( KIO::NetAccess::exists( newURL, false /*will write*/, this ) && !justChangingFilterOptions )
+ if ( TDEIO::NetAccess::exists( newURL, false /*will write*/, this ) && !justChangingFilterOptions )
{
bOk = KMessageBox::questionYesNo( this,
i18n("A document with this name already exists.\n"\
diff --git a/lib/kofficecore/KoOpenPane.cpp b/lib/kofficecore/KoOpenPane.cpp
index 1079d5899..a8fa0f936 100644
--- a/lib/kofficecore/KoOpenPane.cpp
+++ b/lib/kofficecore/KoOpenPane.cpp
@@ -132,7 +132,7 @@ KoOpenPane::KoOpenPane(TQWidget *parent, TDEInstance* instance, const TQString&
m_splitter->setSizes(sizes);
// Set the sizes of the details pane splitters
- KConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
+ TDEConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
sizes = cfgGrp.readIntListEntry("DetailsPaneSplitterSizes");
emit splitterResized(0, sizes);
@@ -146,7 +146,7 @@ KoOpenPane::~KoOpenPane()
if(item) {
if(!dynamic_cast<KoDetailsPaneBase*>(m_widgetStack->widget(item->widgetIndex()))) {
- KConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
+ TDEConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
cfgGrp.writeEntry("LastReturnType", "Custom");
}
}
@@ -162,7 +162,7 @@ void KoOpenPane::showOpenFileDialog()
KURL url = KFileDialog::getOpenURL(":OpenDialog", mimeFilter.join(" "), this);
if(!url.isEmpty()) {
- KConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
+ TDEConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
cfgGrp.writeEntry("LastReturnType", "File");
emit openExistingFile(url.url());
}
@@ -231,7 +231,7 @@ void KoOpenPane::initTemplates(const TQString& templateType)
firstItem = m_sectionList->firstChild();
}
- KConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
+ TDEConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
if(selectItem && (cfgGrp.readEntry("LastReturnType") == "Template")) {
m_sectionList->setSelected(selectItem, true);
@@ -247,7 +247,7 @@ void KoOpenPane::setCustomDocumentWidget(TQWidget *widget) {
TQListViewItem* item = addPane(i18n("Custom Document"), TQString(), widget, INT_MAX);
- KConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
+ TDEConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
if(cfgGrp.readEntry("LastReturnType") == "Custom") {
m_sectionList->setSelected(item, true);
@@ -299,7 +299,7 @@ void KoOpenPane::selectionChanged(TQListViewItem* item)
void KoOpenPane::saveSplitterSizes(KoDetailsPaneBase* /*sender*/, const TQValueList<int>& sizes)
{
- KConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
+ TDEConfigGroup cfgGrp(d->m_instance->config(), "TemplateChooserDialog");
cfgGrp.writeEntry("DetailsPaneSplitterSizes", sizes);
}
diff --git a/lib/kofficecore/KoOpenPane.h b/lib/kofficecore/KoOpenPane.h
index d9abf832f..0efad8451 100644
--- a/lib/kofficecore/KoOpenPane.h
+++ b/lib/kofficecore/KoOpenPane.h
@@ -24,7 +24,7 @@
#include <koOpenPaneBase.h>
class KoCustomDocumentCreator;
-class KConfig;
+class TDEConfig;
class KoTemplateGroup;
class KoOpenPanePrivate;
class TDEInstance;
@@ -42,7 +42,7 @@ class KoOpenPane : public KoOpenPaneBase
/**
* Constructor
* @param parent the parent widget
- * @param instance the TDEInstance to be used for KConfig data
+ * @param instance the TDEInstance to be used for TDEConfig data
* @param templateType the template-type (group) that should be selected on creation.
*/
KoOpenPane(TQWidget *parent, TDEInstance* instance, const TQString& templateType = TQString());
diff --git a/lib/kofficecore/KoPicture.cpp b/lib/kofficecore/KoPicture.cpp
index 8e74c0b59..2dd6f730d 100644
--- a/lib/kofficecore/KoPicture.cpp
+++ b/lib/kofficecore/KoPicture.cpp
@@ -237,13 +237,13 @@ bool KoPicture::setKeyAndDownloadPicture(const KURL& url, TQWidget *window)
bool result=false;
TQString tmpFileName;
- if ( KIO::NetAccess::download(url, tmpFileName, window) )
+ if ( TDEIO::NetAccess::download(url, tmpFileName, window) )
{
KoPictureKey key;
key.setKeyFromFile( tmpFileName );
setKey( key );
result=loadFromFile( tmpFileName );
- KIO::NetAccess::removeTempFile( tmpFileName );
+ TDEIO::NetAccess::removeTempFile( tmpFileName );
}
return result;
diff --git a/lib/kofficecore/KoPictureBase.cpp b/lib/kofficecore/KoPictureBase.cpp
index 5f81efde6..1d476f74e 100644
--- a/lib/kofficecore/KoPictureBase.cpp
+++ b/lib/kofficecore/KoPictureBase.cpp
@@ -39,7 +39,7 @@ KoPictureBase::KoPictureBase(void)
// Slow mode can be very slow, especially at high zoom levels -> configurable
if ( s_useSlowResizeMode == -1 )
{
- KConfigGroup group( TDEGlobal::config(), "KOfficeImage" );
+ TDEConfigGroup group( TDEGlobal::config(), "KOfficeImage" );
s_useSlowResizeMode = group.readNumEntry( "HighResolution", 1 );
kdDebug(30003) << "HighResolution = " << s_useSlowResizeMode << endl;
}
diff --git a/lib/kofficecore/KoSpeaker.cpp b/lib/kofficecore/KoSpeaker.cpp
index 0f0bea629..d81cffeca 100644
--- a/lib/kofficecore/KoSpeaker.cpp
+++ b/lib/kofficecore/KoSpeaker.cpp
@@ -193,7 +193,7 @@ void KoSpeaker::startSpeech()
startText(d->m_jobNums[i]);
}
-void KoSpeaker::readConfig(KConfig* config)
+void KoSpeaker::readConfig(TDEConfig* config)
{
delete d->m_timer;
d->m_timer = 0;
diff --git a/lib/kofficecore/KoSpeaker.h b/lib/kofficecore/KoSpeaker.h
index c5acda32f..c4ab8786d 100644
--- a/lib/kofficecore/KoSpeaker.h
+++ b/lib/kofficecore/KoSpeaker.h
@@ -36,7 +36,7 @@
class TQWidget;
class TQPoint;
-class KConfig;
+class TDEConfig;
class KoSpeakerPrivate;
#define kospeaker KoSpeaker::koSpeaker()
@@ -92,7 +92,7 @@ public:
* If KTTSD daemon is not installed, @ref isEnabled will return false.
* If screen reader is requested and KTTSD is installed, but not running, it will be started.
*/
- void readConfig(KConfig* config);
+ void readConfig(TDEConfig* config);
/**
* Given a widget @p w and its @p pos screen coordinates, tries to extract the text of the widget
diff --git a/lib/kofficecore/KoTemplates.cpp b/lib/kofficecore/KoTemplates.cpp
index 4b0cfe5b9..5acc72a71 100644
--- a/lib/kofficecore/KoTemplates.cpp
+++ b/lib/kofficecore/KoTemplates.cpp
@@ -166,7 +166,7 @@ void KoTemplateTree::writeTemplateTree() {
//kdDebug() << "hidden" << endl;
if(group->dirs().count()==1 && !group->dirs().grep(localDir).isEmpty()) {
//kdDebug() << "local only" << endl;
- KIO::NetAccess::del(group->dirs().first(), 0);
+ TDEIO::NetAccess::del(group->dirs().first(), 0);
//kdDebug() << "removing: " << group->dirs().first() << endl;
}
else {
@@ -350,7 +350,7 @@ void KoTemplateTree::writeTemplate(KoTemplate *t, KoTemplateGroup *group,
if ( t->isHidden() && TQFile::exists(fileName) )
return;
TQString fill;
- while ( KIO::NetAccess::exists( fileName, true, 0 ) )
+ while ( TDEIO::NetAccess::exists( fileName, true, 0 ) )
{
fill += '_';
fileName = path + fill + name + ".desktop";