summaryrefslogtreecommitdiffstats
path: root/quanta/project/projectnewlocal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/project/projectnewlocal.cpp')
-rw-r--r--quanta/project/projectnewlocal.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/quanta/project/projectnewlocal.cpp b/quanta/project/projectnewlocal.cpp
index e2d99d30..1de12e9e 100644
--- a/quanta/project/projectnewlocal.cpp
+++ b/quanta/project/projectnewlocal.cpp
@@ -45,17 +45,17 @@
#include "resource.h"
#include "quantacommon.h"
-ProjectNewLocal::ProjectNewLocal(TQWidget *parent, const char *name )
- : ProjectNewLocalS(parent,name)
+ProjectNewLocal::ProjectNewLocal(TQWidget *tqparent, const char *name )
+ : ProjectNewLocalS(tqparent,name)
{
imagelabel->setPixmap( UserIcon("wiznewprjloc") );
-// listView->setColumnAlignment(1,Qt::AlignRight);
+// listView->setColumnAlignment(1,TQt::AlignRight);
listView->setColumnText(1, i18n("Add"));
listView->removeColumn(2);
listView->removeColumn(2);
- mask->setText("*");
+ tqmask->setText("*");
checkInsertWeb->setChecked( true );
@@ -75,7 +75,7 @@ void ProjectNewLocal::setBaseURL(const KURL& a_baseURL)
{
baseURL = a_baseURL;
baseURL.adjustPath(1);
- checkInsert->setText(i18n("Insert files from %1.").arg(baseURL.prettyURL(0, KURL::StripFileProtocol)));
+ checkInsert->setText(i18n("Insert files from %1.").tqarg(baseURL.prettyURL(0, KURL::StripFileProtocol)));
listView->clear();
fileList.clear();
checkInsert->setChecked(false);
@@ -112,37 +112,37 @@ KURL::List ProjectNewLocal::projectFiles()
{
KURL::List list;
- if (!QExtFileInfo::exists(baseURL, false, this) ||
+ if (!TQExtFileInfo::exists(baseURL, false, this) ||
!baseURL.path().endsWith("/") ||
!checkInsert->isChecked() ) return list;
- TQString fmask = "*";
+ TQString ftqmask = "*";
if ( checkInsertWeb->isChecked() )
{
KMimeType::List list = KMimeType::allMimeTypes();
KMimeType::List::iterator it;
TQString name;
- fmask = "";
+ ftqmask = "";
for ( it = list.begin(); it != list.end(); ++it )
{
name = (*it)->name();
- if (qConfig.markupMimeTypes.contains(name) ||
- qConfig.scriptMimeTypes.contains(name) ||
- qConfig.imageMimeTypes.contains(name))
+ if (qConfig.markupMimeTypes.tqcontains(name) ||
+ qConfig.scriptMimeTypes.tqcontains(name) ||
+ qConfig.imageMimeTypes.tqcontains(name))
{
TQStringList patterns = (*it)->patterns();
for (uint i = 0 ; i < patterns.count(); i++)
{
- fmask = fmask+patterns[i]+" ";
+ ftqmask = ftqmask+patterns[i]+" ";
}
}
}
} else
{
- fmask = mask->text();
+ ftqmask = tqmask->text();
}
- list = QExtFileInfo::allFilesRelative(baseURL, fmask, this, false);
+ list = TQExtFileInfo::allFilesRelative(baseURL, ftqmask, this, false);
return list;
}
@@ -156,7 +156,7 @@ void ProjectNewLocal::slotSetFiles(bool)
progressBar->setTextEnabled(true);
for (uint i = 0; i < files.count(); i++)
{
- if ( !fileList.contains(files[i]))
+ if ( !fileList.tqcontains(files[i]))
{
fileList.append(files[i]);
TQListViewItem *it = listView->addItem(files[i], KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
@@ -180,7 +180,7 @@ void ProjectNewLocal::resizeEvent ( TQResizeEvent *t )
/** No descriptions */
void ProjectNewLocal::slotAddFiles()
{
- QExtFileInfo::createDir(baseURL, this);
+ TQExtFileInfo::createDir(baseURL, this);
KURL::List list = KFileDialog::getOpenURLs(
baseURL.url(), i18n("*"), this, i18n("Insert Files in Project"));
@@ -188,7 +188,7 @@ void ProjectNewLocal::slotAddFiles()
{
KURL u = list.first();
- u = QExtFileInfo::toRelative( u, baseURL, false );
+ u = TQExtFileInfo::toRelative( u, baseURL, false );
if ( u.path().startsWith("..") || u.path().startsWith("/"))
{
@@ -218,8 +218,8 @@ void ProjectNewLocal::slotAddFiles()
progressBar->setTextEnabled(true);
for (uint i = 0; i < list.count(); i++)
{
- list[i] = QExtFileInfo::toRelative(list[i], baseURL, false);
- if (!fileList.contains(list[i]))
+ list[i] = TQExtFileInfo::toRelative(list[i], baseURL, false);
+ if (!fileList.tqcontains(list[i]))
{
fileList.append(list[i]);
TQListViewItem *it = listView->addItem(list[i], KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
@@ -238,7 +238,7 @@ void ProjectNewLocal::slotAddFolder()
{
//TODO/FIXME: This returns null if the selected directory is not on the local disk.
//I think this is a KDE bug
- QExtFileInfo::createDir(baseURL, this);
+ TQExtFileInfo::createDir(baseURL, this);
KURL dirURL ;
dirURL = KFileDialog::getExistingURL(
baseURL.url(), this, i18n("Insert Folder in Project"));
@@ -248,13 +248,13 @@ void ProjectNewLocal::slotAddFolder()
dirURL.adjustPath(1);
KURL sdir = dirURL;
- sdir = QExtFileInfo::toRelative( sdir, baseURL, false);
+ sdir = TQExtFileInfo::toRelative( sdir, baseURL, false);
if ( sdir.path().startsWith("..") || sdir.path().startsWith("/") )
{
KURLRequesterDlg *urlRequesterDlg = new KURLRequesterDlg( baseURL.prettyURL(), this, "");
- urlRequesterDlg->setCaption(i18n("%1: Copy to Project").arg(dirURL.prettyURL(0, KURL::StripFileProtocol)));
+ urlRequesterDlg->setCaption(i18n("%1: Copy to Project").tqarg(dirURL.prettyURL(0, KURL::StripFileProtocol)));
urlRequesterDlg->urlRequester()->setMode( KFile::Directory | KFile::ExistingOnly);
urlRequesterDlg->exec();
KURL destination = urlRequesterDlg->selectedURL();
@@ -293,14 +293,14 @@ void ProjectNewLocal::slotInsertFolderAfterCopying(const KURL::List& a_urlList)
{
dirURL = *it;
// dirURL.adjustPath(1);
- KURL::List files = QExtFileInfo::allFilesRelative(dirURL, "*", this, false);
+ KURL::List files = TQExtFileInfo::allFilesRelative(dirURL, "*", this, false);
progressBar->setTotalSteps(files.count() - 1);
progressBar->setTextEnabled(true);
KURL u;
for (uint i = 0; i < files.count(); i++)
{
u = files[i];
- if ( !fileList.contains(u) && u.path() != "." && u.path() != ".." )
+ if ( !fileList.tqcontains(u) && u.path() != "." && u.path() != ".." )
{
fileList.append(u);
listView->addItem(u, KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));
@@ -328,8 +328,8 @@ void ProjectNewLocal::slotInsertFilesAfterCopying(const KURL::List& a_urlList)
progressBar->setTextEnabled(true);
for (it = a_urlList.begin(); it != a_urlList.end(); ++it)
{
- u = QExtFileInfo::toRelative(*it, baseURL, false);
- if ( !fileList.contains(u))
+ u = TQExtFileInfo::toRelative(*it, baseURL, false);
+ if ( !fileList.tqcontains(u))
{
fileList.append(u);
TQListViewItem *it = listView->addItem(u, KFileItem(KFileItem::Unknown, KFileItem::Unknown, KURL()));