blob: 4cf8930407d82d28b88576d6ad12635533c315d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
/***************************************************************************
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 <tqmap.h>
// quanta includes
#include "basetreeview.h"
//foward declarations
class TQListViewItem;
class TQPoint;
class KPopupMenu;
class KURL;
class FilesTreeView : public BaseTreeView {
Q_OBJECT
public:
FilesTreeView(TDEConfig *config, TQWidget *parent, const char *name = 0L);
virtual ~FilesTreeView();
KURL::List topURLList;
TQMap<TQString, TQString> topURLAliases;
void plugCVSMenu();
protected slots:
/**
opens dialog to choose a url for a new branch
*/
void slotNewTopFolder();
virtual void slotMenu(KListView *listView, TQListViewItem *item, const TQPoint &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
TDEConfig *m_config;
private:
int m_menuTop;
int m_menuChangeAlias;
int m_menuFolderRename;
int m_menuDel;
int m_reloadMenuId;
};
#endif
|