summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews/templatestreeview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:39:24 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:39:24 -0600
commitf9ced3b3f13f3136ef63c33ef163042010d6e80b (patch)
tree293ce93dfb0dcfd79f83674116d7b3bc56f29af2 /quanta/treeviews/templatestreeview.cpp
parent29df04c24350cc76a41e2410d1c92445f9338b98 (diff)
downloadtdewebdev-f9ced3b3f13f3136ef63c33ef163042010d6e80b.tar.gz
tdewebdev-f9ced3b3f13f3136ef63c33ef163042010d6e80b.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'quanta/treeviews/templatestreeview.cpp')
-rw-r--r--quanta/treeviews/templatestreeview.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/quanta/treeviews/templatestreeview.cpp b/quanta/treeviews/templatestreeview.cpp
index cfd05141..bd00665f 100644
--- a/quanta/treeviews/templatestreeview.cpp
+++ b/quanta/treeviews/templatestreeview.cpp
@@ -115,7 +115,7 @@ KFileTreeViewItem* TemplatesTreeBranch::createTreeViewItem(KFileTreeViewItem *pa
}
if (dotFileInfo.exists())
{
- KConfig *config = new KConfig(dotFileInfo.filePath());
+ TDEConfig *config = new TDEConfig(dotFileInfo.filePath());
TQString s = config->readEntry("Type");
tvi->setText(1, typeToi18n[s]);
delete config;
@@ -508,7 +508,7 @@ DirInfo TemplatesTreeView::readDirInfo(const TQString& dir)
dotFileInfo.setFile(TQFileInfo(dotFileInfo.dirPath()).dirPath()+"/.dirinfo");
}
- KConfig *config = new KConfig(dotFileInfo.filePath());
+ TDEConfig *config = new TDEConfig(dotFileInfo.filePath());
dirInfo.mimeType = config->readEntry("Type");
dirInfo.preText = config->readEntry("PreText");
dirInfo.postText = config->readEntry("PostText");
@@ -540,7 +540,7 @@ bool TemplatesTreeView::writeDirInfo(const TQString& m_dirInfoFile)
TQFileInfo dotFileInfo(TQFileInfo(startDir).dirPath()+"/.dirinfo");
bool success = false;
- KConfig *config = new KConfig(dotFileInfo.filePath());
+ TDEConfig *config = new TDEConfig(dotFileInfo.filePath());
if (!config->isReadOnly())
{
config->writeEntry("Type", m_dirInfo.mimeType);
@@ -575,8 +575,8 @@ void TemplatesTreeView::slotProperties()
m_quantaProperties->typesCombo->setCurrentItem(typeToi18n[m_dirInfo.mimeType]);
- KIO::UDSEntry entry;
- KIO::NetAccess::stat(url, entry, this);
+ TDEIO::UDSEntry entry;
+ TDEIO::NetAccess::stat(url, entry, this);
KFileItem fItem(entry, url);
TQString permissions = fItem.permissionsString();
TQString userName;
@@ -632,7 +632,7 @@ void TemplatesTreeView::slotProperties()
connect( propDlg, TQT_SIGNAL( applied() ), this , TQT_SLOT( slotPropertiesApplied()) );
TQString name = url.path() + TMPL;
- KConfig config(name);
+ TDEConfig config(name);
config.setGroup("Filtering");
name = config.readEntry("Action", NONE);
if ( name == NONE )
@@ -833,7 +833,7 @@ void TemplatesTreeView::slotNewProjectLoaded(const TQString &projectName, const
void TemplatesTreeView::writeTemplateInfo()
{
TQString fileName = currentURL().path() + TMPL;
- KConfig config(fileName);
+ TDEConfig config(fileName);
config.setGroup("Filtering");
if ( m_quantaProperties->actionCombo->currentText() == i18n(NONE) )
config.writeEntry("Action", NONE);
@@ -861,8 +861,8 @@ void TemplatesTreeView::slotPaste()
url = currentURL();
if ( ! currentKFileTreeViewItem()->isDir() )
url.setFileName(""); // don't paste on files but in dirs
- KIO::Job *job = KIO::copy( list, url);
- connect( job, TQT_SIGNAL( result( KIO::Job *) ), this , TQT_SLOT( slotJobFinished( KIO::Job *) ) );
+ TDEIO::Job *job = TDEIO::copy( list, url);
+ connect( job, TQT_SIGNAL( result( TDEIO::Job *) ), this , TQT_SLOT( slotJobFinished( TDEIO::Job *) ) );
}
}
@@ -879,12 +879,12 @@ void TemplatesTreeView::slotDelete()
if ( KMessageBox::warningContinueCancel(this, msg, TQString(), KStdGuiItem::del()) == KMessageBox::Continue )
{
- KIO::Job *job = KIO::del(url);
- connect( job, TQT_SIGNAL( result( KIO::Job *) ), this , TQT_SLOT( slotJobFinished( KIO::Job *) ) );
+ TDEIO::Job *job = TDEIO::del(url);
+ connect( job, TQT_SIGNAL( result( TDEIO::Job *) ), this , TQT_SLOT( slotJobFinished( TDEIO::Job *) ) );
url.setFileName(url.fileName()+ TMPL);
if ( TQFileInfo(url.path()).exists() ) {
- KIO::Job *job2 = KIO::del(url);
- connect( job2, TQT_SIGNAL( result( KIO::Job *) ), this , TQT_SLOT( slotJobFinished( KIO::Job *) ) );
+ TDEIO::Job *job2 = TDEIO::del(url);
+ connect( job2, TQT_SIGNAL( result( TDEIO::Job *) ), this , TQT_SLOT( slotJobFinished( TDEIO::Job *) ) );
};
}
}
@@ -896,7 +896,7 @@ KURL TemplatesTreeView::filterTemplate()
{
KURL url = currentURL();
TQString name = url.path() + TMPL;
- KConfig config(name);
+ TDEConfig config(name);
config.setGroup("Filtering");
name = config.readEntry("Action", NONE);
TagAction *filterAction = 0L;
@@ -1035,7 +1035,7 @@ void TemplatesTreeView::slotExtractSiteTemplate()
KURL targetURL = urlRequester.selectedURL();
KURL url = currentURL();
TQString tempFile;
- if (KIO::NetAccess::download(url, tempFile, this))
+ if (TDEIO::NetAccess::download(url, tempFile, this))
{
KTar tar(tempFile);
if (tar.open(IO_ReadOnly))
@@ -1053,15 +1053,15 @@ void TemplatesTreeView::slotExtractSiteTemplate()
KURL::List fileList;
for (TQStringList::Iterator it = entries.begin(); it != entries.end(); ++it)
fileList.append(KURL::fromPathOrURL(tempDirName + "/" + *it));
- if (!KIO::NetAccess::dircopy(fileList, targetURL, this))
+ if (!TDEIO::NetAccess::dircopy(fileList, targetURL, this))
error = true;
- KIO::NetAccess::del(KURL().fromPathOrURL(tempDirName), this);
+ TDEIO::NetAccess::del(KURL().fromPathOrURL(tempDirName), this);
delete tempDir;
}
tar.close();
} else
error = true;
- KIO::NetAccess::removeTempFile(tempFile);
+ TDEIO::NetAccess::removeTempFile(tempFile);
if (!m_projectBaseURL.isEmpty() && !QExtFileInfo::toRelative(targetURL, m_projectBaseURL).url().startsWith("."))
{
if (KMessageBox::questionYesNo(this, i18n("You have extracted the site template to a folder which is not under your main project folder.\nDo you want to copy the folder into the main project folder?"), TQString(), i18n("Copy Folder"), i18n("Do Not Copy")) == KMessageBox::Yes)