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:
10
gui_status.c
10
gui_status.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user