data: fixes and improvements
* save forward declarations of classes and structs as NODE_UNDEFINED_TYPE * put whole files on top in snippet sorting * uses aggregation count as weight in graph layouting instead of adding all edges to graph * refreshing all views of components on MessageRefresh in ComponentManager * reloading ApplikatinoSettings on MessageRefresh
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
|
||||
#include "utility/types.h"
|
||||
|
||||
#include "data/graph/Edge.h"
|
||||
#include "data/graph/token_component/TokenComponentAggregation.h"
|
||||
|
||||
class Edge;
|
||||
|
||||
// temporary data structure for (visual) graph creation process
|
||||
@@ -17,6 +20,16 @@ struct DummyEdge
|
||||
{
|
||||
}
|
||||
|
||||
int getWeight() const
|
||||
{
|
||||
if (data->isType(Edge::EDGE_AGGREGATION))
|
||||
{
|
||||
return data->getComponent<TokenComponentAggregation>()->getAggregationCount();
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Id ownerId;
|
||||
Id targetId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user