summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews/projecttreeview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/treeviews/projecttreeview.cpp')
-rw-r--r--quanta/treeviews/projecttreeview.cpp76
1 files changed, 38 insertions, 38 deletions
diff --git a/quanta/treeviews/projecttreeview.cpp b/quanta/treeviews/projecttreeview.cpp
index 205e5bf0..3068fb55 100644
--- a/quanta/treeviews/projecttreeview.cpp
+++ b/quanta/treeviews/projecttreeview.cpp
@@ -46,8 +46,8 @@
#endif
//ProjectTreeViewItem implementation
-ProjectTreeViewItem::ProjectTreeViewItem( KFileTreeViewItem *parent, KFileItem* item, KFileTreeBranch *brnch )
-: BaseTreeViewItem( parent, item, brnch)
+ProjectTreeViewItem::ProjectTreeViewItem( KFileTreeViewItem *tqparent, KFileItem* item, KFileTreeBranch *brnch )
+: BaseTreeViewItem( tqparent, item, brnch)
{
}
@@ -70,38 +70,38 @@ void ProjectTreeViewItem::paintCell(TQPainter *p, const TQColorGroup &cg,
}
//ProjectTreeBranch implementation
-ProjectTreeBranch::ProjectTreeBranch(KFileTreeView *parent, const KURL& url,
+ProjectTreeBranch::ProjectTreeBranch(KFileTreeView *tqparent, const KURL& url,
const TQString& name, const TQPixmap& pix,
bool showHidden,
KFileTreeViewItem *branchRoot)
- : BaseTreeBranch(parent, url, name, pix, showHidden, branchRoot)
+ : BaseTreeBranch(tqparent, url, name, pix, showHidden, branchRoot)
{
}
-KFileTreeViewItem* ProjectTreeBranch::createTreeViewItem(KFileTreeViewItem *parent,
+KFileTreeViewItem* ProjectTreeBranch::createTreeViewItem(KFileTreeViewItem *tqparent,
KFileItem *fileItem )
{
BaseTreeViewItem *tvi = 0;
- if( parent && fileItem )
+ if( tqparent && fileItem )
{
- tvi = new ProjectTreeViewItem( parent, fileItem, this );
+ tvi = new ProjectTreeViewItem( tqparent, fileItem, this );
if (tvi)
{
// we assume there are childs
tvi->setExpandable(tvi->isDir());
if (urlList) {
- tvi->setVisible(urlList->contains(fileItem->url())); // only listelements
+ tvi->setVisible(urlList->tqcontains(fileItem->url())); // only listelements
}
}
}
else
- kdDebug(24000) << "ProjectTreeBranch::createTreeViewItem: Have no parent" << endl;
+ kdDebug(24000) << "ProjectTreeBranch::createTreeViewItem: Have no tqparent" << endl;
return tvi;
}
//ProjectTreeView implementation
-ProjectTreeView::ProjectTreeView(TQWidget *parent, const char *name )
- : BaseTreeView(parent,name), m_projectFiles(0)
+ProjectTreeView::ProjectTreeView(TQWidget *tqparent, const char *name )
+ : BaseTreeView(tqparent,name), m_projectFiles(0)
{
//setSelectionModeExt(KListView::Extended);
setRootIsDecorated(false);
@@ -136,7 +136,7 @@ ProjectTreeView::ProjectTreeView(TQWidget *parent, const char *name )
m_fileMenu->insertItem( i18n("&Remove From Project"), this, TQT_SLOT(slotRemoveFromProject(int)));
m_fileMenu->insertItem(SmallIcon("editdelete"), i18n("&Delete"), this, TQT_SLOT(slotDelete()));
m_fileMenu->insertSeparator();
- m_fileMenu->insertItem(i18n("Upload &Status"), m_uploadStatusMenu);
+ m_fileMenu->insertItem(i18n("Upload &tqStatus"), m_uploadStatusMenu);
m_fileMenu->insertItem(SmallIcon("info"), i18n("&Properties"), this, TQT_SLOT(slotProperties()));
KPopupMenu *createNewMenu = new KPopupMenu(this);
@@ -154,8 +154,8 @@ ProjectTreeView::ProjectTreeView(TQWidget *parent, const char *name )
m_folderMenu->insertItem(i18n("&Remove From Project"), this, TQT_SLOT(slotRemoveFromProject(int)));
m_folderMenu->insertItem(SmallIcon("editdelete"), i18n("&Delete"), this, TQT_SLOT(slotDelete()));
m_folderMenu->insertSeparator();
- m_setDocumentRootId = m_folderMenu->insertItem(i18n("Document-&Base Folder"), this, TQT_SLOT(slotChangeDocumentFolderStatus()));
- m_folderMenu->insertItem(i18n("Upload &Status"), m_uploadStatusMenu);
+ m_setDocumentRootId = m_folderMenu->insertItem(i18n("Document-&Base Folder"), this, TQT_SLOT(slotChangeDocumentFoldertqStatus()));
+ m_folderMenu->insertItem(i18n("Upload &tqStatus"), m_uploadStatusMenu);
m_folderMenu->insertItem(SmallIcon("info"), i18n("&Properties"), this, TQT_SLOT(slotProperties()));
m_projectMenu = new KPopupMenu(this);
@@ -166,7 +166,7 @@ ProjectTreeView::ProjectTreeView(TQWidget *parent, const char *name )
m_projectMenu->insertItem(SmallIcon("configure"), i18n("Project &Properties"), this, TQT_SLOT(slotOptions()));
m_projectMenu->insertItem(SmallIcon("revert"), i18n("&Reload"), this, TQT_SLOT(slotReload()));
m_projectMenu->insertSeparator();
- m_projectMenu->insertItem(i18n("Upload &Status"), m_uploadStatusMenu);
+ m_projectMenu->insertItem(i18n("Upload &tqStatus"), m_uploadStatusMenu);
connect(this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
@@ -261,7 +261,7 @@ void ProjectTreeView::slotMenu(KListView *listView, TQListViewItem *item, const
m_fileMenu->popup(point);
} else
{
- if (m_documentFolderList.contains(url))
+ if (m_documentFolderList.tqcontains(url))
m_folderMenu->setItemChecked(m_setDocumentRootId, true);
else
m_folderMenu->setItemChecked(m_setDocumentRootId, false);
@@ -345,7 +345,7 @@ void ProjectTreeView::slotReloadTree( ProjectList *fileList, bool buildNewTree,
for ( ; iter.current(); ++iter )
{
item = dynamic_cast <KFileTreeViewItem*> (iter.current());
- item->setVisible(m_projectFiles->contains(item->url()) || item == rootItem);
+ item->setVisible(m_projectFiles->tqcontains(item->url()) || item == rootItem);
}
rootItem->setEnabled(true);
}
@@ -380,7 +380,7 @@ void ProjectTreeView::slotCreateFolder()
url.setPath(url.path() + "/" + folderName + "/");
else
url.setPath(url.directory() + "/" + folderName +"/");
- if (QExtFileInfo::createDir(url, this))
+ if (TQExtFileInfo::createDir(url, this))
{
emit insertToProject(url);
}
@@ -398,15 +398,15 @@ void ProjectTreeView::slotCreateFile()
url.setPath(url.path() + "/" + fileName);
else
url.setPath(url.directory() + "/" + fileName);
- if (QExtFileInfo::exists(url, false, this))
+ if (TQExtFileInfo::exists(url, false, this))
{
- KMessageBox::error(this, i18n("<qt>Cannot create file, because a file named <b>%1</b> already exists.</qt>").arg(fileName), i18n("Error Creating File"));
+ KMessageBox::error(this, i18n("<qt>Cannot create file, because a file named <b>%1</b> already exists.</qt>").tqarg(fileName), i18n("Error Creating File"));
return;
}
KTempFile *tempFile = new KTempFile(tmpDir);
tempFile->setAutoDelete(true);
tempFile->close();
- if (QExtFileInfo::copy(KURL::fromPathOrURL(tempFile->name()), url))
+ if (TQExtFileInfo::copy(KURL::fromPathOrURL(tempFile->name()), url))
{
emit insertToProject(url);
emit openFile(url);
@@ -422,10 +422,10 @@ void ProjectTreeView::slotRemoveFromProject(int askForRemove)
if (item)
{
KURL url = currentURL();
- TQString nice = QExtFileInfo::toRelative(url, m_projectBaseURL).path();
+ TQString nice = TQExtFileInfo::toRelative(url, m_projectBaseURL).path();
nice = KStringHandler::lsqueeze(nice, 60);
if ( !askForRemove ||
- KMessageBox::warningContinueCancel(this,i18n("<qt>Do you really want to remove <br><b>%1</b><br> from the project?</qt>").arg(nice), i18n("Remove From Project"), KStdGuiItem::remove(), "RemoveFromProject") == KMessageBox::Continue )
+ KMessageBox::warningContinueCancel(this,i18n("<qt>Do you really want to remove <br><b>%1</b><br> from the project?</qt>").tqarg(nice), i18n("Remove From Project"), KStdGuiItem::remove(), "RemoveFromProject") == KMessageBox::Continue )
{
if ( currentKFileTreeViewItem()->isDir() ) url.adjustPath(+1);
emit removeFromProject(url);
@@ -525,9 +525,9 @@ void ProjectTreeView::slotAlwaysUpload()
KURL url = currentURL();
if (kftvi->isDir())
url.adjustPath(+1);
- if (m_projectFiles->contains(url) || url == m_projectBaseURL)
+ if (m_projectFiles->tqcontains(url) || url == m_projectBaseURL)
{
- emit changeUploadStatus(url, ProjectURL::AlwaysUpload);
+ emit changeUploadtqStatus(url, ProjectURL::AlwaysUpload);
}
}
@@ -539,9 +539,9 @@ void ProjectTreeView::slotNeverUpload()
KURL url = currentURL();
if (kftvi->isDir())
url.adjustPath(+1);
- if (m_projectFiles->contains(url) || url == m_projectBaseURL)
+ if (m_projectFiles->tqcontains(url) || url == m_projectBaseURL)
{
- emit changeUploadStatus(url, ProjectURL::NeverUpload);
+ emit changeUploadtqStatus(url, ProjectURL::NeverUpload);
}
}
@@ -553,9 +553,9 @@ void ProjectTreeView::slotConfirmUpload()
KURL url = currentURL();
if (kftvi->isDir())
url.adjustPath(+1);
- if (m_projectFiles->contains(url) || url == m_projectBaseURL)
+ if (m_projectFiles->tqcontains(url) || url == m_projectBaseURL)
{
- emit changeUploadStatus(url, ProjectURL::ConfirmUpload);
+ emit changeUploadtqStatus(url, ProjectURL::ConfirmUpload);
}
}
@@ -570,10 +570,10 @@ void ProjectTreeView::slotUploadMenuAboutToShow()
KURL url = currentURL();
if (kftvi->isDir())
url.adjustPath(+1);
- ProjectURL *proUrl = m_projectFiles->find( url );
+ ProjectURL *proUrl = m_projectFiles->tqfind( url );
if (proUrl)
{
- switch (proUrl->uploadStatus)
+ switch (proUrl->uploadtqStatus)
{
case ProjectURL::NeverUpload:
{
@@ -595,7 +595,7 @@ void ProjectTreeView::slotUploadMenuAboutToShow()
}
}
-void ProjectTreeView::slotChangeDocumentFolderStatus()
+void ProjectTreeView::slotChangeDocumentFoldertqStatus()
{
KFileTreeViewItem *kftvi = currentKFileTreeViewItem();
if (! kftvi)
@@ -603,22 +603,22 @@ void ProjectTreeView::slotChangeDocumentFolderStatus()
KURL url = currentURL();
if (kftvi->isDir())
url.adjustPath(+1);
- if (!m_documentFolderList.contains(currentURL()))
+ if (!m_documentFolderList.tqcontains(currentURL()))
{
m_documentFolderList.append(currentURL());
- emit changeUploadStatus(url, ProjectURL::AlwaysUpload);
- emit changeDocumentFolderStatus(url, true);
+ emit changeUploadtqStatus(url, ProjectURL::AlwaysUpload);
+ emit changeDocumentFoldertqStatus(url, true);
} else
{
m_documentFolderList.remove(currentURL());
- emit changeUploadStatus(url, false);
+ emit changeUploadtqStatus(url, false);
}
- currentItem()->repaint();
+ currentItem()->tqrepaint();
}
bool ProjectTreeView::isDocumentFolder(const KURL &url)
{
- return (m_documentFolderList.contains(url) > 0);
+ return (m_documentFolderList.tqcontains(url) > 0);
}