ui: Layout template specializations vertically

* use closed arrow for template specialization edges
* no specialization edges in call graph
This commit is contained in:
Eberhard Graether
2018-04-05 21:48:45 +02:00
parent e1a7141352
commit f79e50d529
7 changed files with 31 additions and 9 deletions
+3
View File
@@ -36,6 +36,9 @@ public:
static int typeToInt(EdgeType type);
static EdgeType intToType(int value);
static const TypeMask LAYOUT_VERTICAL = EDGE_INHERITANCE | EDGE_OVERRIDE | EDGE_TEMPLATE_SPECIALIZATION |
EDGE_TEMPLATE_MEMBER_SPECIALIZATION;
Edge(Id id, EdgeType type, Node* from, Node* to);
Edge(const Edge& other, Node* from, Node* to);
virtual ~Edge();
+2 -2
View File
@@ -1080,7 +1080,7 @@ std::shared_ptr<Graph> PersistentStorage::getGraphForTrail(
m_sqliteIndexStorage.getEdgesBySourceIds(nodeIdsToProcess) :
m_sqliteIndexStorage.getEdgesByTargetIds(nodeIdsToProcess);
if (trailType & (Edge::EDGE_OVERRIDE | Edge::EDGE_INHERITANCE))
if (trailType & Edge::LAYOUT_VERTICAL)
{
utility::append(edges,
forward ?
@@ -1095,7 +1095,7 @@ std::shared_ptr<Graph> PersistentStorage::getGraphForTrail(
{
if (Edge::intToType(edge.type) & trailType)
{
bool isForward = forward == !(Edge::intToType(edge.type) & (Edge::EDGE_OVERRIDE | Edge::EDGE_INHERITANCE));
bool isForward = forward == !(Edge::intToType(edge.type) & Edge::LAYOUT_VERTICAL);
const Id nodeId = isForward ? edge.targetNodeId : edge.sourceNodeId;
const Id otherNodeId = isForward ? edge.sourceNodeId : edge.targetNodeId;