mouse support un BarButton and ColorButton
shorter code
support mouse on undo button
support mouse on sliders
mouse events on brush and eraser tools
removed unused vars and build
fixed cursors