diff options
Diffstat (limited to 'quanta/treeviews/filestreeview.h')
-rw-r--r-- | quanta/treeviews/filestreeview.h | 81 |
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 |