1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2025-04-21 12:27:27 +03:00

When no instance is selected, show the polar coordinates of the current

pointer position relative to the user origin in the radius/angle fields.
This helps to make quick manual measurements, e.g., of clearances.

This also fixes the following bug:
- gui_canvas.c (refresh_pos): showed canvas coordinates instead of model
  coordinates



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5755 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
werner
2009-12-15 19:33:15 +00:00
parent 2a819a82d7
commit a830226830
6 changed files with 42 additions and 9 deletions

View File

@@ -155,6 +155,16 @@ void status_set_xy(struct coord coord)
}
void status_set_angle_xy(struct coord v)
{
if (!v.x && !v.y)
status_set_angle("a = 0 deg");
else
status_set_angle("a = %3.1f deg", theta_vec(v));
}
static void entry_color(GtkWidget *widget, const char *color)
{
GdkColor col;