code format
fix compile warning
remove unused code
ScribbleArea: inline method switchTool()