1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-09-30 17:08:32 +03:00
Commit Graph

227 Commits

Author SHA1 Message Date
Werner Almesberger
6547384793 fpd.l: make start_token "static" 2012-04-26 02:55:45 -03:00
Werner Almesberger
43928dbbf3 purge unused measurement instances
Instances of measurements referencing vectors not instantiated were
only partially initialized (because only inst_meas_hint was called
on them but never inst_meas) but still left in the list of instances.

They were thus displayed, producing confusing results.

We now trace a measurement instance's validity and remove all invalid
instances at the end of instantiate_meas.
2012-03-17 23:14:16 -03:00
Werner Almesberger
5130707371 postscript.c (ps_for_all_pkg): "pages" was never initialized 2012-03-17 23:05:05 -03:00
Werner Almesberger
e2749ea6c5 don't draw center cross in full-page Postscript 2012-01-18 16:10:22 -03:00
Werner Almesberger
cb34a28826 vector names can now be resolved at instantiation (partially implemented) 2011-10-25 17:03:21 -03:00
Werner Almesberger
c8f5d29178 obj.c: move vector to coord translation to separate function (for future extension) 2011-10-25 16:22:04 -03:00
Werner Almesberger
ea9b8f988e already "fped -T" dumped, not only "fped -T -T". test/Common didn't use -T -T. 2011-10-25 16:05:22 -03:00
Werner Almesberger
b8f1add539 fped/obj.c (generate_items): handle failure to expand package name gracefully
We just use "_" in this case. Before, "expand" returned NULL, which
inst_select_pkg interprets as the global package. This in turn caused
no further packages to be defined and thus active_pkg stayed NULL.
This finally led to a crash in inst_draw.
2011-09-14 20:37:54 -03:00
Werner Almesberger
6dfbb51af9 fped/gnuplot.c (gnuplot_arc): implemented drawing of arcs 2011-09-12 20:54:58 -03:00
Werner Almesberger
e5d8fd87c3 fped/: added gnuplot output for line/rect/circle with -g (experimental) 2011-09-04 20:35:34 -03:00
Werner Almesberger
6ca5c22ea4 fped.c: cleaned up batch mode selection; batch modes are now mutually exclusive 2011-09-04 17:22:10 -03:00
Werner Almesberger
f0c0ae779a changed GUI page location, checkout instructions, and e-mail address
- Makefile (UPLOAD), README, debian/control (Homepage, Description),
  fped.1: the GUI page is now on downloads.qi-hardware.com instead
  of people.openmoko.org
- debian/copyright, fped.1: changed e-mail from werner@openmoko.org
  to werner@almesberger.net
- README: changed repository from Openmoko SVN to Qi-Hardware git
2011-07-28 06:40:46 -03:00
Werner Almesberger
9465776449 xxx 2011-07-28 06:40:46 -03:00
Werner Almesberger
6cadac8977 Makefile: switched from SVN to git
- Makefile (CFLAGS): renamed cpp macro SVN_VERSION to VERSION
- Makefile (SVN_VERSION, SVN_STATUS): renamed to GIT_VERSION and
  GIT_STATUS and switched to corresponding git command
