diff options
author | Przemyslaw Gorszkowski <pgorszkowski@gmail.com> | 2013-08-13 22:58:38 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2013-10-01 13:12:04 +0200 |
commit | a3eaed4c51af007e4aea5d1b1f24fbf8ba38c4cb (patch) | |
tree | 8fd4082a9b804faa42822626d905484eabf8c040 /src/plugins/cppeditor/cppeditorconstants.h | |
parent | 8c79d5bc23e4b555625dfa368ca9f74e6d14540b (diff) |
CppEditor: introduce include hierarchy
Based on type hierarchy.
Added to context menu ('Open Include Hierarchy')
Shortcut(Ctrl+Shift+I)
'Include Hierarchy' contains:
FileName for which 'Include Hierarchy' is done
Includes(which files are included by current file - tree hierarchy)
Included by(which files include current file - tree hierarchy)
It is possible to open/goto each file by clicking on specific item.
Additionally for 'Included by' files it goes to the line where is include
directive for current file.
Change-Id: I549b1ed64e4c9f6955f60d00efb12950a3259f81
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/cppeditor/cppeditorconstants.h')
-rw-r--r-- | src/plugins/cppeditor/cppeditorconstants.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cppeditorconstants.h b/src/plugins/cppeditor/cppeditorconstants.h index cf9d607c4e..ae87b13ead 100644 --- a/src/plugins/cppeditor/cppeditorconstants.h +++ b/src/plugins/cppeditor/cppeditorconstants.h @@ -48,6 +48,10 @@ const int TYPE_HIERARCHY_PRIORITY = 700; const char TYPE_HIERARCHY_ID[] = "CppEditor.TypeHierarchy"; const char OPEN_TYPE_HIERARCHY[] = "CppEditor.OpenTypeHierarchy"; +const int INCLUDE_HIERARCHY_PRIORITY = 800; +const char INCLUDE_HIERARCHY_ID[] = "CppEditor.IncludeHierarchy"; +const char OPEN_INCLUDE_HIERARCHY[] = "CppEditor.OpenIncludeHierarchy"; + const char C_SOURCE_MIMETYPE[] = "text/x-csrc"; const char C_HEADER_MIMETYPE[] = "text/x-chdr"; const char CPP_SOURCE_MIMETYPE[] = "text/x-c++src"; |