summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews/filestreeview.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite9ae80694875f869892f13f4fcaf1170a00dea41 (patch)
treeaa2f8d8a217e2d376224c8d46b7397b68d35de2d /quanta/treeviews/filestreeview.h
downloadtdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.tar.gz
tdewebdev-e9ae80694875f869892f13f4fcaf1170a00dea41.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/treeviews/filestreeview.h')
-rw-r--r--quanta/treeviews/filestreeview.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/quanta/treeviews/filestreeview.h b/quanta/treeviews/filestreeview.h
new file mode 100644
index 00000000..a77ba3de
--- /dev/null
+++ b/quanta/treeviews/filestreeview.h
@@ -0,0 +1,81 @@
+/***************************************************************************
+ filestreeview.h - description
+ -------------------
+ begin : Thu Jun 1 2000
+ copyright : (C) 2000 by Dmitry Poplavsky & Alexander Yakovlev & Eric Laffoon <pdima@users.sourceforge.net,yshurik@linuxfan.com,sequitur@easystreet.com>
+ (C) 2001-2004 Andras Mantia <amantia@kde.org>
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef FILESTREEVIEW_H
+#define FILESTREEVIEW_H
+
+//qt includes
+#include <qmap.h>
+
+// quanta includes
+#include "basetreeview.h"
+
+//foward declarations
+class QListViewItem;
+class QPoint;
+class KPopupMenu;
+class KURL;
+
+
+class FilesTreeView : public BaseTreeView {
+ Q_OBJECT
+
+public:
+ FilesTreeView(KConfig *config, QWidget *parent, const char *name = 0L);
+ virtual ~FilesTreeView();
+ KURL::List topURLList;
+ QMap<QString, QString> topURLAliases;
+ void plugCVSMenu();
+
+protected slots:
+ /**
+ opens dialog to choose a url for a new branch
+ */
+ void slotNewTopFolder();
+
+ virtual void slotMenu(KListView *listView, QListViewItem *item, const QPoint &point);
+ /**
+ creates a new branch from the current url
+ */
+ void slotAddToTop();
+ /**
+ Changes the alias (alternative name) for a top folder
+ */
+ void slotChangeAlias();
+
+protected:
+ virtual KFileTreeBranch* newBranch(const KURL& url);
+
+ KPopupMenu *m_fileMenu;
+ KPopupMenu *m_folderMenu;
+ KPopupMenu *m_emptyMenu;
+ int m_menuClose; ///< remembers the menu entry
+ int m_menuPasteFolder; ///< remembers the menu entry
+ int m_insertFileInProject;
+ int m_insertFolderInProject;
+ // config
+ KConfig *m_config;
+
+private:
+ int m_menuTop;
+ int m_menuChangeAlias;
+ int m_menuFolderRename;
+ int m_menuDel;
+ int m_reloadMenuId;
+};
+
+#endif