mirror of
git://projects.qi-hardware.com/fped.git
synced 2025-04-21 12:27:27 +03:00
When creating an object in the GUI, its label wasn't initialized. Added
infrastructure for hole objects. (Postscript and KiCad output are still missing, and so does sanity checking.) - gui_tool.c (new_obj_unconnected): set obj->name to NULL - added hole objects to tool bar, all the various GUI routines, the .fpd parser, and the .fpd dumper git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5939 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
6
obj.h
6
obj.h
@@ -178,6 +178,7 @@ enum obj_type {
|
||||
ot_frame,
|
||||
ot_rect,
|
||||
ot_pad,
|
||||
ot_hole,
|
||||
ot_line,
|
||||
ot_arc,
|
||||
ot_meas,
|
||||
@@ -200,6 +201,10 @@ struct pad {
|
||||
enum pad_type type;
|
||||
};
|
||||
|
||||
struct hole {
|
||||
struct vec *other; /* NULL if frame origin */
|
||||
};
|
||||
|
||||
struct arc {
|
||||
struct vec *start; /* NULL if frame origin */
|
||||
struct vec *end; /* NULL if this is a circle */
|
||||
@@ -214,6 +219,7 @@ struct obj {
|
||||
struct rect rect;
|
||||
struct rect line;
|
||||
struct pad pad;
|
||||
struct hole hole;
|
||||
struct arc arc;
|
||||
struct meas meas;
|
||||
} u;
|
||||
|
||||
Reference in New Issue
Block a user