diff --git a/bin/app/data/color_scheme_template.xml b/bin/app/data/color_scheme_template.xml
index 4da0167f..cb18c96f 100644
--- a/bin/app/data/color_scheme_template.xml
+++ b/bin/app/data/color_scheme_template.xml
@@ -234,7 +234,7 @@
-
+
diff --git a/bin/app/data/color_schemes/bad_rainbow.xml b/bin/app/data/color_schemes/bad_rainbow.xml
index c741ac5e..0cf61a5b 100644
--- a/bin/app/data/color_schemes/bad_rainbow.xml
+++ b/bin/app/data/color_schemes/bad_rainbow.xml
@@ -499,7 +499,7 @@
#4E82F6
#4E82F6
- #666666
+ #666666
diff --git a/bin/app/data/color_schemes/bright.xml b/bin/app/data/color_schemes/bright.xml
index 95adc1ad..556b9d07 100644
--- a/bin/app/data/color_schemes/bright.xml
+++ b/bin/app/data/color_schemes/bright.xml
@@ -467,7 +467,7 @@
#719660
#719660
- #CCC
+ #CCC
diff --git a/bin/app/data/color_schemes/dark.xml b/bin/app/data/color_schemes/dark.xml
index bc77ef45..56257050 100644
--- a/bin/app/data/color_schemes/dark.xml
+++ b/bin/app/data/color_schemes/dark.xml
@@ -470,7 +470,7 @@
#247368
#247368
- #4D4D4D
+ #4D4D4D
diff --git a/docs/documentation/img/edge_aggregation.png b/docs/documentation/img/edge_bundled_edges.png
similarity index 100%
rename from docs/documentation/img/edge_aggregation.png
rename to docs/documentation/img/edge_bundled_edges.png
diff --git a/docs/documentation/index.html b/docs/documentation/index.html
index 295b00eb..4b4b8634 100644
--- a/docs/documentation/index.html
+++ b/docs/documentation/index.html
@@ -354,7 +354,7 @@
- Nodes: All named symbols in your source code will be displayed as different nodes, such as functions, classes or files. Nodes with members (like classes) can be expanded to show all their contents, the number at the expansion arrow shows how many members are hidden. Clicking a node will activate it and update all the views to the new selection. Dragging a node can be used to change its position.
- - Edges: The relationships between the symbols are displayed as different edges, such as type use, function call or file include. Sometimes edges get bundled together and are displayed as an aggregation edge that shows a number of how many edges it contains. Clicking an edge will highlight its source location in the code view.
+ - Edges: The relationships between the symbols are displayed as different edges, such as type use, function call or file include. Sometimes edges get bundled together and are displayed as bundled edges that show a number of how many edges are contained. Clicking an edge will highlight its source location in the code view.
@@ -1565,13 +1565,13 @@
| Method Override |  |
| Template Specialization & Template Argument Use |  |
| Template Member Specialization |  |
-
| Aggregation: Bundles multiple edges between the child nodes of the 2 nodes. The thickness gives an impression of how many edges are bundled. Hover the edge to get the number of bundled edges. |  |
+
| Bundled Edges: Bundles multiple edges between the child nodes of the 2 nodes. The thickness gives an impression of how many edges are bundled. Hover the edge to get the number of bundled edges. |  |
Interactions:
- Click an edge to see its location in the Code View.
- - Click an aggregation edge to activate all its corresponding edges.
+ - Click a bundled edges to activate all its corresponding edges.
- Hover an edge to see a tooltip that displays the edge’s type.
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
index 1be99114..38d225b7 100644
--- a/src/lib/CMakeLists.txt
+++ b/src/lib/CMakeLists.txt
@@ -147,8 +147,8 @@ add_files(
data/graph/token_component/TokenComponentAbstraction.h
data/graph/token_component/TokenComponentAccess.cpp
data/graph/token_component/TokenComponentAccess.h
- data/graph/token_component/TokenComponentAggregation.cpp
- data/graph/token_component/TokenComponentAggregation.h
+ data/graph/token_component/TokenComponentBundledEdges.cpp
+ data/graph/token_component/TokenComponentBundledEdges.h
data/graph/token_component/TokenComponentConst.cpp
data/graph/token_component/TokenComponentConst.h
data/graph/token_component/TokenComponentFilePath.cpp
diff --git a/src/lib/component/controller/ActivationController.cpp b/src/lib/component/controller/ActivationController.cpp
index b3bd2587..a4ddac6f 100644
--- a/src/lib/component/controller/ActivationController.cpp
+++ b/src/lib/component/controller/ActivationController.cpp
@@ -24,12 +24,12 @@ void ActivationController::clear() {}
void ActivationController::handleMessage(MessageActivateEdge* message)
{
- if (message->isAggregation())
+ if (message->isBundledEdges())
{
MessageActivateTokens m(message);
- m.tokenIds = message->aggregationIds;
+ m.tokenIds = message->bundledEdgesIds;
m.setKeepContent(false);
- m.isAggregation = true;
+ m.isBundledEdges = true;
m.dispatchImmediately();
}
else
diff --git a/src/lib/component/controller/BookmarkController.cpp b/src/lib/component/controller/BookmarkController.cpp
index 1ecbd6d6..12ec1397 100644
--- a/src/lib/component/controller/BookmarkController.cpp
+++ b/src/lib/component/controller/BookmarkController.cpp
@@ -209,10 +209,10 @@ void BookmarkController::activateBookmark(const std::shared_ptr
bookma
else
{
MessageActivateEdge activateEdge(
- 0, Edge::EdgeType::EDGE_AGGREGATION, sourceName, targetName);
- for (const Id aggregatedEdgeId: edgeBookmark->getEdgeIds())
+ 0, Edge::EdgeType::EDGE_BUNDLED_EDGES, sourceName, targetName);
+ for (const Id bundledEdgeId: edgeBookmark->getEdgeIds())
{
- activateEdge.aggregationIds.push_back(aggregatedEdgeId);
+ activateEdge.bundledEdgesIds.push_back(bundledEdgeId);
}
activateEdge.dispatch();
}
@@ -318,7 +318,7 @@ void BookmarkController::handleMessage(MessageActivateTokens* message)
Id tabId = message->getSchedulerId();
m_activeEdgeIds[tabId].clear();
- if (message->isEdge || message->isAggregation)
+ if (message->isEdge || message->isBundledEdges)
{
m_activeEdgeIds[tabId] = message->tokenIds;
diff --git a/src/lib/component/controller/CodeController.cpp b/src/lib/component/controller/CodeController.cpp
index b43f2ba1..9266fa49 100644
--- a/src/lib/component/controller/CodeController.cpp
+++ b/src/lib/component/controller/CodeController.cpp
@@ -199,7 +199,7 @@ void CodeController::handleMessage(MessageActivateTokens* message)
params.clearSnippets = true;
Id declarationId = 0; // 0 means that no token is found.
- if (!message->isAggregation)
+ if (!message->isBundledEdges)
{
std::vector activeTokenIds;
for (Id tokenId: params.activeTokenIds)
diff --git a/src/lib/component/controller/GraphController.cpp b/src/lib/component/controller/GraphController.cpp
index 05a9e99b..3f4d0cf7 100644
--- a/src/lib/component/controller/GraphController.cpp
+++ b/src/lib/component/controller/GraphController.cpp
@@ -98,7 +98,7 @@ void GraphController::handleMessage(MessageActivateTokens* message)
if (message->isEdge || message->keepContent())
{
m_activeEdgeIds = message->tokenIds;
- if (message->isAggregation) // only on redo
+ if (message->isBundledEdges) // only on redo
{
m_activeEdgeIds.clear();
}
@@ -119,7 +119,7 @@ void GraphController::handleMessage(MessageActivateTokens* message)
getView()->activateEdge(edgeId);
return;
}
- else if (message->isAggregation)
+ else if (message->isBundledEdges)
{
m_activeNodeIds.clear();
m_activeEdgeIds = message->tokenIds;
@@ -166,7 +166,7 @@ void GraphController::handleMessage(MessageActivateTokens* message)
{
bundleNodes();
}
- else if (message->isAggregation)
+ else if (message->isBundledEdges)
{
bool isInheritanceChain = true;
for (const auto& edge: m_dummyEdges)
@@ -489,22 +489,22 @@ void GraphController::handleMessage(MessageGraphNodeExpand* message)
{
std::shared_ptr edge = m_dummyEdges[i];
- if (edge && edge->data && edge->data->isType(Edge::EDGE_AGGREGATION) &&
+ if (edge && edge->data && edge->data->isType(Edge::EDGE_BUNDLED_EDGES) &&
(edge->targetId == dummyNode->tokenId || edge->ownerId == dummyNode->tokenId))
{
- std::vector aggregationIds = utility::toVector(
- edge->data->getComponent()->getAggregationIds());
+ std::vector bundledEdgesIds = utility::toVector(
+ edge->data->getComponent()->getBundledEdgesIds());
- if (m_graph->getEdgeById(aggregationIds[0]) != nullptr)
+ if (m_graph->getEdgeById(bundledEdgesIds[0]) != nullptr)
{
break;
}
- std::shared_ptr aggregationGraph =
+ std::shared_ptr bundledEdgesGraph =
m_storageAccess->getGraphForActiveTokenIds(
- aggregationIds, std::vector());
+ bundledEdgesIds, std::vector());
- aggregationGraph->forEachEdge([this](Edge* e) {
+ bundledEdgesGraph->forEachEdge([this](Edge* e) {
if (!e->isType(Edge::EDGE_MEMBER))
{
m_dummyEdges.push_back(std::make_shared(
@@ -1085,25 +1085,25 @@ void GraphController::bundleNodes()
bundleInfo->isReferencing = false;
}
- if (e->isType(Edge::EDGE_AGGREGATION))
+ if (e->isType(Edge::EDGE_BUNDLED_EDGES))
{
- TokenComponentAggregation::Direction dir =
- e->getComponent()->getDirection();
+ TokenComponentBundledEdges::Direction dir =
+ e->getComponent()->getDirection();
- if (dir == TokenComponentAggregation::DIRECTION_NONE)
+ if (dir == TokenComponentBundledEdges::DIRECTION_NONE)
{
bundleInfo->isReferenced = true;
bundleInfo->isReferencing = true;
}
else if (
- (dir == TokenComponentAggregation::DIRECTION_FORWARD && e->getFrom() == n) ||
- (dir == TokenComponentAggregation::DIRECTION_BACKWARD && e->getTo() == n))
+ (dir == TokenComponentBundledEdges::DIRECTION_FORWARD && e->getFrom() == n) ||
+ (dir == TokenComponentBundledEdges::DIRECTION_BACKWARD && e->getTo() == n))
{
bundleInfo->isReferencing = true;
}
else if (
- (dir == TokenComponentAggregation::DIRECTION_FORWARD && e->getTo() == n) ||
- (dir == TokenComponentAggregation::DIRECTION_BACKWARD && e->getFrom() == n))
+ (dir == TokenComponentBundledEdges::DIRECTION_FORWARD && e->getTo() == n) ||
+ (dir == TokenComponentBundledEdges::DIRECTION_BACKWARD && e->getFrom() == n))
{
bundleInfo->isReferenced = true;
}
@@ -2041,7 +2041,7 @@ Vec4i GraphController::layoutNestingRecursive(DummyNode* node, int relayoutAcces
break;
case GroupLayout::BUCKET:
- if (node->hasActiveSubNode() || !m_activeNodeIds.size() /* aggregations */)
+ if (node->hasActiveSubNode() || !m_activeNodeIds.size() /* bundled edges */)
{
BucketLayouter grid(viewSize);
grid.createBuckets(node->subNodes, m_dummyEdges);
@@ -2446,25 +2446,25 @@ void GraphController::createLegendGraph()
addEdge(Edge::EDGE_INHERITANCE, derived, main);
{
- Edge* edge = addEdge(Edge::EDGE_AGGREGATION, user, main);
- std::shared_ptr aggregationComp =
- std::make_shared();
+ Edge* edge = addEdge(Edge::EDGE_BUNDLED_EDGES, user, main);
+ std::shared_ptr bundledEdgesComp =
+ std::make_shared();
for (size_t i = 0; i < 10; i++)
{
- aggregationComp->addAggregationId(++id, true);
+ bundledEdgesComp->addBundledEdgesId(++id, true);
}
- edge->addComponent(aggregationComp);
+ edge->addComponent(bundledEdgesComp);
}
{
- Edge* edge = addEdge(Edge::EDGE_AGGREGATION, main, usee);
- std::shared_ptr aggregationComp =
- std::make_shared();
+ Edge* edge = addEdge(Edge::EDGE_BUNDLED_EDGES, main, usee);
+ std::shared_ptr bundledEdgesComp =
+ std::make_shared();
for (size_t i = 0; i < 10; i++)
{
- aggregationComp->addAggregationId(++id, true);
+ bundledEdgesComp->addBundledEdgesId(++id, true);
}
- edge->addComponent(aggregationComp);
+ edge->addComponent(bundledEdgesComp);
}
Node* publicMethod = addNode(NODE_METHOD, L"public method", Vec2i());
@@ -2622,17 +2622,17 @@ void GraphController::createLegendGraph()
}
{
- addText(L"aggregation", 0, Vec2i(x, y + dy * ++i));
+ addText(L"bundled edges", 0, Vec2i(x, y + dy * ++i));
Node* typeA = addNode(NODE_TYPE, L"Type A", Vec2i(x, y + dy * ++i));
Node* typeB = addNode(NODE_TYPE, L"Type B", Vec2i(x + dx, y + dy * i));
- Edge* edge = addEdge(Edge::EDGE_AGGREGATION, typeA, typeB);
- std::shared_ptr aggregationComp =
- std::make_shared();
+ Edge* edge = addEdge(Edge::EDGE_BUNDLED_EDGES, typeA, typeB);
+ std::shared_ptr bundledEdgesComp =
+ std::make_shared();
for (size_t i = 0; i < 10; i++)
{
- aggregationComp->addAggregationId(++id, true);
+ bundledEdgesComp->addBundledEdgesId(++id, true);
}
- edge->addComponent(aggregationComp);
+ edge->addComponent(bundledEdgesComp);
}
{
diff --git a/src/lib/component/controller/UndoRedoController.cpp b/src/lib/component/controller/UndoRedoController.cpp
index 29406e8d..e3bb295d 100644
--- a/src/lib/component/controller/UndoRedoController.cpp
+++ b/src/lib/component/controller/UndoRedoController.cpp
@@ -349,7 +349,7 @@ void UndoRedoController::handleMessage(MessageIndexingFinished* message)
MessageActivateTokens* msg = dynamic_cast(command.message.get());
if (msg)
{
- if (msg->isAggregation)
+ if (msg->isBundledEdges)
{
continue;
}
@@ -498,7 +498,7 @@ void UndoRedoController::replayCommand(std::list::iterator it)
{
MessageActivateTokens* msg = dynamic_cast(m.get());
- if (!msg->isEdge && !msg->isAggregation)
+ if (!msg->isEdge && !msg->isBundledEdges)
{
std::vector matches = msg->getSearchMatches();
msg->searchMatches.clear();
diff --git a/src/lib/component/controller/helper/BucketLayouter.cpp b/src/lib/component/controller/helper/BucketLayouter.cpp
index 022db39d..94e5e26f 100644
--- a/src/lib/component/controller/helper/BucketLayouter.cpp
+++ b/src/lib/component/controller/helper/BucketLayouter.cpp
@@ -310,9 +310,9 @@ void BucketLayouter::createBuckets(
}
}
else if (
- edge->getDirection() == TokenComponentAggregation::DIRECTION_BACKWARD ||
+ edge->getDirection() == TokenComponentBundledEdges::DIRECTION_BACKWARD ||
// put nodes with bidirectional edges on the left
- (edge->getDirection() == TokenComponentAggregation::DIRECTION_NONE &&
+ (edge->getDirection() == TokenComponentBundledEdges::DIRECTION_NONE &&
!target->bundleInfo.isReferencing && !target->bundleInfo.isReferenced))
{
std::swap(owner, target);
diff --git a/src/lib/component/controller/helper/DummyEdge.h b/src/lib/component/controller/helper/DummyEdge.h
index 33c56bc8..ad27e286 100644
--- a/src/lib/component/controller/helper/DummyEdge.h
+++ b/src/lib/component/controller/helper/DummyEdge.h
@@ -5,7 +5,7 @@
#include "types.h"
#include "Edge.h"
-#include "TokenComponentAggregation.h"
+#include "TokenComponentBundledEdges.h"
class Edge;
@@ -21,7 +21,7 @@ struct DummyEdge
, active(false)
, layoutHorizontal(true)
, weight(0)
- , direction(TokenComponentAggregation::DIRECTION_INVALID)
+ , direction(TokenComponentBundledEdges::DIRECTION_INVALID)
{
}
@@ -34,7 +34,7 @@ struct DummyEdge
, active(false)
, layoutHorizontal(true)
, weight(0)
- , direction(TokenComponentAggregation::DIRECTION_INVALID)
+ , direction(TokenComponentBundledEdges::DIRECTION_INVALID)
{
}
@@ -44,43 +44,43 @@ struct DummyEdge
{
return weight;
}
- else if (data->isType(Edge::EDGE_AGGREGATION))
+ else if (data->isType(Edge::EDGE_BUNDLED_EDGES))
{
- return data->getComponent()->getAggregationCount();
+ return data->getComponent()->getBundledEdgesCount();
}
return 1;
}
- void updateDirection(TokenComponentAggregation::Direction dir, bool invert)
+ void updateDirection(TokenComponentBundledEdges::Direction dir, bool invert)
{
if (invert)
{
- dir = TokenComponentAggregation::opposite(dir);
+ dir = TokenComponentBundledEdges::opposite(dir);
}
- if (direction == TokenComponentAggregation::DIRECTION_INVALID)
+ if (direction == TokenComponentBundledEdges::DIRECTION_INVALID)
{
direction = dir;
}
else if (direction != dir)
{
- direction = TokenComponentAggregation::DIRECTION_NONE;
+ direction = TokenComponentBundledEdges::DIRECTION_NONE;
}
}
- TokenComponentAggregation::Direction getDirection() const
+ TokenComponentBundledEdges::Direction getDirection() const
{
if (!data)
{
return direction;
}
- else if (data->isType(Edge::EDGE_AGGREGATION))
+ else if (data->isType(Edge::EDGE_BUNDLED_EDGES))
{
- return data->getComponent()->getDirection();
+ return data->getComponent()->getDirection();
}
- return TokenComponentAggregation::DIRECTION_FORWARD;
+ return TokenComponentBundledEdges::DIRECTION_FORWARD;
}
Id ownerId;
@@ -98,7 +98,7 @@ struct DummyEdge
// BundleEdge
int weight;
- TokenComponentAggregation::Direction direction;
+ TokenComponentBundledEdges::Direction direction;
};
#endif // DUMMY_EDGE_H
diff --git a/src/lib/component/view/GraphViewStyle.cpp b/src/lib/component/view/GraphViewStyle.cpp
index fa13cb2b..50cf59f1 100644
--- a/src/lib/component/view/GraphViewStyle.cpp
+++ b/src/lib/component/view/GraphViewStyle.cpp
@@ -671,7 +671,7 @@ GraphViewStyle::EdgeStyle GraphViewStyle::getStyleForEdgeType(
switch (type)
{
- case Edge::EDGE_AGGREGATION:
+ case Edge::EDGE_BUNDLED_EDGES:
style.width = 3;
style.arrowLength = 7;
style.arrowWidth = 10;
diff --git a/src/lib/data/graph/Edge.cpp b/src/lib/data/graph/Edge.cpp
index 3521ac1b..edb004c1 100644
--- a/src/lib/data/graph/Edge.cpp
+++ b/src/lib/data/graph/Edge.cpp
@@ -3,7 +3,7 @@
#include
#include "Node.h"
-#include "TokenComponentAggregation.h"
+#include "TokenComponentBundledEdges.h"
#include "logging.h"
#include "utilityString.h"
@@ -36,8 +36,8 @@ Edge::EdgeType Edge::intToType(int value)
return EDGE_INCLUDE;
case EDGE_IMPORT:
return EDGE_IMPORT;
- case EDGE_AGGREGATION:
- return EDGE_AGGREGATION;
+ case EDGE_BUNDLED_EDGES:
+ return EDGE_BUNDLED_EDGES;
case EDGE_MACRO_USAGE:
return EDGE_MACRO_USAGE;
case EDGE_ANNOTATION_USAGE:
@@ -139,8 +139,8 @@ std::wstring Edge::getReadableTypeString(EdgeType type)
return L"include";
case EDGE_IMPORT:
return L"import";
- case EDGE_AGGREGATION:
- return L"aggregation";
+ case EDGE_BUNDLED_EDGES:
+ return L"bundled edges";
case EDGE_MACRO_USAGE:
return L"macro use";
case EDGE_ANNOTATION_USAGE:
@@ -175,10 +175,10 @@ std::wstring Edge::getAsString() const
str << L"[" << getId() << L"] " << getReadableTypeString();
str << L": \"" << m_from->getName() << L"\" -> \"" + m_to->getName() << L"\"";
- TokenComponentAggregation* aggregation = getComponent();
- if (aggregation)
+ TokenComponentBundledEdges* bundledEdges = getComponent();
+ if (bundledEdges)
{
- str << L" " << aggregation->getAggregationCount();
+ str << L" " << bundledEdges->getBundledEdgesCount();
}
return str.str();
diff --git a/src/lib/data/graph/Edge.h b/src/lib/data/graph/Edge.h
index 9b718fb1..0622aab5 100644
--- a/src/lib/data/graph/Edge.h
+++ b/src/lib/data/graph/Edge.h
@@ -25,7 +25,7 @@ public:
EDGE_TEMPLATE_SPECIALIZATION = 1 << 7,
EDGE_INCLUDE = 1 << 8,
EDGE_IMPORT = 1 << 9,
- EDGE_AGGREGATION = 1 << 10,
+ EDGE_BUNDLED_EDGES = 1 << 10,
EDGE_MACRO_USAGE = 1 << 11,
EDGE_ANNOTATION_USAGE = 1 << 12,
diff --git a/src/lib/data/graph/token_component/TokenComponentAggregation.h b/src/lib/data/graph/token_component/TokenComponentAggregation.h
deleted file mode 100644
index 9219c477..00000000
--- a/src/lib/data/graph/token_component/TokenComponentAggregation.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef TOKEN_COMPONENT_AGGREGATION_H
-#define TOKEN_COMPONENT_AGGREGATION_H
-
-#include