From e9ae80694875f869892f13f4fcaf1170a00dea41 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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 --- quanta/treeviews/filestreeview.h | 81 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 quanta/treeviews/filestreeview.h (limited to 'quanta/treeviews/filestreeview.h') 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 + (C) 2001-2004 Andras Mantia + ***************************************************************************/ + +/*************************************************************************** + * * + * 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 + +// 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 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 -- cgit v1.2.1