Created action to insert a path when user presses p or from header bar.
Created a PathEditMode to for creating a new path. In future PRs, this can be reused to edit paths of other CanvasItems when user double clicks on them.
Created a ViewLayerPath so that users can easily visualise the points they are inserting in the path
Steps to Test
Press p or click on Vector in the insert menu
Click randomly on the canvas. The points where you click will be highlighted in blue. This is the work of ViewLayerPath. All these points will be connected using lines.
Press Esc to exit PathEditMode. The blue dots from ViewLayerPath should now be replaced by nobs and selection box.
Screenshots
Known Issues / Things To Do
The following features will be implemented step by step in small PRs to make developing and reviewing easier.
Add curves using the Ctrl-Alt method.
Double clicking on an item should enter user in PathEditMode
Summary / How this PR fixes the problem?
p
or from header bar.Steps to Test
p
or click on Vector in the insert menuEsc
to exit PathEditMode. The blue dots from ViewLayerPath should now be replaced by nobs and selection box.Screenshots
Known Issues / Things To Do
The following features will be implemented step by step in small PRs to make developing and reviewing easier.
Ctrl
-Alt
method.