- Makefile (.PHONY, update): removed this little-used target
2011-07-28 06:40:34 -03:00
Xiangfu Liu
6396ca8499 update to r6006 2011-03-25 08:50:51 +08:00
Xiangfu Liu
acccaee4d6 update to r6005 2011-03-25 08:42:36 +08:00
Xiangfu Liu
a49bbd2fe6 debian package update to 5999 2011-03-25 08:42:36 +08:00
Xiangfu Liu
ceaa519ccb update to r5997
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-03-25 08:42:36 +08:00
Xiangfu Liu
4a68274e67 update the homepage to help webpage
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-03-25 08:42:36 +08:00
Xiangfu Liu
ced96bbb13 add ghostscript to Build-Depends
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-03-25 08:42:36 +08:00
Xiangfu Liu
5ac0cb58d8 override dh_auto_clean, use make spotless instread
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-03-25 08:42:36 +08:00
Xiangfu Liu
5fa6038c07 update to svn rev 5986
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-03-25 08:42:36 +08:00
Xiangfu Liu
21f2ae2bb5 remove the Build-Depends ttf-liberation
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-03-25 08:42:36 +08:00
Xiangfu Liu
a6d21bb4bb update take svn rev: 5983
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-03-25 08:42:36 +08:00
Xiangfu Liu
069e82ffc4 use usual name for orig tarball top-level directory
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-03-25 08:42:36 +08:00
Xiangfu Liu
17dc8ff45c update to svn rev 5982, enable dh_auto_test
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-03-25 08:42:36 +08:00
Xiangfu Liu
b9a6369ca2 add debian/fped.manpages for install manpage
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-03-25 08:42:36 +08:00
Xiangfu Liu
b17ed1a7df use the new version rules.
add the get-orig-source.sh file

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-03-25 08:42:36 +08:00
Xiangfu Liu
e394af8c90 clean up the Build-Depends.
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-03-25 08:42:35 +08:00
Xiangfu Liu
b6807a7c0d add debian package stuff
add ITP bug number to 'debian/changelog'

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-03-25 08:42:35 +08:00
werner
78e4ba0d9c fped: mechanical holes had incorrect layers
- inst.c (inst_hole): set inst->u.hole.layers, not inst->u.pad.layers
- layer.c (mech_hole_layers): holes don't need solder paste



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@6006 99fdad57-331a-0410-800a-d7fa5415bdb3
2011-03-24 23:42:47 +00:00
werner
335ddb6e1d fpd.y: dump() requires a dummy "one" argument here too, oops
git-svn-id: http://svn.openmoko.org/trunk/eda/fped@6005 99fdad57-331a-0410-800a-d7fa5415bdb3
2011-03-23 08:25:22 +00:00
werner
2de385e9c7 hack: set errno to ENOENT when -1 fails, so that the error isn't too ugly
The caller assumes that any error would be signaled via errno. A proper
solution would be to allow also for non-errno errors.



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@6004 99fdad57-331a-0410-800a-d7fa5415bdb3
2011-03-23 08:07:31 +00:00
werner
f44accdad7 fped: added option -1 package to select a single package to output with -p/-P
git-svn-id: http://svn.openmoko.org/trunk/eda/fped@6003 99fdad57-331a-0410-800a-d7fa5415bdb3
2011-03-23 07:14:13 +00:00
werner
e1f4e03a28 fped: don't output pad names consisting only of spaces
Such names have an invalid size and may trip the Postscript/PDF interpreter.

- postscript.c (ps_pad_name): don't output names consisting only of spaces



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@6002 99fdad57-331a-0410-800a-d7fa5415bdb3
2011-03-23 06:45:04 +00:00
werner
1409cfafd8 - gui.c (change_world_reselect): take into account that we may get called
with a selected object but no selected instance. In this case, don't try to
  re-select. (Not perfect, but better than the crash this caused so far.)



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5999 99fdad57-331a-0410-800a-d7fa5415bdb3
2011-01-22 00:54:56 +00:00
werner
49a1bbdd05 Added a new pad type: trace pads, for antennas and other trace-like elements.
- layer.h (enum pad_type): added pad type pt_trace
- layer.c (pad_type_to_layers, layers_to_pad_type), inst.c (inst_pad):
  "trace" pad instantition and conversion infrastructure
- fpd.y (pad_type), dump.c (print_obj): .fpd file I/O for "trace" pads
- postscript.c (prologue): added Postscript function "horpath" to produce
  horizontal stripes
- postscript.c (hatch): show "trace" pads with horizontal stripes
- gui_style.h (gc_pad_trace), gui_style.c (gc_pad_trace, gui_setup_style),
  gui_inst.c (pad_gc): added visualization of "trace" pads
- gui_status.c (show_pad_type): added "trace" pad type
- README: added description of "trace" pads
- README: added usage examples for the various pad types



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5998 99fdad57-331a-0410-800a-d7fa5415bdb3
2011-01-18 00:30:57 +00:00
werner
0bfba12f3c - test/tsort: "Aborted" doesn't get reported on all platforms, so we just
remove it completely (reported by Nobuhiro Iwamatsu)



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5997 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-12-10 06:56:43 +00:00
werner
177fe9cc36 The box coordinates were not properly initialized in gui_draw_pad_text
- gui_inst.c (gui_draw_pad_text): box_min and box_max were initialized to
  an undefined value, upsetting valgrind and yielding an incorrect
  location if pad and hole had the same size



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5994 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-10-31 12:11:18 +00:00
werner
feae08fc9e fped/Makefile: added LDFLAGS (currently empty)
git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5986 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-10-16 13:52:50 +00:00
werner
dd255ef510 fix wrong bold content in manual page fped.1
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5983 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-10-13 16:15:40 +00:00
werner
585ea5595d add DESTDIR to Makefile.
the Debian package is need DESTDIR and Debian also install binary 
to /usr/bin/

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5982 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-10-12 15:45:09 +00:00
werner
4d175e5aef add the manual page manual/fped.1
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>

