2
Copyright 2007 David Nolden <david.nolden.kdevelop@art-master.de>
3
Copyright 2008 Niko Sams <niko.sams@gmail.com>
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 version 2 as published by the Free Software Foundation.
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
Boston, MA 02110-1301, USA.
19
#ifndef DECLARATIONNAVIGATIONCONTEXT_H
20
#define DECLARATIONNAVIGATIONCONTEXT_H
22
#include <language/duchain/navigation/abstractdeclarationnavigationcontext.h>
23
#include <language/duchain/types/abstracttype.h>
28
class DeclarationNavigationContext : public KDevelop::AbstractDeclarationNavigationContext
31
DeclarationNavigationContext(KDevelop::DeclarationPointer decl, KDevelop::TopDUContextPointer topContext, KDevelop::AbstractNavigationContext* previousContext = 0);
34
KDevelop::NavigationContextPointer registerChild(KDevelop::DeclarationPointer declaration);
35
virtual KDevelop::QualifiedIdentifier prettyQualifiedIdentifier( KDevelop::DeclarationPointer decl ) const;
36
virtual void htmlClass();
38
void makeLink( const QString& name, KDevelop::DeclarationPointer declaration, KDevelop::NavigationAction::Type actionType );
40
virtual QString declarationKind(KDevelop::DeclarationPointer decl);