1
/***************************************************************************
2
* Copyright (C) 2004 by Jens Dagerbo *
3
* jens.dagerbo@swipnet.se *
4
* Copyright (C) 2005 by Jens Herden *
7
* This program is free software; you can redistribute it and/or modify *
8
* it under the terms of the GNU General Public License as published by *
9
* the Free Software Foundation; either version 2 of the License, or *
10
* (at your option) any later version. *
12
***************************************************************************/
14
#ifndef __FILELIST_WIDGET_H__
15
#define __FILELIST_WIDGET_H__
18
#include <klistview.h>
20
#include <kdevpartcontroller.h> // for DocumentState
26
#include "projectviewpart.h"
31
namespace KParts { class Part; }
33
class FileListWidget : public KListView, public QToolTip
39
FileListWidget(ProjectviewPart *part, QWidget *parent=0);
43
void maybeTip( QPoint const & );
46
// void partAdded(KParts::Part*);
47
// void partRemoved();
48
void activePartChanged(KParts::Part*);
49
void itemClicked( QListViewItem * );
50
void popupMenu( QListViewItem * , const QPoint & , int );
51
void closeSelectedFiles();
52
void saveSelectedFiles();
53
void reloadSelectedFiles();
54
void documentChangedState( const KURL &, DocumentState );
55
void refreshFileList();
56
void startRefreshTimer();
59
KURL::List getSelectedURLs();
60
FileListItem * itemForURL( KURL const & url );
62
QTimer m_refreshTimer;
63
ProjectviewPart * _part;
70
// kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;