ui: new style for bundle node

This commit is contained in:
Eberhard Graether
2015-09-09 11:48:16 +02:00
parent 934c70272d
commit 70283f7610
12 changed files with 123 additions and 51 deletions
@@ -704,7 +704,7 @@ void GraphController::layoutNestingRecursive(DummyNode& node) const
}
else if (node.isBundleNode())
{
width = margins.charWidth * (node.name.size() + 1 + utility::digits(node.bundledNodes.size()));
width = margins.charWidth * node.name.size();
}
// Horizontal layouting is currently not used, but left in place for experimentation.
@@ -134,6 +134,11 @@ size_t GraphViewStyle::getFontSizeOfExpandToggleNode()
return s_fontSize - 5;
}
size_t GraphViewStyle::getFontSizeOfCountCircle()
{
return s_fontSize - 3;
}
std::string GraphViewStyle::getFontNameForNodeType(Node::NodeType type)
{
return s_fontName;
+1
View File
@@ -98,6 +98,7 @@ public:
static size_t getFontSizeForNodeType(Node::NodeType type);
static size_t getFontSizeOfAccessNode();
static size_t getFontSizeOfExpandToggleNode();
static size_t getFontSizeOfCountCircle();
static std::string getFontNameForNodeType(Node::NodeType type);
static std::string getFontNameOfAccessNode();