> i want to listen editing tools like , Polygon , LineTool ….. . User can draw > shapes free by mouse , but we need to enter coordinates by hand relative to > first point . > for example while editing via polygon tool > > relative to previous point : first point 11 (x0), 12 (y0) ( exact point > location ) second point : x0 + 100 , y0 + 50 > entering coord relative by angle : first point 11 (x0), 12 (y0) ( exact > point location ) second point : sin 30 * x0 + cos 30 * y0 > > I'm developing a view to enter these coords , if user enters coords and > types enter, entered coords will be added currently editing shape. that s > why i want to known when a edit tool enabled , so that i can enable or > disable text boxes to enter coordinates and can show view if necessary . > i ll need a few more views for my application depends on existing and custom > tools . > > i ve found a workaround , when a modal tool activates , it runs a command > so map change event fires :). Thanks for explaining - that helps a lot.
A couple of ideas (feel free to ignore): - I wonder if we can use the existing coordinate area at the bottom of the screen. Like when you select a coordinate we can use that for editing. It would be similar to how it is used now where it provides dynamic feedback as you move the co-ordinate with the mouse? - The tool option area is available; you could make use of it for this purpose (it has the advantage of smoothly being available only when editing).
_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
