You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.5 KiB
83 lines
2.5 KiB
/***************************************************************************
|
|
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 TDEPopupMenu;
|
|
class KURL;
|
|
|
|
|
|
class FilesTreeView : public BaseTreeView {
|
|
TQ_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(TDEListView *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);
|
|
|
|
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;
|
|
int m_insertFolderInProject;
|
|
// config
|
|
TDEConfig *m_config;
|
|
|
|
private:
|
|
int m_menuTop;
|
|
int m_menuChangeAlias;
|
|
int m_menuFolderRename;
|
|
int m_menuDel;
|
|
int m_reloadMenuId;
|
|
};
|
|
|
|
#endif
|