summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:16:01 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:16:01 -0600
commit9771f17f8cc5252b12ec5f3edf47ff9bffdf997f (patch)
treeb9e389db87bdba126010d03fb5bccdc748d0e6fa /quanta/treeviews
parent9930e16dde86b7de9b792613d826f4f8648b9768 (diff)
downloadtdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.tar.gz
tdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'quanta/treeviews')
-rw-r--r--quanta/treeviews/basetreeview.cpp12
-rw-r--r--quanta/treeviews/basetreeview.h10
-rw-r--r--quanta/treeviews/docfolder.cpp4
-rw-r--r--quanta/treeviews/docfolder.h2
-rw-r--r--quanta/treeviews/docitem.cpp4
-rw-r--r--quanta/treeviews/docitem.h2
-rw-r--r--quanta/treeviews/doctreeview.cpp12
-rw-r--r--quanta/treeviews/doctreeview.h10
-rw-r--r--quanta/treeviews/filestreeview.cpp14
-rw-r--r--quanta/treeviews/filestreeview.h10
-rw-r--r--quanta/treeviews/projecttreeview.cpp18
-rw-r--r--quanta/treeviews/projecttreeview.h10
-rw-r--r--quanta/treeviews/scripttreeview.cpp10
-rw-r--r--quanta/treeviews/scripttreeview.h8
-rw-r--r--quanta/treeviews/servertreeview.cpp10
-rw-r--r--quanta/treeviews/servertreeview.h8
-rw-r--r--quanta/treeviews/structtreetag.cpp6
-rw-r--r--quanta/treeviews/structtreetag.h2
-rw-r--r--quanta/treeviews/structtreeview.cpp12
-rw-r--r--quanta/treeviews/structtreeview.h10
-rw-r--r--quanta/treeviews/tagattributeitems.cpp24
-rw-r--r--quanta/treeviews/tagattributeitems.h14
-rw-r--r--quanta/treeviews/tagattributetree.cpp14
-rw-r--r--quanta/treeviews/tagattributetree.h4
-rw-r--r--quanta/treeviews/templatestreeview.cpp18
-rw-r--r--quanta/treeviews/templatestreeview.h18
-rw-r--r--quanta/treeviews/uploadtreefile.cpp4
-rw-r--r--quanta/treeviews/uploadtreefile.h2
-rw-r--r--quanta/treeviews/uploadtreefolder.cpp4
-rw-r--r--quanta/treeviews/uploadtreefolder.h2
-rw-r--r--quanta/treeviews/uploadtreeview.cpp2
-rw-r--r--quanta/treeviews/uploadtreeview.h2
32 files changed, 141 insertions, 141 deletions
diff --git a/quanta/treeviews/basetreeview.cpp b/quanta/treeviews/basetreeview.cpp
index 1b1b3e7a..603249c0 100644
--- a/quanta/treeviews/basetreeview.cpp
+++ b/quanta/treeviews/basetreeview.cpp
@@ -581,13 +581,13 @@ void BaseTreeView::slotOpenWithActivated(int id)
}
}
-void BaseTreeView::insertOpenWithMenu(KPopupMenu *menu, int position)
+void BaseTreeView::insertOpenWithMenu(TDEPopupMenu *menu, int position)
{
if (m_openWithMenuId != -1)
menu->removeItem(m_openWithMenuId);
for (uint i = 0; i < m_openWithActions.count(); i++)
{
- KAction *action = m_openWithActions[i];
+ TDEAction *action = m_openWithActions[i];
delete action;
}
m_openWithActions.clear();
@@ -599,13 +599,13 @@ void BaseTreeView::insertOpenWithMenu(KPopupMenu *menu, int position)
if (offers.count() > 0 || plugins.count() > 0)
{
- m_openWithMenu = new KPopupMenu(this);
+ m_openWithMenu = new TDEPopupMenu(this);
if (offers.count() > 0)
{
TDETrader::OfferList::Iterator it;
for (it = offers.begin(); it != offers.end(); ++it)
{
- KAction *action = new KAction((*it)->name(), (*it)->icon(), 0, 0, TQFile::encodeName((*it)->desktopEntryPath()).data());
+ TDEAction *action = new TDEAction((*it)->name(), (*it)->icon(), 0, 0, TQFile::encodeName((*it)->desktopEntryPath()).data());
connect(action, TQT_SIGNAL(activated()), this, TQT_SLOT(slotOpenWithApplication()));
action->plug(m_openWithMenu);
m_openWithActions.append(action);
@@ -1059,7 +1059,7 @@ void BaseTreeView::doRename(KFileTreeViewItem* kftvi, const TQString & newName)
void BaseTreeView::saveLayout(TDEConfig *config, const TQString &group)
{
- KListView::saveLayout(config, group);
+ TDEListView::saveLayout(config, group);
if (! m_saveOpenFolder || ! qConfig.saveTrees)
return;
@@ -1085,7 +1085,7 @@ void BaseTreeView::saveLayout(TDEConfig *config, const TQString &group)
void BaseTreeView::restoreLayout(TDEConfig *config, const TQString &group)
{
- KListView::restoreLayout(config, group);
+ TDEListView::restoreLayout(config, group);
TDEConfigGroupSaver saver(config, group);
setShowToolTips( config->readBoolEntry("ShowToolTips", true) );
diff --git a/quanta/treeviews/basetreeview.h b/quanta/treeviews/basetreeview.h
index bef646ae..f189c4d7 100644
--- a/quanta/treeviews/basetreeview.h
+++ b/quanta/treeviews/basetreeview.h
@@ -37,9 +37,9 @@ class TQPoint;
class TQRegExp;
class TQCloseEvent;
-class KAction;
+class TDEAction;
class KFileItem;
-class KPopupMenu;
+class TDEPopupMenu;
class KPropertiesDialog;
class KURL;
class FileInfoDlg;
@@ -321,7 +321,7 @@ protected:
@param menu the menu where the Open With submenu should be inserted
@param position the position in this menu
*/
- void insertOpenWithMenu(KPopupMenu *menu, int position);
+ void insertOpenWithMenu(TDEPopupMenu *menu, int position);
KPropertiesDialog *propDlg;
TQString m_projectName;
KURL m_projectBaseURL;
@@ -355,9 +355,9 @@ signals:
private:
bool m_saveOpenFolder;
- KPopupMenu *m_openWithMenu;
+ TDEPopupMenu *m_openWithMenu;
int m_openWithMenuId;
- TQValueList<KAction *> m_openWithActions;
+ TQValueList<TDEAction *> m_openWithActions;
TQMap<int, QuantaPlugin*> m_pluginIds;
};
diff --git a/quanta/treeviews/docfolder.cpp b/quanta/treeviews/docfolder.cpp
index 3d028451..358fec8a 100644
--- a/quanta/treeviews/docfolder.cpp
+++ b/quanta/treeviews/docfolder.cpp
@@ -29,7 +29,7 @@
#include "docitem.h"
DocFolder::DocFolder(TQListViewItem *parent, const TQString &_name, TDEConfig *config, const TQString &basePath)
- : KListViewItem(parent)
+ : TDEListViewItem(parent)
{
name = _name;
topLevel = false;
@@ -60,7 +60,7 @@ DocFolder::DocFolder(TQListViewItem *parent, const TQString &_name, TDEConfig *c
}
DocFolder::DocFolder(TQListView *parent, const TQString &_name, TDEConfig *config, const TQString &basePath)
- : KListViewItem(parent)
+ : TDEListViewItem(parent)
{
name = _name;
topLevel = false;
diff --git a/quanta/treeviews/docfolder.h b/quanta/treeviews/docfolder.h
index 5f36a825..c6d02fe0 100644
--- a/quanta/treeviews/docfolder.h
+++ b/quanta/treeviews/docfolder.h
@@ -31,7 +31,7 @@ Doc tree
class TDEConfig;
-class DocFolder : public KListViewItem {
+class DocFolder : public TDEListViewItem {
public:
DocFolder(TQListViewItem *parent, const TQString &_name, TDEConfig *config, const TQString &basePath);
DocFolder(TQListView *parent, const TQString &_name, TDEConfig *config, const TQString &basePath);
diff --git a/quanta/treeviews/docitem.cpp b/quanta/treeviews/docitem.cpp
index 3fb4ac2f..0e31c2ed 100644
--- a/quanta/treeviews/docitem.cpp
+++ b/quanta/treeviews/docitem.cpp
@@ -22,14 +22,14 @@
#include "docitem.h"
DocItem::DocItem(TQListViewItem *parent, const TQString &_name, const TQString &_url)
- : KListViewItem(parent)
+ : TDEListViewItem(parent)
{
url = _url;
name = _name;
}
DocItem::DocItem(TQListView *parent, const TQString &_name, const TQString &_url)
- : KListViewItem(parent)
+ : TDEListViewItem(parent)
{
url = _url;
name = _name;
diff --git a/quanta/treeviews/docitem.h b/quanta/treeviews/docitem.h
index 6022650b..5a245828 100644
--- a/quanta/treeviews/docitem.h
+++ b/quanta/treeviews/docitem.h
@@ -28,7 +28,7 @@ class TDEConfig;
*@author Yacovlev Alexander & Dmitry Poplavsky
*/
-class DocItem : public KListViewItem {
+class DocItem : public TDEListViewItem {
public:
DocItem(TQListViewItem *parent, const TQString &_name, const TQString &_url);
diff --git a/quanta/treeviews/doctreeview.cpp b/quanta/treeviews/doctreeview.cpp
index 684072a5..a9859858 100644
--- a/quanta/treeviews/doctreeview.cpp
+++ b/quanta/treeviews/doctreeview.cpp
@@ -36,7 +36,7 @@
#include "docitem.h"
DocTreeView::DocTreeView(TQWidget *parent, const char *name )
- : KListView(parent,name)
+ : TDEListView(parent,name)
{
contextHelpDict = new TQDict<TQString>( 101, false );
@@ -51,7 +51,7 @@ DocTreeView::DocTreeView(TQWidget *parent, const char *name )
addColumn("");
setFullWidth(true);
- projectDocFolder = new KListViewItem(this, i18n("Project Documentation"));
+ projectDocFolder = new TDEListViewItem(this, i18n("Project Documentation"));
projectDocFolder->setOpen(true);
slotRefreshTree();
setFocusPolicy(TQ_ClickFocus);
@@ -60,11 +60,11 @@ DocTreeView::DocTreeView(TQWidget *parent, const char *name )
connect(this, TQT_SIGNAL(returnPressed(TQListViewItem *)), TQT_SLOT(clickItem(TQListViewItem *)));
connect(this, TQT_SIGNAL(doubleClicked(TQListViewItem *)), TQT_SLOT(slotDoubleClicked(TQListViewItem *)));
- m_contextMenu = new KPopupMenu(this);
+ m_contextMenu = new TDEPopupMenu(this);
m_menuReload = m_contextMenu->insertItem(i18n("&Reload"), this, TQT_SLOT(slotReloadProjectDocs()));
m_contextMenu->insertItem(SmallIcon("network"), i18n("&Download Documentation..."), this, TQT_SIGNAL(downloadDoc()));
- connect(this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
- this, TQT_SLOT(slotMenu(KListView*, TQListViewItem*, const TQPoint&)));
+ connect(this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(slotMenu(TDEListView*, TQListViewItem*, const TQPoint&)));
}
@@ -161,7 +161,7 @@ void DocTreeView::slotAddProjectDoc(const KURL& url)
new DocItem(projectDocFolder, path, url.url());
}
-void DocTreeView::slotMenu(KListView *, TQListViewItem *item, const TQPoint &point)
+void DocTreeView::slotMenu(TDEListView *, TQListViewItem *item, const TQPoint &point)
{
m_contextMenu->setItemVisible(m_menuReload, false);
if (item)
diff --git a/quanta/treeviews/doctreeview.h b/quanta/treeviews/doctreeview.h
index 7ce1b656..3168899c 100644
--- a/quanta/treeviews/doctreeview.h
+++ b/quanta/treeviews/doctreeview.h
@@ -26,14 +26,14 @@
#include <klistview.h>
class DocFolder;
-class KPopupMenu;
+class TDEPopupMenu;
/**
*@author Yacovlev Alexander & Dmitry Poplavsky
*/
-class DocTreeView : public KListView {
+class DocTreeView : public TDEListView {
Q_OBJECT
public:
@@ -57,15 +57,15 @@ signals:
private slots:
void clickItem( TQListViewItem *);
void slotDoubleClicked(TQListViewItem *);
- void slotMenu(KListView *, TQListViewItem *item, const TQPoint &point);
+ void slotMenu(TDEListView *, TQListViewItem *item, const TQPoint &point);
private:
TQDict<TQString> *contextHelpDict;
TQValueList<DocFolder *> m_folderList;
- KListViewItem *projectDocFolder;
- KPopupMenu *m_contextMenu;
+ TDEListViewItem *projectDocFolder;
+ TDEPopupMenu *m_contextMenu;
int m_menuReload;
};
diff --git a/quanta/treeviews/filestreeview.cpp b/quanta/treeviews/filestreeview.cpp
index eee9e6fb..7d82961f 100644
--- a/quanta/treeviews/filestreeview.cpp
+++ b/quanta/treeviews/filestreeview.cpp
@@ -82,7 +82,7 @@ FilesTreeView::FilesTreeView(TDEConfig *config, TQWidget *parent, const char *na
topURLList.append(url);
}
- m_fileMenu = new KPopupMenu(this);
+ m_fileMenu = new TDEPopupMenu(this);
m_fileMenu->insertItem(SmallIcon("fileopen"), i18n("&Open"), this ,TQT_SLOT(slotOpen()));
m_fileMenu->insertItem(i18n("Insert &Tag"), this, TQT_SLOT(slotInsertTag()));
@@ -95,11 +95,11 @@ FilesTreeView::FilesTreeView(TDEConfig *config, TQWidget *parent, const char *na
m_fileMenu->insertSeparator();
m_fileMenu->insertItem(SmallIcon("info"), i18n("&Properties"), this, TQT_SLOT(slotProperties()));
- KPopupMenu *createNewMenu = new KPopupMenu(this);
+ TDEPopupMenu *createNewMenu = new TDEPopupMenu(this);
createNewMenu->insertItem(SmallIcon("folder_new"), i18n("F&older..."), this, TQT_SLOT(slotCreateFolder()));
createNewMenu->insertItem(SmallIcon("document"), i18n("&File..."), this, TQT_SLOT(slotCreateFile()));
- m_folderMenu = new KPopupMenu();
+ m_folderMenu = new TDEPopupMenu();
m_folderMenu->insertItem(SmallIcon("folder_new"), i18n("New Top &Folder..."), this, TQT_SLOT(slotNewTopFolder()));
m_menuTop = m_folderMenu->insertItem(i18n("&Add Folder to Top"), this, TQT_SLOT(slotAddToTop()));
@@ -116,7 +116,7 @@ FilesTreeView::FilesTreeView(TDEConfig *config, TQWidget *parent, const char *na
m_folderMenu->insertItem(SmallIcon("info"), i18n("&Properties"), this, TQT_SLOT(slotProperties()));
m_reloadMenuId = m_folderMenu->insertItem(SmallIcon("revert"), i18n("&Reload"), this, TQT_SLOT(slotReload()));
- m_emptyMenu = new KPopupMenu();
+ m_emptyMenu = new TDEPopupMenu();
m_emptyMenu->insertItem(i18n("New Top &Folder..."), this, TQT_SLOT(slotNewTopFolder()), 0, -1 , 0);
@@ -125,8 +125,8 @@ FilesTreeView::FilesTreeView(TDEConfig *config, TQWidget *parent, const char *na
connect(this, TQT_SIGNAL(open(TQListViewItem *)),
this, TQT_SLOT(slotSelectFile(TQListViewItem *)));
- connect(this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
- this, TQT_SLOT(slotMenu(KListView*, TQListViewItem*, const TQPoint&)));
+ connect(this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(slotMenu(TDEListView*, TQListViewItem*, const TQPoint&)));
// generate top list of directories
for (uint i = 0; i < topURLList.count(); i++)
@@ -175,7 +175,7 @@ KFileTreeBranch* FilesTreeView::newBranch(const KURL& url)
/** RMB pressed, bring up the menu */
-void FilesTreeView::slotMenu(KListView* listView, TQListViewItem *item, const TQPoint &point)
+void FilesTreeView::slotMenu(TDEListView* listView, TQListViewItem *item, const TQPoint &point)
{
Q_UNUSED(listView);
#ifdef ENABLE_CVSSERVICE
diff --git a/quanta/treeviews/filestreeview.h b/quanta/treeviews/filestreeview.h
index 4cf89304..1cee782b 100644
--- a/quanta/treeviews/filestreeview.h
+++ b/quanta/treeviews/filestreeview.h
@@ -27,7 +27,7 @@
//foward declarations
class TQListViewItem;
class TQPoint;
-class KPopupMenu;
+class TDEPopupMenu;
class KURL;
@@ -48,7 +48,7 @@ protected slots:
*/
void slotNewTopFolder();
- virtual void slotMenu(KListView *listView, TQListViewItem *item, const TQPoint &point);
+ virtual void slotMenu(TDEListView *listView, TQListViewItem *item, const TQPoint &point);
/**
creates a new branch from the current url
*/
@@ -61,9 +61,9 @@ protected slots:
protected:
virtual KFileTreeBranch* newBranch(const KURL& url);
- KPopupMenu *m_fileMenu;
- KPopupMenu *m_folderMenu;
- KPopupMenu *m_emptyMenu;
+ TDEPopupMenu *m_fileMenu;
+ TDEPopupMenu *m_folderMenu;
+ TDEPopupMenu *m_emptyMenu;
int m_menuClose; ///< remembers the menu entry
int m_menuPasteFolder; ///< remembers the menu entry
int m_insertFileInProject;
diff --git a/quanta/treeviews/projecttreeview.cpp b/quanta/treeviews/projecttreeview.cpp
index 205e5bf0..fa3a0ed8 100644
--- a/quanta/treeviews/projecttreeview.cpp
+++ b/quanta/treeviews/projecttreeview.cpp
@@ -103,7 +103,7 @@ KFileTreeViewItem* ProjectTreeBranch::createTreeViewItem(KFileTreeViewItem *pare
ProjectTreeView::ProjectTreeView(TQWidget *parent, const char *name )
: BaseTreeView(parent,name), m_projectFiles(0)
{
- //setSelectionModeExt(KListView::Extended);
+ //setSelectionModeExt(TDEListView::Extended);
setRootIsDecorated(false);
addColumn(i18n("Project Files"), -1);
addColumn(i18n("Description"), -1);
@@ -117,13 +117,13 @@ ProjectTreeView::ProjectTreeView(TQWidget *parent, const char *name )
newBranch(m_projectBaseURL); // create an empty project branch
m_projectDir->root()->setEnabled(false);
- m_uploadStatusMenu = new KPopupMenu(this);
+ m_uploadStatusMenu = new TDEPopupMenu(this);
m_alwaysUploadId = m_uploadStatusMenu->insertItem(i18n("&When Modified"), this, TQT_SLOT(slotAlwaysUpload()));
m_neverUploadId = m_uploadStatusMenu->insertItem(i18n("&Never"), this, TQT_SLOT(slotNeverUpload()));
m_confirmUploadId = m_uploadStatusMenu->insertItem(i18n("&Confirm"), this, TQT_SLOT(slotConfirmUpload()));
connect(m_uploadStatusMenu, TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(slotUploadMenuAboutToShow()));
- m_fileMenu = new KPopupMenu(this);
+ m_fileMenu = new TDEPopupMenu(this);
m_fileMenu->insertItem(SmallIcon("fileopen"), i18n("&Open"), this, TQT_SLOT(slotOpen()));
m_openInQuantaId = m_fileMenu->insertItem(i18n("Load Toolbar"), this, TQT_SLOT(slotLoadToolbar()));
@@ -139,11 +139,11 @@ ProjectTreeView::ProjectTreeView(TQWidget *parent, const char *name )
m_fileMenu->insertItem(i18n("Upload &Status"), m_uploadStatusMenu);
m_fileMenu->insertItem(SmallIcon("info"), i18n("&Properties"), this, TQT_SLOT(slotProperties()));
- KPopupMenu *createNewMenu = new KPopupMenu(this);
+ TDEPopupMenu *createNewMenu = new TDEPopupMenu(this);
createNewMenu->insertItem(SmallIcon("folder_new"), i18n("F&older..."), this, TQT_SLOT(slotCreateFolder()));
createNewMenu->insertItem(SmallIcon("document"), i18n("&File..."), this, TQT_SLOT(slotCreateFile()));
- m_folderMenu = new KPopupMenu(this);
+ m_folderMenu = new TDEPopupMenu(this);
m_folderMenu->insertItem(SmallIconSet("filenew"), i18n("&Create New"), createNewMenu);
m_folderMenu->insertSeparator();
@@ -158,7 +158,7 @@ ProjectTreeView::ProjectTreeView(TQWidget *parent, const char *name )
m_folderMenu->insertItem(i18n("Upload &Status"), m_uploadStatusMenu);
m_folderMenu->insertItem(SmallIcon("info"), i18n("&Properties"), this, TQT_SLOT(slotProperties()));
- m_projectMenu = new KPopupMenu(this);
+ m_projectMenu = new TDEPopupMenu(this);
m_projectMenu->insertItem(SmallIconSet("filenew"), i18n("&Create New"), createNewMenu);
m_projectMenu->insertSeparator();
m_projectMenu->insertItem(SmallIcon("up"), i18n("&Upload Project..."), this, TQT_SLOT(slotUploadProject()));
@@ -169,8 +169,8 @@ ProjectTreeView::ProjectTreeView(TQWidget *parent, const char *name )
m_projectMenu->insertItem(i18n("Upload &Status"), m_uploadStatusMenu);
- connect(this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
- this, TQT_SLOT(slotMenu(KListView*, TQListViewItem*, const TQPoint&)));
+ connect(this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(slotMenu(TDEListView*, TQListViewItem*, const TQPoint&)));
connect(this, TQT_SIGNAL(open(TQListViewItem *)),
this, TQT_SLOT(slotSelectFile(TQListViewItem *)));
@@ -222,7 +222,7 @@ KFileTreeBranch* ProjectTreeView::newBranch(const KURL& url)
/** slot for context menu */
-void ProjectTreeView::slotMenu(KListView *listView, TQListViewItem *item, const TQPoint& point)
+void ProjectTreeView::slotMenu(TDEListView *listView, TQListViewItem *item, const TQPoint& point)
{
Q_UNUSED(listView);
KURL url = currentURL();
diff --git a/quanta/treeviews/projecttreeview.h b/quanta/treeviews/projecttreeview.h
index ea67610a..d8c65cbd 100644
--- a/quanta/treeviews/projecttreeview.h
+++ b/quanta/treeviews/projecttreeview.h
@@ -91,7 +91,7 @@ public slots: // Public slots
protected slots:
- void slotMenu(KListView *listView, TQListViewItem *item, const TQPoint &point);
+ void slotMenu(TDEListView *listView, TQListViewItem *item, const TQPoint &point);
void slotRenameItem(TQListViewItem* kvtvi, const TQString & newText, int col);
virtual void slotCreateFolder();
virtual void slotCreateFile();
@@ -119,13 +119,13 @@ private:
ProjectTreeView(TQWidget *parent, const char *name);
ProjectTreeBranch *m_projectDir;
- KPopupMenu *m_fileMenu;
- KPopupMenu *m_folderMenu;
- KPopupMenu *m_projectMenu;
+ TDEPopupMenu *m_fileMenu;
+ TDEPopupMenu *m_folderMenu;
+ TDEPopupMenu *m_projectMenu;
KURL m_documentRootURL;
ProjectTreeViewItem *m_documentRootItem;
KURL::List m_documentFolderList;
- KPopupMenu *m_uploadStatusMenu;
+ TDEPopupMenu *m_uploadStatusMenu;
ProjectList *m_projectFiles;
int m_menuClose; ///< remembers the menu entry
diff --git a/quanta/treeviews/scripttreeview.cpp b/quanta/treeviews/scripttreeview.cpp
index 6819e1ca..768b7416 100644
--- a/quanta/treeviews/scripttreeview.cpp
+++ b/quanta/treeviews/scripttreeview.cpp
@@ -83,7 +83,7 @@ ScriptTreeView::ScriptTreeView(TQWidget *parent, const char *name )
m_globalDir->excludeFilterRx.setPattern(excludeString);
m_localDir->excludeFilterRx.setPattern(excludeString);
- m_fileMenu = new KPopupMenu(this);
+ m_fileMenu = new TDEPopupMenu(this);
m_fileMenu->insertItem(SmallIcon("info"), i18n("&Description"), this, TQT_SLOT(slotProperties()));
m_fileMenu->insertItem(SmallIcon("run"), i18n("&Run Script"), this, TQT_SLOT(slotRun()));
m_fileMenu->insertSeparator();
@@ -95,12 +95,12 @@ ScriptTreeView::ScriptTreeView(TQWidget *parent, const char *name )
m_fileMenu->insertItem(SmallIcon("mail_send"), i18n("&Send in Email..."), this, TQT_SLOT(slotSendScriptInMail()));
m_fileMenu->insertItem(SmallIcon("network"), i18n("&Upload Script..."), this, TQT_SLOT(slotUploadScript()));
- m_folderMenu = new KPopupMenu(this);
+ m_folderMenu = new TDEPopupMenu(this);
m_downloadMenuId = m_folderMenu->insertItem(SmallIcon("network"), i18n("&Download Script..."), this, TQT_SIGNAL(downloadScript()));
- connect(this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
- this, TQT_SLOT(slotMenu(KListView*, TQListViewItem*, const TQPoint&)));
+ connect(this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(slotMenu(TDEListView*, TQListViewItem*, const TQPoint&)));
restoreLayout( kapp->config(), className() );
// the restored size of the first column might be too large for the current content
@@ -112,7 +112,7 @@ ScriptTreeView::~ScriptTreeView()
{
}
-void ScriptTreeView::slotMenu(KListView *, TQListViewItem *item, const TQPoint &point)
+void ScriptTreeView::slotMenu(TDEListView *, TQListViewItem *item, const TQPoint &point)
{
if (!item)
{
diff --git a/quanta/treeviews/scripttreeview.h b/quanta/treeviews/scripttreeview.h
index 9914c622..88f0e4cb 100644
--- a/quanta/treeviews/scripttreeview.h
+++ b/quanta/treeviews/scripttreeview.h
@@ -54,14 +54,14 @@ protected slots:
* displays the RBM
*
*
- * @param listView KListView where the event comes from
+ * @param listView TDEListView where the event comes from
*
* @param item TQListViewItem where the mousepointer is hovering
*
* @param point TQPoint coordinates of the event
*
*/
- virtual void slotMenu(KListView *listView, TQListViewItem *item, const TQPoint &point);
+ virtual void slotMenu(TDEListView *listView, TQListViewItem *item, const TQPoint &point);
/**
* slot of TQListView
@@ -212,8 +212,8 @@ private:
/**
* remember the menu for manipulation
*/
- KPopupMenu *m_fileMenu;
- KPopupMenu *m_folderMenu;
+ TDEPopupMenu *m_fileMenu;
+ TDEPopupMenu *m_folderMenu;
int m_downloadMenuId;
};
diff --git a/quanta/treeviews/servertreeview.cpp b/quanta/treeviews/servertreeview.cpp
index fa34f582..bfb6ad23 100644
--- a/quanta/treeviews/servertreeview.cpp
+++ b/quanta/treeviews/servertreeview.cpp
@@ -98,7 +98,7 @@ ServerTreeView::ServerTreeView(TDEConfig *config, TQWidget *parent, const KURL &
// I must read this here because quanta_init has not done it yet
qConfig.showHiddenFiles = m_config->readBoolEntry("Show Hidden Files", true);
- m_fileMenu = new KPopupMenu();
+ m_fileMenu = new TDEPopupMenu();
m_fileMenu->insertItem(SmallIcon("fileopen"), i18n("&Open"), this ,TQT_SLOT(slotOpen()));
m_fileMenu->insertItem(i18n("Open &With..."), this, TQT_SLOT(slotOpenWith()));
@@ -111,7 +111,7 @@ ServerTreeView::ServerTreeView(TDEConfig *config, TQWidget *parent, const KURL &
m_fileMenu->insertSeparator();
m_fileMenu->insertItem(SmallIcon("info"), i18n("&Properties"), this, TQT_SLOT(slotProperties()));
- m_folderMenu = new KPopupMenu();
+ m_folderMenu = new TDEPopupMenu();
// m_insertFolderInProject = m_folderMenu->insertItem(i18n("&Insert in Project..."), this, TQT_SLOT(slotInsertDirInProject()));
m_folderMenu->insertItem(SmallIcon("editcopy"), i18n("&Copy"), this, TQT_SLOT(slotCopy()));
@@ -127,8 +127,8 @@ ServerTreeView::ServerTreeView(TDEConfig *config, TQWidget *parent, const KURL &
connect(this, TQT_SIGNAL(open(TQListViewItem *)),
this, TQT_SLOT(slotSelectFile(TQListViewItem *)));
- connect(this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
- this, TQT_SLOT(slotMenu(KListView*, TQListViewItem*, const TQPoint&)));
+ connect(this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(slotMenu(TDEListView*, TQListViewItem*, const TQPoint&)));
connect(Project::ref(), TQT_SIGNAL(reloadTree(ProjectList *, bool, const TQStringList &)),
this, TQT_SLOT(slotReloadTree(ProjectList *, bool, const TQStringList &)));
@@ -156,7 +156,7 @@ KFileTreeBranch* ServerTreeView::newBranch(const KURL& url)
/** RMB pressed, bring up the menu */
-void ServerTreeView::slotMenu(KListView* listView, TQListViewItem *item, const TQPoint &point)
+void ServerTreeView::slotMenu(TDEListView* listView, TQListViewItem *item, const TQPoint &point)
{
Q_UNUSED(listView);
if (item)
diff --git a/quanta/treeviews/servertreeview.h b/quanta/treeviews/servertreeview.h
index fc3b8c96..94ab33fe 100644
--- a/quanta/treeviews/servertreeview.h
+++ b/quanta/treeviews/servertreeview.h
@@ -24,7 +24,7 @@
//foward declarations
class TQListViewItem;
class TQPoint;
-class KPopupMenu;
+class TDEPopupMenu;
class KURL;
class ProjectList;
@@ -67,7 +67,7 @@ public:
protected slots:
- void slotMenu(KListView *listView, TQListViewItem *item, const TQPoint &point);
+ void slotMenu(TDEListView *listView, TQListViewItem *item, const TQPoint &point);
/** repaints the treeview items, because they might be added to or removed from the project*/
void slotReloadTree( ProjectList *fileList, bool buildNewTree, const TQStringList &folderToOpen);
@@ -75,8 +75,8 @@ protected slots:
protected:
KFileTreeBranch* newBranch(const KURL& url);
- KPopupMenu *m_fileMenu;
- KPopupMenu *m_folderMenu;
+ TDEPopupMenu *m_fileMenu;
+ TDEPopupMenu *m_folderMenu;
int m_menuClose; ///< remembers the menu entry
int m_menuPasteFolder; ///< remembers the menu entry
int m_insertFileInProject;
diff --git a/quanta/treeviews/structtreetag.cpp b/quanta/treeviews/structtreetag.cpp
index 0325645e..f54cb23c 100644
--- a/quanta/treeviews/structtreetag.cpp
+++ b/quanta/treeviews/structtreetag.cpp
@@ -32,7 +32,7 @@
#include "resource.h"
StructTreeTag::StructTreeTag(TQListView *parent, TQString a_title)
- : KListViewItem(parent, a_title)
+ : TDEListViewItem(parent, a_title)
{
node = 0L;
hasOpenFileMenu = false;
@@ -42,7 +42,7 @@ StructTreeTag::StructTreeTag(TQListView *parent, TQString a_title)
StructTreeTag::StructTreeTag(StructTreeTag *parent, Node *a_node, const TQString a_title,
TQListViewItem *after )
-: KListViewItem(parent, after, a_title)
+: TDEListViewItem(parent, after, a_title)
{
parentTree = parent->parentTree;
hasOpenFileMenu = false;
@@ -202,7 +202,7 @@ StructTreeTag::StructTreeTag(StructTreeTag *parent, Node *a_node, const TQString
}
StructTreeTag::StructTreeTag(StructTreeTag *parent, TQString a_title )
-: KListViewItem(parent, a_title)
+: TDEListViewItem(parent, a_title)
{
node = 0L;
hasOpenFileMenu = false;
diff --git a/quanta/treeviews/structtreetag.h b/quanta/treeviews/structtreetag.h
index 2f408707..b7ba1585 100644
--- a/quanta/treeviews/structtreetag.h
+++ b/quanta/treeviews/structtreetag.h
@@ -27,7 +27,7 @@ class StructTreeView;
*@author Yacovlev Alexander & Dmitry Poplavsky & Andras Mantia
*/
-class StructTreeTag : public KListViewItem {
+class StructTreeTag : public TDEListViewItem {
public:
StructTreeTag(TQListView *parent, const TQString a_title = TQString() );
diff --git a/quanta/treeviews/structtreeview.cpp b/quanta/treeviews/structtreeview.cpp
index 4fa7afa9..ccf3caef 100644
--- a/quanta/treeviews/structtreeview.cpp
+++ b/quanta/treeviews/structtreeview.cpp
@@ -58,7 +58,7 @@
extern GroupElementMapList globalGroupMap;
StructTreeView::StructTreeView(TQWidget *parent, const char *name )
- : KListView(parent,name), m_marker(0), m_draggedItem(0)/*, m_thisWidget(0)*/
+ : TDEListView(parent,name), m_marker(0), m_draggedItem(0)/*, m_thisWidget(0)*/
{
for (int i = 0; i < 15; i++)
groupOpened.append(false);
@@ -85,7 +85,7 @@ StructTreeView::StructTreeView(TQWidget *parent, const char *name )
setFocusPolicy(TQ_ClickFocus);
- dtdMenu = new KPopupMenu(this);
+ dtdMenu = new TDEPopupMenu(this);
dtdMenu->insertItem(i18n("All Present DTEP"));
dtdMenu->insertSeparator();
@@ -100,11 +100,11 @@ StructTreeView::StructTreeView(TQWidget *parent, const char *name )
connect(this, TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)),
TQT_SLOT(slotDropped(TQDropEvent*, TQListViewItem*, TQListViewItem*)));
- emptyAreaMenu = new KPopupMenu(this);
+ emptyAreaMenu = new TDEPopupMenu(this);
emptyAreaMenu->insertItem(i18n("Show Groups For"), dtdMenu);
emptyAreaMenu->insertItem(SmallIcon("reload"), i18n("&Reparse"), this, TQT_SLOT(slotReparseMenuItem()));
- popupMenu = new KPopupMenu(this);
+ popupMenu = new TDEPopupMenu(this);
popupMenu -> insertItem( i18n("Show Groups For"), dtdMenu);
popupMenu -> insertSeparator();
@@ -828,7 +828,7 @@ void StructTreeView::slotDropped(TQDropEvent* e, TQListViewItem* parent, TQListV
if(!TQTextDrag::canDecode(e))
return;
- KPopupMenu *menu = new KPopupMenu( this );
+ TDEPopupMenu *menu = new TDEPopupMenu( this );
menu->insertItem( i18n("&Move Here"), DRAG_MOVE, 0 );
menu->insertItem( SmallIcon("editcopy"), i18n("&Copy Here"), DRAG_COPY, 1 );
menu->insertSeparator();
@@ -872,7 +872,7 @@ void StructTreeView::contentsMousePressEvent(TQMouseEvent* e)
m_draggedItem = itemAt(p);
m_marker = m_draggedItem;
}
- KListView::contentsMousePressEvent(e);
+ TDEListView::contentsMousePressEvent(e);
}
void StructTreeView::copySelectedItems(TQListViewItem* parent, TQListViewItem* after)
diff --git a/quanta/treeviews/structtreeview.h b/quanta/treeviews/structtreeview.h
index d0e32dfc..d6158431 100644
--- a/quanta/treeviews/structtreeview.h
+++ b/quanta/treeviews/structtreeview.h
@@ -27,7 +27,7 @@
*@author Andras Mantia & Paulo Moura Guedes & Yacovlev Alexander & Dmitry Poplavsky
*/
-class KPopupMenu;
+class TDEPopupMenu;
class TDEConfig;
class KURL;
class TQTime;
@@ -38,7 +38,7 @@ class Parser;
class Document;
struct DTDStruct;
-class StructTreeView : public KListView {
+class StructTreeView : public TDEListView {
Q_OBJECT
public:
@@ -130,9 +130,9 @@ private:
int followCursorId;
bool followCursorFlag;
- KPopupMenu *popupMenu;
- KPopupMenu *emptyAreaMenu;
- KPopupMenu *dtdMenu;
+ TDEPopupMenu *popupMenu;
+ TDEPopupMenu *emptyAreaMenu;
+ TDEPopupMenu *dtdMenu;
StructTreeTag *lastTag;
TDEConfig *config;
TQStringList dtdList;
diff --git a/quanta/treeviews/tagattributeitems.cpp b/quanta/treeviews/tagattributeitems.cpp
index 776ac366..4a21ec27 100644
--- a/quanta/treeviews/tagattributeitems.cpp
+++ b/quanta/treeviews/tagattributeitems.cpp
@@ -40,13 +40,13 @@
#include "qextfileinfo.h"
#include "styleeditor.h"
-TopLevelItem::TopLevelItem(KListView* parent, const TQString &title)
-: KListViewItem(parent, title)
+TopLevelItem::TopLevelItem(TDEListView* parent, const TQString &title)
+: TDEListViewItem(parent, title)
{
}
-TopLevelItem::TopLevelItem(KListView* parent, TQListViewItem* after, const TQString &title)
-: KListViewItem(parent, after, title)
+TopLevelItem::TopLevelItem(TDEListView* parent, TQListViewItem* after, const TQString &title)
+: TDEListViewItem(parent, after, title)
{
}
@@ -68,7 +68,7 @@ void TopLevelItem::paintCell(TQPainter *p, const TQColorGroup &cg,
f.setBold(true);
p->setFont(f);
}
- KListViewItem::paintCell( p, cg, column, width, align );
+ TDEListViewItem::paintCell( p, cg, column, width, align );
if (column == 0)
{
p->setPen(TQPen(TQColor(0,0,0)));
@@ -77,7 +77,7 @@ void TopLevelItem::paintCell(TQPainter *p, const TQColorGroup &cg,
}
ParentItem::ParentItem(TagAttributeTree *listView, TQListViewItem* parent)
-: KListViewItem(parent)
+: TDEListViewItem(parent)
{
m_listView = listView;
comboBox = new TQComboBox(false, m_listView->viewport() );
@@ -106,7 +106,7 @@ void ParentItem::paintCell(TQPainter *p, const TQColorGroup &cg,
if ( !p )
return;
- KListViewItem::paintCell( p, cg, column, width, align );
+ TDEListViewItem::paintCell( p, cg, column, width, align );
if (column == 0)
{
p->setPen(TQPen(TQColor(0,0,0)));
@@ -144,14 +144,14 @@ void ParentItem::showList(bool show)
//Generic attribute item
AttributeItem::AttributeItem(TQListViewItem* parent, const TQString &title, const TQString& title2)
-: KListViewItem(parent, title, title2)
+: TDEListViewItem(parent, title, title2)
{
lin = 0L;
lin2 = 0L;
}
AttributeItem::AttributeItem(EditableTree* listView, TQListViewItem* parent, const TQString &title, const TQString& title2)
-: KListViewItem(parent, title, title2)
+: TDEListViewItem(parent, title, title2)
{
m_listView = listView;
lin = new TQLineEdit( m_listView->viewport() );
@@ -162,7 +162,7 @@ AttributeItem::AttributeItem(EditableTree* listView, TQListViewItem* parent, con
}
AttributeItem::AttributeItem(EditableTree *listView, const TQString& title, const TQString& title2)
-: KListViewItem(listView, title, title2)
+: TDEListViewItem(listView, title, title2)
{
m_listView = listView;
lin = new TQLineEdit( m_listView->viewport() );
@@ -176,7 +176,7 @@ AttributeItem::AttributeItem(EditableTree *listView, const TQString& title, cons
AttributeItem::AttributeItem(EditableTree *listView, const TQString& title, const TQString& title2,
TQListViewItem* after)
-: KListViewItem(listView, after, title, title2)
+: TDEListViewItem(listView, after, title, title2)
{
m_listView = listView;
lin = new TQLineEdit( m_listView->viewport() );
@@ -199,7 +199,7 @@ void AttributeItem::paintCell(TQPainter *p, const TQColorGroup &cg,
{
if ( !p )
return;
- KListViewItem::paintCell( p, cg, column, width, align );
+ TDEListViewItem::paintCell( p, cg, column, width, align );
if (column == 0)
{
p->setPen(TQPen(TQColor(0,0,0)));
diff --git a/quanta/treeviews/tagattributeitems.h b/quanta/treeviews/tagattributeitems.h
index 81f5cb43..9b06f7dd 100644
--- a/quanta/treeviews/tagattributeitems.h
+++ b/quanta/treeviews/tagattributeitems.h
@@ -19,8 +19,8 @@
class KColorCombo;
class KURLRequester;
-class KListView;
-class KListViewItem;
+class TDEListView;
+class TDEListViewItem;
class TQListViewItem;
class TQLineEdit;
class TQComboBox;
@@ -31,12 +31,12 @@ class TagAttributeTree;
class Node;
class StyleEditor;
-class TopLevelItem : public KListViewItem
+class TopLevelItem : public TDEListViewItem
{
public:
- TopLevelItem(KListView *parent, const TQString& title);
- TopLevelItem(KListView *parent, TQListViewItem* after, const TQString& title);
+ TopLevelItem(TDEListView *parent, const TQString& title);
+ TopLevelItem(TDEListView *parent, TQListViewItem* after, const TQString& title);
virtual ~TopLevelItem();
@@ -46,7 +46,7 @@ protected:
int column, int width, int align );
};
-class ParentItem : public KListViewItem
+class ParentItem : public TDEListViewItem
{
public:
@@ -68,7 +68,7 @@ private:
TagAttributeTree *m_listView;
};
-class AttributeItem : public KListViewItem
+class AttributeItem : public TDEListViewItem
{
public:
AttributeItem(TQListViewItem* parent, const TQString& title, const TQString& title2);
diff --git a/quanta/treeviews/tagattributetree.cpp b/quanta/treeviews/tagattributetree.cpp
index abf4fb37..a125405e 100644
--- a/quanta/treeviews/tagattributetree.cpp
+++ b/quanta/treeviews/tagattributetree.cpp
@@ -51,7 +51,7 @@
#include "viewmanager.h"
EditableTree::EditableTree(TQWidget *parent, const char *name)
-: KListView(parent, name)
+: TDEListView(parent, name)
{
m_editable = true;
}
@@ -69,7 +69,7 @@ void EditableTree::setCurrentItem( TQListViewItem *item)
if ( dynamic_cast<AttributeItem*>(it) )
static_cast<AttributeItem*>(it)->hideEditor();
- KListView::setCurrentItem(item);
+ TDEListView::setCurrentItem(item);
it = currentItem();
if ( dynamic_cast<AttributeItem*>(it) )
static_cast<AttributeItem*>(it)->showEditor();
@@ -120,7 +120,7 @@ bool DualEditableTree::eventFilter(TQObject *object, TQEvent *event)
AttributeItem *it = dynamic_cast<AttributeItem*>(currentItem());
AttributeItem *up = 0L, *down = 0L;
if(!it)
- return KListView::eventFilter(object, event);
+ return TDEListView::eventFilter(object, event);
if(currentItem()->itemAbove())
up = dynamic_cast<AttributeItem*>(currentItem()->itemAbove());
if(currentItem()->itemBelow())
@@ -168,12 +168,12 @@ bool DualEditableTree::eventFilter(TQObject *object, TQEvent *event)
break;
}
}
- return KListView::eventFilter(object, event);;
+ return TDEListView::eventFilter(object, event);;
}
void DualEditableTree::resizeEvent(TQResizeEvent *ev)
{
- KListView::resizeEvent(ev);
+ TDEListView::resizeEvent(ev);
if(!currentItem()) return;
AttributeItem *item = dynamic_cast<AttributeItem*>(currentItem());
if(item)
@@ -194,7 +194,7 @@ void DualEditableTree::setCurrentItem(TQListViewItem *item)
static_cast<AttributeItem*>(it)->hideEditor(1);
}
- KListView::setCurrentItem(item);
+ TDEListView::setCurrentItem(item);
it = currentItem();
if ( dynamic_cast<AttributeItem*>(it) )
static_cast<AttributeItem*>(it)->showEditor(curCol);
@@ -411,7 +411,7 @@ void TagAttributeTree::editorContentChanged()
if ( dynamic_cast<AttributeItem*>(it) )
static_cast<AttributeItem*>(it)->hideEditor();
- KListView::setCurrentItem(item);
+ TDEListView::setCurrentItem(item);
it = currentItem();
if ( dynamic_cast<AttributeItem*>(it) )
static_cast<AttributeItem*>(it)->showEditor();
diff --git a/quanta/treeviews/tagattributetree.h b/quanta/treeviews/tagattributetree.h
index d91135da..c3e7decf 100644
--- a/quanta/treeviews/tagattributetree.h
+++ b/quanta/treeviews/tagattributetree.h
@@ -23,7 +23,7 @@
//app includes
-class KListView;
+class TDEListView;
class TQListViewItem;
class ParentItem;
class Node;
@@ -31,7 +31,7 @@ class TQLabel;
class KPushButton;
class TQGridLayout;
-class EditableTree : public KListView {
+class EditableTree : public TDEListView {
Q_OBJECT
diff --git a/quanta/treeviews/templatestreeview.cpp b/quanta/treeviews/templatestreeview.cpp
index a9aa75d0..f6bbce38 100644
--- a/quanta/treeviews/templatestreeview.cpp
+++ b/quanta/treeviews/templatestreeview.cpp
@@ -129,7 +129,7 @@ KFileTreeViewItem* TemplatesTreeBranch::createTreeViewItem(KFileTreeViewItem *pa
-TemplatesTreeView::TemplatesTreeView(KMainWindow *parent, const char *name )
+TemplatesTreeView::TemplatesTreeView(TDEMainWindow *parent, const char *name )
: BaseTreeView(parent,name), m_projectDir(0), m_mainWindow(parent)
{
typeToi18n["text/all"] = i18n("Text Snippet");
@@ -141,7 +141,7 @@ TemplatesTreeView::TemplatesTreeView(KMainWindow *parent, const char *name )
i18nToType[i18n("Document Template")] = "template/all";
i18nToType[i18n("Site Template")] = "site/all";
- m_fileMenu = new KPopupMenu(this);
+ m_fileMenu = new TDEPopupMenu(this);
m_openId = m_fileMenu->insertItem(i18n("Open"), this ,TQT_SLOT(slotInsert()));
m_fileMenu->insertItem(SmallIcon("fileopen"), i18n("&Open"), this ,TQT_SLOT(slotOpen()));
@@ -155,7 +155,7 @@ TemplatesTreeView::TemplatesTreeView(KMainWindow *parent, const char *name )
m_fileMenu->insertSeparator();
m_fileMenu->insertItem(SmallIcon("info"), i18n("&Properties"), this, TQT_SLOT(slotProperties()));
- m_folderMenu = new KPopupMenu(this);
+ m_folderMenu = new TDEPopupMenu(this);
m_folderMenu->insertItem(SmallIcon("folder_new"), i18n("&New Folder..."), this, TQT_SLOT(slotNewDir()));
m_folderMenu->insertItem(SmallIcon("mail_send"), i18n("Send in E&mail..."), this, TQT_SLOT(slotSendInMail()));
@@ -170,7 +170,7 @@ TemplatesTreeView::TemplatesTreeView(KMainWindow *parent, const char *name )
m_folderMenu->insertItem(SmallIcon("info"), i18n("&Properties"), this, TQT_SLOT(slotProperties()));
m_reloadMenuId = m_folderMenu->insertItem(SmallIcon("revert"), i18n("&Reload"), this, TQT_SLOT(slotReload()));
- m_emptyAreaMenu = new KPopupMenu(this);
+ m_emptyAreaMenu = new TDEPopupMenu(this);
m_emptyAreaMenu->insertItem(SmallIcon("network"), i18n("&Download Template..."), this, TQT_SIGNAL(downloadTemplate()));
addColumn(i18n("Templates"), -1);
@@ -182,8 +182,8 @@ TemplatesTreeView::TemplatesTreeView(KMainWindow *parent, const char *name )
localURL.setPath(locateLocal("data", resourceDir + "templates/"));
newBranch(localURL);
- connect(this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)),
- this, TQT_SLOT(slotMenu(KListView*, TQListViewItem*, const TQPoint&)));
+ connect(this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)),
+ this, TQT_SLOT(slotMenu(TDEListView*, TQListViewItem*, const TQPoint&)));
connect(this, TQT_SIGNAL(open(TQListViewItem *)),
this, TQT_SLOT(slotSelectFile(TQListViewItem *)));
@@ -251,7 +251,7 @@ void TemplatesTreeView::slotInsertInDocument()
}
-void TemplatesTreeView::slotMenu(KListView*, TQListViewItem *item, const TQPoint &point)
+void TemplatesTreeView::slotMenu(TDEListView*, TQListViewItem *item, const TQPoint &point)
{
if (!item)
{
@@ -641,7 +641,7 @@ void TemplatesTreeView::slotProperties()
uint j = 1;
m_quantaProperties->actionCombo->insertItem(i18n(NONE));
TQString tmpStr;
- KActionCollection *ac = m_mainWindow->actionCollection();
+ TDEActionCollection *ac = m_mainWindow->actionCollection();
uint acCount = ac->count();
for (uint i = 0; i < acCount; i++)
{
@@ -900,7 +900,7 @@ KURL TemplatesTreeView::filterTemplate()
config.setGroup("Filtering");
name = config.readEntry("Action", NONE);
TagAction *filterAction = 0L;
- KActionCollection *ac = m_mainWindow->actionCollection();
+ TDEActionCollection *ac = m_mainWindow->actionCollection();
uint acCount = ac->count();
TQString tmpStr;
for (uint i = 0; i < acCount; i++)
diff --git a/quanta/treeviews/templatestreeview.h b/quanta/treeviews/templatestreeview.h
index 075c9ba7..22fd3535 100644
--- a/quanta/treeviews/templatestreeview.h
+++ b/quanta/treeviews/templatestreeview.h
@@ -22,7 +22,7 @@
//forward declarations
class QuantaPropertiesPage;
-class KMainWindow;
+class TDEMainWindow;
class TemplatesTreeBranch : public BaseTreeBranch {
@@ -49,7 +49,7 @@ public:
* the parameter are only used at the first call to create the class
*
*/
- static TemplatesTreeView* const ref(KMainWindow *parent = 0L, const char *name = 0L)
+ static TemplatesTreeView* const ref(TDEMainWindow *parent = 0L, const char *name = 0L)
{
static TemplatesTreeView *m_ref;
if (!m_ref) m_ref = new TemplatesTreeView (parent, name);
@@ -74,14 +74,14 @@ public slots:
* displays the RBM
*
*
- * @param listView KListView where the event comes from
+ * @param listView TDEListView where the event comes from
*
* @param item TQListViewItem where the mousepointer is hovering
*
* @param point TQPoint coordinates of the event
*
*/
- void slotMenu(KListView *listView, TQListViewItem *item, const TQPoint &point);
+ void slotMenu(TDEListView *listView, TQListViewItem *item, const TQPoint &point);
/** Creates a new document based in the selected template. */
void slotNewDocument();
/** Insert the template as text, image, new document. */
@@ -119,7 +119,7 @@ private:
* If you need the class use TemplatesTreeView::ref() for
* construction and reference
*/
- TemplatesTreeView(KMainWindow *parent, const char *name = 0L);
+ TemplatesTreeView(TDEMainWindow *parent, const char *name = 0L);
/** Filters the template through and action, and returns the modified/filtered
template file */
KURL filterTemplate();
@@ -135,10 +135,10 @@ private:
TQString m_projectName;
KURL localURL;
KURL globalURL;
- KPopupMenu *m_fileMenu;
- KPopupMenu *m_folderMenu;
- KPopupMenu *m_emptyAreaMenu;
- KMainWindow *m_mainWindow;
+ TDEPopupMenu *m_fileMenu;
+ TDEPopupMenu *m_folderMenu;
+ TDEPopupMenu *m_emptyAreaMenu;
+ TDEMainWindow *m_mainWindow;
DirInfo m_dirInfo;
DirInfo m_parentDirInfo;
int m_insertFileInProject;
diff --git a/quanta/treeviews/uploadtreefile.cpp b/quanta/treeviews/uploadtreefile.cpp
index 5257117e..25ae4e98 100644
--- a/quanta/treeviews/uploadtreefile.cpp
+++ b/quanta/treeviews/uploadtreefile.cpp
@@ -28,7 +28,7 @@
#include "resource.h"
UploadTreeFile::UploadTreeFile( UploadTreeFolder *parent, const KURL &a_url, const KFileItem &a_fileItem)
- : KListViewItem( parent, a_url.fileName(), "", TQString("%1").arg( (long int)a_fileItem.size() ), a_fileItem.timeString())
+ : TDEListViewItem( parent, a_url.fileName(), "", TQString("%1").arg( (long int)a_fileItem.size() ), a_fileItem.timeString())
{
m_url = a_url;
isDir = false;
@@ -41,7 +41,7 @@ UploadTreeFile::UploadTreeFile( UploadTreeFolder *parent, const KURL &a_url, con
}
UploadTreeFile::UploadTreeFile( TQListView *parent, const KURL &a_url, const KFileItem &a_fileItem)
- : KListViewItem( parent, a_url.fileName(), "", TQString("%1").arg( (long int)a_fileItem.size() ), a_fileItem.timeString())
+ : TDEListViewItem( parent, a_url.fileName(), "", TQString("%1").arg( (long int)a_fileItem.size() ), a_fileItem.timeString())
{
m_url = a_url;
isDir = false;
diff --git a/quanta/treeviews/uploadtreefile.h b/quanta/treeviews/uploadtreefile.h
index 736a3a88..aaa31b21 100644
--- a/quanta/treeviews/uploadtreefile.h
+++ b/quanta/treeviews/uploadtreefile.h
@@ -26,7 +26,7 @@
class KFileItem;
-class UploadTreeFile : public KListViewItem {
+class UploadTreeFile : public TDEListViewItem {
public:
UploadTreeFile( UploadTreeFolder *parent, const KURL &a_url, const KFileItem &a_fileItem);
UploadTreeFile( TQListView *parent, const KURL &a_url, const KFileItem &a_fileItem);
diff --git a/quanta/treeviews/uploadtreefolder.cpp b/quanta/treeviews/uploadtreefolder.cpp
index 123eaf35..ea933592 100644
--- a/quanta/treeviews/uploadtreefolder.cpp
+++ b/quanta/treeviews/uploadtreefolder.cpp
@@ -28,7 +28,7 @@
#include "resource.h"
UploadTreeFolder::UploadTreeFolder(const KURL &a_url, UploadTreeFolder * parent, const char * name )
- : KListViewItem( parent, name, "", "", "" )
+ : TDEListViewItem( parent, name, "", "", "" )
{
parentFolder = parent;
m_url = a_url;
@@ -41,7 +41,7 @@ UploadTreeFolder::UploadTreeFolder(const KURL &a_url, UploadTreeFolder * parent,
}
UploadTreeFolder::UploadTreeFolder(const KURL &a_url, TQListView * parent, const char * name )
- : KListViewItem( parent, name, "", "", "" )
+ : TDEListViewItem( parent, name, "", "", "" )
{
parentFolder = 0L;
m_url = a_url;
diff --git a/quanta/treeviews/uploadtreefolder.h b/quanta/treeviews/uploadtreefolder.h
index d6959ab3..96b45771 100644
--- a/quanta/treeviews/uploadtreefolder.h
+++ b/quanta/treeviews/uploadtreefolder.h
@@ -30,7 +30,7 @@
class KURL;
-class UploadTreeFolder : public KListViewItem {
+class UploadTreeFolder : public TDEListViewItem {
public:
UploadTreeFolder( const KURL &a_url, TQListView * parent, const char * name);
UploadTreeFolder( const KURL &a_url, UploadTreeFolder * parent, const char * name );
diff --git a/quanta/treeviews/uploadtreeview.cpp b/quanta/treeviews/uploadtreeview.cpp
index 4c5af524..f45681ad 100644
--- a/quanta/treeviews/uploadtreeview.cpp
+++ b/quanta/treeviews/uploadtreeview.cpp
@@ -24,7 +24,7 @@
#include "quantacommon.h"
UploadTreeView::UploadTreeView( TQWidget *parent, const char *name ) :
- KListView(parent, name)
+ TDEListView(parent, name)
{
setRootIsDecorated( true );
setSorting( 0 );
diff --git a/quanta/treeviews/uploadtreeview.h b/quanta/treeviews/uploadtreeview.h
index 8d9edfbb..f8a58e80 100644
--- a/quanta/treeviews/uploadtreeview.h
+++ b/quanta/treeviews/uploadtreeview.h
@@ -29,7 +29,7 @@ class KFileItem;
*@author George Vilches & Andras Mantia
*/
-class UploadTreeView : public KListView {
+class UploadTreeView : public TDEListView {
Q_OBJECT
public: