GeorgeValergas / paintweb

Automatically exported from code.google.com/p/paintweb
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

PaintWeb.toolRegister() needs to allow tool code to execute #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, drawing tool objects are instanced when PaintWeb.toolActivate() 
is invoked. The PaintWeb.toolRegister() method does not create instances 
of tool objects. Some drawing tools need this to provide additional 
functionality within PaintWeb even when they are not active. Such examples 
are the Hand tool, the Selection tool and more.

By fixing this issue, some code from the user interface can be moved into 
the implementation of each drawing tool. This amounts to better future 
code maintainability.

Original issue reported on code.google.com by mihai.sucan on 21 Sep 2009 at 7:56