In following commit i tried to be as clear as possible:
I'll try to be as short as i can here in the post, since i tried to document the code.
The following parts of the code should not probably stay in the main Draft Edit.
PREVIEW: from this line
on, could be split into every object code or in a general Draft_EditPreview, or maybe better i could add some specific function in draft Trackers to keep edit slim.
ADDITIONAL TOOLS: From this line
on, additional tools like addPoint, delPoint, I hope they can become subcommands, activated by a context menu. At the moment, when "add point button" is checked, user click is forwarded to theese functions.
MAIN EDITING FUNCTIONS: These line on
should stay inside the tool, since they identify which function to call to getEditPoints and to update the object.
OBJECT EDITING FUNCTIONS: From this line to the end
. This is the code i'd like to split more. Since every object is asked for a list of editpoints, and when a point is moved every object is notified and changed, I think this should go to the object class, not inside a graphical editing tool. Expecially for BezCurve and Circle that contains code that could be used by a wide range of functions.