Move tools under Document instead of MainWindow

esc with draw mode now clears the polygon

(0) -100 -30 -10 -2 +2 +10 +30 +100 tip

mercurial