Hey Bulia,
I'm impressed with you working on the code that much! Anyways, I think that your approach is the right way to go.
David
Inspired by http://www.angelfire.com/mi/kevincharles/inkscape/aiwf.htm, I added a small improvement to the drawing tools:
- When you switch to the Pen or Pencil tool, they now start in the
"add" mode: the selected path displays endnodes to attach to, and any path you draw becomes a single object with the selected path. To start a new path object, deselect the selected path by pressing Esc.
Previously you had to press "a" to go to the add mode, and I'm sure many people were not aware of this. You can still turn the add mode off by pressing "a", but I'm thinking of removing that because I don't see what advantage that may have. If you don't want to continue the path, just deselect it. Removing the "non-add" mode altogether will make the interface simpler. Any comments?