Even though the last alpha was .91 this one is going to be 82 as I'd like to have...
[kdevelopdvcssupport.git] / plugins / projectmanagerview / projectmanagerview.h
blob19b362642f59e673b5330efc18b9acc159c76297
1 /* This file is part of KDevelop
2 Copyright 2005 Roberto Raggi <roberto@kdevelop.org>
3 Copyright 2007 Andreas Pakulat <apaku@gmx.de>
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
21 #ifndef KDEVPROJECTMANAGERVIEW_H
22 #define KDEVPROJECTMANAGERVIEW_H
24 #include <QtGui/QWidget>
26 namespace KDevelop
28 class ProjectBaseItem;
31 class ProjectManagerViewPlugin;
33 class ProjectManagerView: public QWidget
35 Q_OBJECT
36 public:
37 ProjectManagerView( ProjectManagerViewPlugin *plugin, QWidget *parent );
38 virtual ~ProjectManagerView();
40 ProjectManagerViewPlugin *plugin() const;
42 QList<KDevelop::ProjectBaseItem*> selectedItems() const;
43 private slots:
44 void selectionChanged();
45 void switchDetailView();
46 void locateCurrentDocument();
47 void updateSyncAction();
48 private:
49 Q_PRIVATE_SLOT( d, void openUrl( const KUrl& ) )
50 Q_PRIVATE_SLOT( d, void fileCreated( const QString &fileName ) )
51 Q_PRIVATE_SLOT( d, void fileDirty( const QString &fileName ) )
52 Q_PRIVATE_SLOT( d, void fileDeleted( const QString &fileName ) )
53 // Q_PRIVATE_SLOT( d, void filtersChanged() )
54 class ProjectManagerPrivate* const d;
55 QAction* m_syncAction;
58 #endif // KDEVPROJECTMANAGER_H