~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to parts/filelist/filelist_widget.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2004 by Jens Dagerbo                                    *
 
3
 *   jens.dagerbo@swipnet.se                                               *
 
4
 *   Copyright (C) 2005 by Jens Herden                                     *
 
5
 *   jens@kdewebdev.org                                                    *
 
6
 *                                                                         *
 
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.                                   *
 
11
 *                                                                         *
 
12
 ***************************************************************************/
 
13
 
 
14
#ifndef __FILELIST_WIDGET_H__
 
15
#define __FILELIST_WIDGET_H__
 
16
 
 
17
 
 
18
#include <klistview.h>
 
19
#include <kurl.h>
 
20
#include <kdevpartcontroller.h> // for DocumentState
 
21
 
 
22
#include <qstring.h>
 
23
#include <qtooltip.h>
 
24
#include <qtimer.h>
 
25
 
 
26
#include "projectviewpart.h"
 
27
                 
 
28
class KDevProject;
 
29
class FileListItem;
 
30
 
 
31
namespace KParts { class Part; }
 
32
 
 
33
class FileListWidget : public KListView, public QToolTip
 
34
{
 
35
  Q_OBJECT
 
36
    
 
37
public:
 
38
                  
 
39
        FileListWidget(ProjectviewPart *part, QWidget *parent=0);
 
40
        ~FileListWidget();
 
41
        
 
42
protected:
 
43
        void maybeTip( QPoint const & );
 
44
 
 
45
private slots:
 
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();
 
57
 
 
58
private:
 
59
        KURL::List getSelectedURLs();
 
60
        FileListItem * itemForURL( KURL const & url );
 
61
 
 
62
        QTimer m_refreshTimer;
 
63
        ProjectviewPart * _part;
 
64
 
 
65
};
 
66
 
 
67
 
 
68
#endif
 
69
 
 
70
// kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;