KDevelop API Documentation

filelist_widget.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Jens Dagerbo                                    *
00003  *   jens.dagerbo@swipnet.se                                               *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  ***************************************************************************/
00011 
00012 #ifndef __FILELIST_WIDGET_H__
00013 #define __FILELIST_WIDGET_H__
00014 
00015 
00016 #include <klistview.h>
00017 #include <kurl.h>
00018 #include <qstring.h>
00019 #include <qtooltip.h>
00020 
00021 #include "filelist_part.h"
00022          
00023 class KDevProject;
00024 class FileListItem;
00025 //class FileListPart;
00026 
00027 namespace KParts { class Part; }
00028 
00029 class FileListWidget : public KListView, public QToolTip
00030 {
00031   Q_OBJECT
00032     
00033 public:
00034           
00035     FileListWidget(FileListPart *part);
00036     ~FileListWidget();
00037     
00038 protected:
00039     void maybeTip( QPoint const & );
00040 
00041 private slots:
00042     void partAdded(KParts::Part*);
00043     void partRemoved();
00044     void activePartChanged(KParts::Part*);
00045     void itemClicked( QListViewItem * );
00046     void popupMenu( QListViewItem * , const QPoint & , int );
00047     void closeSelectedFiles();
00048     void saveSelectedFiles();
00049     void reloadSelectedFiles();
00050     void documentChangedState( const KURL &, DocumentState );
00051     void refreshFileList();
00052 
00053 private:
00054     KURL::List getSelectedURLs();
00055     FileListItem * itemForURL( KURL const & url );
00056 
00057     FileListPart * _part;
00058 
00059 };
00060 
00061 
00062 #endif
00063 
00064 // kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:57 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003