• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

language/duchain

abstractdeclarationnavigationcontext.h

00001 /*
00002    Copyright 2007 David Nolden <david.nolden.kdevelop@art-master.de>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef ABSTRACTDECLARATIONNAVIGATIONCONTEXT_H
00020 #define ABSTRACTDECLARATIONNAVIGATIONCONTEXT_H
00021 
00022 #include "abstractnavigationcontext.h"
00023 #include "../duchainpointer.h"
00024 #include "../types/structuretype.h"
00025 #include <language/duchain/declaration.h>
00026 
00027 namespace KDevelop {
00028 
00029 class KDEVPLATFORMLANGUAGE_EXPORT AbstractDeclarationNavigationContext : public AbstractNavigationContext
00030 {
00031   public:
00032     AbstractDeclarationNavigationContext( DeclarationPointer decl, KDevelop::TopDUContextPointer topContext, AbstractNavigationContext* previousContext = 0 );
00033 
00034     virtual QString name() const;
00035     virtual QString html(bool shorten = false);
00036 
00037     DeclarationPointer declaration() const;
00038     
00041     virtual NavigationContextPointer executeKeyAction(QString key);
00042 
00043   protected:
00044     DeclarationPointer m_declaration;
00045 
00047     virtual QualifiedIdentifier prettyQualifiedIdentifier(DeclarationPointer decl) const;
00049     Identifier prettyIdentifier(DeclarationPointer decl) const;
00050     
00051     static QString stringFromAccess(Declaration::AccessPolicy access);
00052     static QString stringFromAccess(DeclarationPointer decl);
00053     QString declarationName( DeclarationPointer decl ) const;
00054     static QStringList declarationDetails(DeclarationPointer decl);
00055 
00059     virtual AbstractType::Ptr typeToShow(AbstractType::Ptr type);
00060     
00062     virtual void htmlFunction();
00064     virtual void htmlAdditionalNavigation();
00065 
00066     virtual void htmlClass();
00067     virtual void htmlIdentifiedType(AbstractType::Ptr type, const IdentifiedType* idType);
00068 
00070     virtual void eventuallyMakeTypeLinks( KDevelop::AbstractType::Ptr type );
00071 
00073     void createFullBackwardSearchLink(QString string);
00074     
00075     bool m_fullBackwardSearch;
00076 };
00077 
00078 }
00079 
00080 #endif

language/duchain

Skip menu "language/duchain"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal