View and Examples21 Jul 2019
This week I began learning about QML to try to fix the View that show the graphs and tools for manipulating graphs. More precisely, I wanted to deal with some problems:
- Vertexes that go near the border of the view cannot be moved;
Ctrl-Ado not select all the view, just a limited part;
- The option menu in the
Create Edgeputs the lateral menu over the scroll bar;
- The scroll bar in the view don’t have much use, as the view is tiny, and the mouse can be used to move in most cases;
Flickablemotion from the Qt is stealing most of the clicks from the MouseArea (maybe remove the
interactiveoption while outside the
Select/Move?), making really difficult to create new edges;
- The Icons for the tools are not being showed.
This is the view now:
This is an probable new view (under implementation), that I will present to my mentors:
I have been studying QML to modify this view and little by little I am building it.
Moreover, I modified the two original examples in the code
PrimSpanningTree to work in the current system (they were with commands not valid
for the current version, like
interrupt()). I also added one more example for the
other search algorithm,
DepthFirstSearch and the other implementations are under
- Topological Sorting Algorithm;
- Kruskal Algorithm;
- Dijkstra Algorithm;
- Bellman-Ford Algorithm;
- Floyd-Warshall Algorithm;
- Bipartite Matching Algorithm.
I had some other ideas for the interface that can be easily implemented and is a good way to improve the workflow:
This configuration create more space for the programmer while leaving enough space to visualize the graphs correctly and it works well with a new horizontal toolbar.
(Also, I have been really sick in the last week, but now I think I am better!)