[ changed the location to ./ - manual/ is more about extra data for the
  HTML manual. - Werner ]



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5981 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-10-12 15:44:21 +00:00
werner
478bf03343 make the SVN_VERSION, SVN_STATUS run only once.
this can reduce warning "svn: '.' is not a working copy"
when we not in a svn repo.

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5980 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-10-12 15:40:57 +00:00
werner
a119e25a77 Makefile (spotless): added target to remove "fped" (suggested by Xiangfu Liu)
git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5979 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-10-12 15:39:32 +00:00
werner
02518334f2 Updated regression tests for output change in r5974 and improved handling of
cores.

- test/structure, test/del_vec, test/frame_ref, test/meas_qual, test/del_frame:
  added newline after "unit" directive (reported by Xiangfu Liu)
- test/Common: new function expect_sed for post-processing of test output
- test/tsort: use expect_sed to ignore "(core dumped") after "Aborted"
- test/Common: if there is a file called "core", don't run it
- Makefile (clean): remove test/core



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5978 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-10-12 15:32:15 +00:00
werner
e6b2658a65 Added relaxation of pad overlap checking. Not GUI-settable yet.
- README, fpd.l, fpd.y: added directives "allow touch" and "allow overlap" to
  make overlap checking more permissive
- dump.c (dump_allow, dump): generate "allow" directive
- obj.h, obj.c (allow_overlap): added global variable for strictness of overlap
  checking
- overlap.h, overlap.c (overlap, ...), layer.h, layer.c (refine_layers):
  strictness of overlap checking is passed as an argument
- hole.c (check_through_hole), layer.h, layer.c (refine_copper), obj.c
  (instantiate): updated callers of "overlap" to provide "allow" argument



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5974 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-08-09 04:16:37 +00:00
werner
b2b3a46119 A bit of cleanup.
- gui_frame_drag.c (FOR_UNORDERED, drag_var_motion, drag_value_motion, 
  drag_frame_motion): moved hard to read loop into helper macro
- capitalized SWAP, to make it clear it's a macro and can multiply side-effects
- TODO: updated discussion of open issues



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5971 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-05-31 05:53:56 +00:00
werner
d4c4031b9a Added support for reordering frames in the GUI.
- gui_frame.c (build_frame_label): the root frame doesn't participate in any
  form of dragging, so we don't set up dragging for it at all
- gui_frame_drag.c (pick_table_cell, swap_table_cells_by_coord, 
  swap_table_rows): helper functions for swapping rows in a Gtk table
- gui_frame_drag.c (swap_frames, drag_frame_motion, setup_frame_drag): added
  support for reordering of frames by dragging
- gui_frame_drag.c (SWAP, swap_vars, swap_values, swap_rows): removed SWAP(). 
  Use swap() from util.h instead.
- TODO: removed frame ordering entry



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5970 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-05-30 20:30:24 +00:00
werner
7eb3ac5ba2 When dragging an endpoint of an inverted measurement, we didn't consider that
inst->base and inst->u.meas.end are swapped, causing fped to crash in vec_at.
Also introduced a universal swap() function.

- util.h (swap): new swap function for arguments of any type
- gui_meas.c (begin_drag_move_meas, draw_move_meas): swap the endpoints if
  moving an inverted measurement
- coord.c (sort_coord): use swap() instead of swap_coord
- coord.h, coord.c (swap_coord): removed
- gui_util.c (save_pix_buf): use swap() instead of open-coding the swap 
- kicad.c (kicad_centric): use sort_coord instead of "manually" sorting the
  coordinates



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5968 99fdad57-331a-0410-800a-d7fa5415bdb3
2010-05-30 09:04:26 +00:00