ui: fixed autocompletion issues

* click in autocompletions list causes search
* right arrow for autocompletion
* changed query operator has from '>' to '.' and operator sub from '.' to '+'
* fixed autocompletions to fit to query
and
* fixed spectral layouting endless looping on unconnected node
This commit is contained in:
Eberhard Graether
2015-02-06 00:51:02 +01:00
parent 1f6d503b9c
commit af1462f955
16 changed files with 206 additions and 126 deletions
@@ -76,6 +76,17 @@ void GraphLayouter::layoutSpectralPrototype(std::vector<DummyNode>& nodes, const
MatrixDynamicBase<int> laplacian = buildLaplacianMatrix(nodes, edges);
// If the laplacian matrix has a zero value in it's diagonal, that means there are unconnected nodes and the spectral
// layouting fails for some reason. In this case we switch to raster layout.
for (unsigned int i = 0; i < laplacian.getColumnsCount(); i++)
{
if (laplacian.getValue(i, i) == 0)
{
layoutSimpleRaster(nodes);
return;
}
}
Eigen::MatrixXd degreeMatrix = Eigen::MatrixXd::Zero(laplacian.getColumnsCount(), laplacian.getRowsCount());
Eigen::MatrixXd eigenMatrix = Eigen::MatrixXd::Zero(laplacian.getColumnsCount(), laplacian.getRowsCount());