ui: preparations for user study

* added sample code
* bigger and closed arrow for inheritance edge
* fixed code hover
* lightened scope colors
* fixed interrupted scope ranges to show all lines
* fixed edge creation to correctly show recursion
* prevent aggregation edge number from floating around
* scroll to top when changing codesnippets
This commit is contained in:
Eberhard Graether
2015-01-26 06:50:23 +01:00
parent 4775a87104
commit 016d692dda
7 changed files with 215 additions and 111 deletions
@@ -181,18 +181,21 @@ std::vector<std::pair<uint, uint>> CodeController::getSnippetRangesForFile(const
if (location->isStartTokenLocation())
{
if (start && end && lineNumber > end + 2 * s_lineRadius + 1)
{
ranges.push_back(std::make_pair(uint(start), uint(end)));
start = end = 0;
}
if (!start)
{
start = lineNumber;
}
else if (end && lineNumber > end + 2 * s_lineRadius + 1)
{
ranges.push_back(std::make_pair(uint(start), uint(end)));
start = lineNumber;
end = 0;
}
lineNumber = location->getEndTokenLocation()->getLineNumber();
}
else
if (lineNumber > end)
{
end = lineNumber;
}