language/duchain
abstractincludenavigationcontext.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KDEV_ABSTRACTINCLUDENAVIGATIONCONTEXT_H
00020 #define KDEV_ABSTRACTINCLUDENAVIGATIONCONTEXT_H
00021
00022 #include "abstractnavigationcontext.h"
00023 #include "../../util/includeitem.h"
00024 #include "../../duchain/parsingenvironment.h"
00025 #include "../../languageexport.h"
00026
00027 namespace KDevelop {
00028
00049 class KDEVPLATFORMLANGUAGE_EXPORT AbstractIncludeNavigationContext : public AbstractNavigationContext {
00050 public:
00051 AbstractIncludeNavigationContext(const IncludeItem& item, TopDUContextPointer topContext,
00052 const ParsingEnvironmentType& type);
00053 virtual QString html(bool shorten);
00054 virtual QString name() const;
00055
00056 protected:
00060 virtual void getFileInfo(KDevelop::TopDUContext* duchain);
00061
00062 private:
00064 ParsingEnvironmentType m_type;
00066 void addDeclarationsFromContext(KDevelop::DUContext* ctx, bool& first, QString indent = "");
00067 IncludeItem m_item;
00068 };
00069
00070 }
00071
00072 #endif // KDEV_ABSTRACTINCLUDENAVIGATIONCONTEXT_H