~ubuntu-branches/ubuntu/utopic/kdevelop-php/utopic

« back to all changes in this revision

Viewing changes to duchain/navigation/declarationnavigationcontext.h

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2010-01-17 17:10:22 UTC
  • Revision ID: james.westby@ubuntu.com-20100117171022-q2xlgd9ekewo2ijx
Tags: upstream-1.0.0~beta2
ImportĀ upstreamĀ versionĀ 1.0.0~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   Copyright 2007 David Nolden <david.nolden.kdevelop@art-master.de>
 
3
   Copyright 2008 Niko Sams <niko.sams@gmail.com>
 
4
 
 
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.
 
8
 
 
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.
 
13
 
 
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.
 
18
*/
 
19
#ifndef DECLARATIONNAVIGATIONCONTEXT_H
 
20
#define DECLARATIONNAVIGATIONCONTEXT_H
 
21
 
 
22
#include <language/duchain/navigation/abstractdeclarationnavigationcontext.h>
 
23
#include <language/duchain/types/abstracttype.h>
 
24
 
 
25
namespace Php
 
26
{
 
27
 
 
28
class DeclarationNavigationContext : public KDevelop::AbstractDeclarationNavigationContext
 
29
{
 
30
public:
 
31
    DeclarationNavigationContext(KDevelop::DeclarationPointer decl, KDevelop::TopDUContextPointer topContext, KDevelop::AbstractNavigationContext* previousContext = 0);
 
32
 
 
33
protected:
 
34
    KDevelop::NavigationContextPointer registerChild(KDevelop::DeclarationPointer declaration);
 
35
    virtual KDevelop::QualifiedIdentifier prettyQualifiedIdentifier( KDevelop::DeclarationPointer decl ) const;
 
36
    virtual void htmlClass();
 
37
 
 
38
    void makeLink( const QString& name, KDevelop::DeclarationPointer declaration, KDevelop::NavigationAction::Type actionType );
 
39
 
 
40
    virtual QString declarationKind(KDevelop::DeclarationPointer decl);
 
41
};
 
42
 
 
43
}
 
44
 
 
45
#endif