Even though the last alpha was .91 this one is going to be 82 as I'd like to have...
[kdevelopdvcssupport.git] / plugins / duchainviewer / duchaintree.h
blob18214d0367dba67f49f63bb0bfcce78a0c87eee5
1 /*
2 * KDevelop DUChain viewer
4 * Copyright (c) 2007 Hamish Rodda <rodda@kde.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Library General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #ifndef DUCHAINTREE_H
23 #define DUCHAINTREE_H
25 #include <QtGui/QTreeView>
27 #include <language/duchain/duchainbase.h>
28 #include <language/duchain/duchainobserver.h>
30 class DUChainViewPlugin;
32 namespace KDevelop {
33 class TopDUContext;
34 class IDocument;
37 class DUChainTree : public QTreeView
39 Q_OBJECT
41 public:
42 DUChainTree(QWidget* parent, DUChainViewPlugin* plugin);
43 virtual ~DUChainTree();
45 class DUChainModel* model();
47 private Q_SLOTS:
48 void contextActivated(const QModelIndex& index);
50 private:
51 DUChainViewPlugin* mplugin;
54 #endif
56 // kate: space-indent on; indent-width 2; tab-width: 4; replace-tabs on; auto-insert-doxygen on