1 2005-01-06 Stefan Petersen <spe@siouxsie.umunet.org>
3 * src/*.c: Removed portability to GTK+ 1.x by changing configure.in
4 and remove USE_GTK2 in many small places. Also made some reformat
5 of the code to fit into the rest of the gerbv codebase.
7 2004-12-28 Stefan Petersen <spe@siouxsie.umunet.org>
9 * src/draw.c: When drawing circles I ignored if circle
10 had inner diameter, which was pointed out by Harry Eaton.
11 Not anymore... Closes bug #1050340 in this branch.
13 * Updated to TinyScheme 1.35
15 2004-10-30 Stefan Petersen <spe@siouxsie.umunet.org>
17 * src/draw_amacro.c: Forgot to use local_gc when drawing some
18 of the primitive aperture macros. Closes bug #1051045.
20 2004-10-13 Juergen Haas <juergenhaas@gmx.net>
22 * right click on selected part (current active selection) now works
23 also on shapes with PIN1 Off centre axis
24 FIXME circular shapes are recognised at a fixed radius of 3mm
25 Only works with units of gerbv match units used in pick and place
28 2004-10-11 Juergen Haas <juergenhaas@gmx.net>
30 * a first draft of API documentation exists see doc/html/main.html
31 After adding further comments please use the following style:
32 /** brief description.
33 Now we can write details */
34 Afterwards use doc/Doxyfile.nopreprocessing to update documentation
37 2004-09-13 Stefan Petersen <spe@stacken.kth.se>
39 * src/gerbv.c: If you tried to invert color of an unloaded layer
40 you got a segmentation fault. I think it was discovered by Juergen.
42 2004-09-11 Juergen Haas <juergenhaas@gmx.net>
44 * right click in window with active selection now shows part
45 designator in statusline for easier identification in multiple
47 FIXME only works if pin1 is not on center axis of part
50 2004-09-09 Juergen Haas <juergenhaas@gmx.net>
52 * added footprint column shown in result search window
54 2004-09-05 Juergen Haas <juergenhaas@gmx.net>
56 * fixed right click shows designator in statusbar does not hang program
57 * MINGW issues with path separators
59 2004-09-04 Juergen Haas <juergenhaas@gmx.net>
61 * fixed graphical representation of parts
62 * added gerb_transf_rotate
63 * added gerb_transf_shift
64 * fixed segfault when searching in comments
65 * designator is also shown checked by default
67 2004-08-28 Juergen Haas <juergenhaas@gmx.net>
69 * fixed GTK1 compilation issues
72 2004-08-27 Juergen Haas <juergenhaas@gmx.net>
74 * fixed memory issues pnp_state
75 * fixed too many calls to screen_for_delimiter
76 * added #include "string.h" to gerb_transf.c
77 * introduced update_combo_box_model()
78 * removed unnecessary code
79 * "beautified" gerb_transf.[ch]
80 * introduced rectangular shape for marking rectangular parts
81 * introduced a LOG MEssage, when right click on any selected part
82 (must be in active selection)
84 2004-08-26 Juergen Haas <juergenhaas@gmx.net>
87 * added double click draws selected item on screen
89 2004-08-25 Tomasz Motylewski <t.motylewski@bfad.de>
91 * eliminated memory leak MINGW32 gerb_file.c fd->data
92 * forced LC_NUMERIC to "C" in parse_gerb(), fixing bug
93 resulting in very thin lines (aperture size = 0) under GTK2
95 2004-08-23 Tomasz Motylewski <t.motylewski@bfad.de>
97 * cleaned up memory allocation in gerb_image.c
98 * improved project loading (still broken, there is no clear
99 design which function should do what).
100 * fixed memory leak plist_top->filename
102 2004-08-23 Juergen Haas <juergenhaas@gmx.net>
104 is done in a more flexible way:
105 adds a similar line with "filename" replaced by "pick_and_place"
107 FIX ME: reading in a project file is still broken
109 upon pressing mark button in select parts dialog it always updates
112 2004-08-23 Tomasz Motylewski <t.motylewski@bfad.de>
114 * replaced scale with gerb_transf_t(.scale) - mirroring preparation
116 2004-08-22 Stefan Petersen <spe@stacken.kth.se>
118 * configure.in, src/Makefile.am: Use libpng-config to find out
119 parameters to use in CFLAGS and LIBS.
121 tag:SEARCH_SELECT_merged
123 2004-08-13 11:25 Search9-pre8 Juergen Haas <juergenhaas@gmx.net>
126 -if mark is pressed and there is no selection colour of layer
127 button does not change
128 -use of libmba's csv.[ch]
129 -automatic screening for delimiters
130 -if dialog is to be destroyed but it does not exist is caught
131 -upon loading a second gerberfile the first user dialog is
132 destroyed and parsed_PNP_data
134 -pressing mark actually also activates the new layer
135 -loading a gerberfile also activates layer
136 -tooltip to entry field now hints at usage of regexp
137 -arrow down acts like space
138 -colour change back to original colour fixed - new colour is
139 only allocated upon first draw on an empty layer
140 -dropdown list for available layers updates, whenever changes
142 -default layer now is actually also the one which is drawn ontoi
144 (shown was MAXFILES-1, but it was drawn onto 0!)
145 -if there was an error loading a pnpfile
146 (e.g. incompatible csv format) select parts window is destroyed
147 also parsed_PNP_data is freed!
148 -arrow up reverses arrow down/space
149 -right click now selects and draws the selection on screen
150 -shift_arrows will add items to selection (moving up and down!)
151 -focus was always going to log window, for MINGW therefore
152 logging in log window was disabled as a first measure
155 2004-08-12 09:51 Search9-pre7 Juergen Haas <juergenhaas@gmx.net>
156 program now works under MINGW
159 -crash on lowercase entries(linux)using REG_ICASE
160 -crash on entries non existing in the list (MINGW/LINUX)
161 use of parsed_PNP_data as a global storage place for pnp data after parsing, in case of reopen search window initiated.
164 2004-08-07 09:29 Search9-pre6
166 -introduced GtkEntryCompletion listing choices for entry
167 works for designators and comments
168 _fixed bug in select_by_regex where
169 if comment was NULL a segfault occurred
170 -automatic scrolling to first hit works with designators only
171 probably utf8 issue with comments
172 strncasecmp causes segfault
173 -alignment in assembly mode improved, the first 15 elements
175 -upon enter in entry field we scroll to first hit in selection
177 -----------------------------
178 2004-08-04 09:29 search9-pre5: Juergen Haas <juergenhaas@gmx.net>
179 TODO introduction of libmba csv functions sublicensed under MIT
180 csv.[ch] have been extracted and made independent from msgno.[ch] and text.[ch] the latter
182 -----------------------------
183 2004-08-03 09:30 Search9-pre4: Juergen Haas <juergenhaas@gmx.net>
185 -fixed error with default layer selection:now always last layer is default, based on
188 -----------------------------
189 Search9-pre3: Juergen Haas <juergenhaas@gmx.net>
190 TODO-towards project saving: added filename if pnp file is loaded
191 dont know how to handle loading of files because pnp file is not compatible to
193 ->maybe including check for pnpfile in gerb_fopen?
195 *implemented intelligent top/bottom selector
196 if sel exists, only non matching (either tpo or bottom parts) will be
198 if no sel exists, all top or bottom parts are selected
199 *implemented gtkcombobox for accessing layers, it will actually not allow overwriting
201 layers( gerberfile displays), if loaded last after all gerberfiles
202 dynamic update of list to be more flexible
203 ok - used gtkliststore and GtkCellLayout for labels in Gtk_Combo_Box dropdown
206 TODO-MINGW: fgets seems to report NULL ???!!
207 -implemented #ifdef __MINGW32__ , HAVE LIBGEN_H, HAVE MMAN_SYS_H and HAVE_REGEX_H for
208 portability issues under WIN32/mingw
209 -------------------------------------
210 tag:SEARCH_SELECT_start
212 2004-07-12 (summary) Juergen Haas/Tomasz Motylewski <juergenhaas@gmx.net>
214 [pleases direct any questions, comments or bug reports to me or Tomasz]
215 * added new functionality: search, select and mark parts in layers
216 16-19 by loading a "Pick and Place" file in CSV Format:
218 NO OTHER FORMAT IS RECOGNISED SO FAR!
220 storing pnp data in memory
224 how to read in and parse pnp file
226 create_marked_layer(layernumber); will draw the selected
227 parts as circles with a line going from centre to Pin1 on
228 the layer given as argument(at the moment layers 16-19 are
231 will load pick and place file and display the parts unique
232 designators, the Top/Bottom Flag and the corresponding
233 comment in a sortable list. Multiple selections can be made
234 by entering a regex search phrase or by simply clicking on
235 the desired items (for multiple selections by mouse click use
236 the well-known SHIFT-CTRL-click combinations)
238 * This version also includes first rough support for MINGW/WIN32
239 -not yet usable, route for reading in files is broken
241 2004-08-21 Stefan Petersen <spe@stacken.kth.se>
243 * src/gerbv.c: Made sure that only list of short options is
244 printed when only short options are compiled in.
246 2004-08-16 Stefan Petersen <spe@stacken.kth.se>
248 * doc/*, example/*: Makefiles.am removed Makefile.in wheh running
249 distclean. Not good. Spotted by Hamish Moffatt when packaging
252 2004-07-28 Stefan Petersen <spe@stacken.kth.se>
254 * src/draw.c: In gerbers the image can be negative or positive.
255 Then a part of the image called a layer can be clear or dark.
256 -"No more weed for you, Mr Gerber".
257 Richard Lightman found this and submitted both an example and
260 2004-07-11 Stefan Petersen <spe@stacken.kth.se>
262 * src/draw_amacro.c: When drawing thermals the cross ends in butt
263 instead of round which gives nicer look when thermal covers an
266 2004-06-27 Stefan Petersen <spe@stacken.kth.se>
268 * src/gerber.c: Improved comments on what is going and why. Also
269 improved a little in determining the size of the image. Now it
270 ignores points with no aperture defined, unless it is a polygon
273 2004-06-24 Stefan Petersen <spe@stacken.kth.se>
275 * src/gerber.c: Removed two potential segfaults when running old
278 * src/gerber.c, src/batch.c, src/gerb_image.[hc]: Actually removed
279 all traces of MQ_END and MQ_START. That means that empty nodes
280 with only this information isn't saved, since the only time we need
281 this information is when parsing arcs. When an arc is parsed
282 the information wheter that arc is multi or single quadrant is
283 saved there. Also closes bug #942590.
285 * src/gerbv.c, src/gerbv_screen.h, src/gerb_image.c, src/gerb_image.h:
286 Added possibility to dump a parsed image as text to be able to
289 2004-06-10 Stefan Petersen <spe@stacken.kth.se>
291 * src/draw_amacro.c: By mistake I assumed that all aperture
292 macros had exposure flags, but that was a mistake. Drew Moore
293 pointed it out to me. Thanks.
295 2004-06-05 Stefan Petersen <spe@stacken.kth.se>
297 * */.cvsignore, man/gerbv.1.in, src/gerbv.c: Minor updates and
298 cleanups from Dimitri. --help added for instance.
302 2004-05-25 Stefan Petersen <spe@stacken.kth.se>
304 * src/draw_amacro.c: Now aperture macros handles exposures properly,
305 so some thermals can be drawn properly. Inspired by discussion with
309 2004-05-19 Stefan Petersen <spe@stacken.kth.se>
311 * man/gerbv.1.in, src/Makefile.am, src/drill.c, src/gerbv.c,
312 src/tooltable.c, src/tooltable.h: Patch from Dimitri
313 (lastname unknown) to read tool files from for instance Eagle CAD.
315 2004-04-27 Stefan Petersen <spe@stacken.kth.se>
317 * configure.in, src/drill.c: Patch from Tomasz Motylewski as a start
318 remove dependencies on mmap et al (sys/mman.h) for targets lacking
319 these operations (mingw).
321 2004-04-21 Stefan Petersen <spe@stacken.kth.se>
323 * src/gerbv.c: Added keys f for fit, z for zoom in and Z for zoom out
324 after request from Stefan Thiede.
326 2004-04-04 Stefan Petersen <spe@stacken.kth.se>
328 * src/gerb_file.[hc], src/drill.c, src/amacro.c, gerber.c:
329 Changed gerb_fgetint() so it can return number of parsed characters.
330 This is useful when parsing coordinates in omit trailing zeros mode.
331 Omit trailing zeros is also handled properly now. Reported by Joachim
332 Jansen and filed as bug #918344.
334 2004-02-24 Stefan Petersen <spe@stacken.kth.se>
336 * src/gerbv.c: Apperently under GTK2 both delete_event and destroy
337 signals is emitted when you press the little cross in the
338 decoration bar. When both signals were emitted gerbv tried to free
339 the same memory twice.
341 2004-02-14 Stefan Petersen <spe@stacken.kth.se>
343 * src/Makefile.am: Making sure init.scm is copied to the right
346 2004-02-13 Stefan Petersen <spe@stacken.kth.se>
348 * src/gerber.c: The good old circles revisited. This time Dan
349 noticed that circles with the same start and end point did not
350 draw properly ie as circles. It became points.
352 2004-02-08 Stefan Petersen <spe@stacken.kth.se>
354 * configure.in: Apperently auto* doesn't define $prefix if you
355 don't set it in your script. The autotools has become more and
356 more of a moving target...
358 * man/gerbv.1.in: A bunch of updates, mainly reflecting the new
361 2004-02-07 Stefan Petersen <spe@stacken.kth.se>
363 * src/gerbv.c: Save screen.path even when we load a project file.
365 * src/gerbv.c: Fixed a segmentation fault when I tried to free
366 an optarg:ed variable.
368 2004-02-05 Stefan Petersen <spe@stacken.kth.se>
370 * src/gerbv.c: Dan strikes again. Option -p (with appropriate
371 error message) added as an alternative to --project.
373 2004-02-01 Stefan Petersen <spe@stacken.kth.se>
375 * src/gerbv.c: Patch from Dan causes the "save as..." dialog box
376 to come up if you try to do a "save" with no current project
378 * src/gerbv.c: Yet another patch from Dan to put project filename
381 2003-12-14 Stefan Petersen <spe@stacken.kth.se>
383 * configure.in, src/gerbv.c, src/log.c, src/setup.h: It is now
384 possible to compile gerbv with GTK+ 2.*, at least tested with
385 2.2.4. There are still some problems, particulary in log.c.
386 GtkText is deprecated, but I have enabled GTK_ENABLE_BROKEN.
387 This needs a more permanent solution. This closes Feature
388 Request #771480, but probably opens up some new ones.
390 2003-12-10 Stefan Petersen <spe@stacken.kth.se>
392 * src/gerbv.c: Projects saves and restores background color.
394 * src/gerbv.c, src/gerbv_screen.h: Added Save Project and handles
395 if a filename was given, either when loading or a previous save.
397 2003-12-09 Stefan Petersen <spe@stacken.kth.se>
399 * configure.in, */Makefile.am: Added a recursive chain of Makefile.am
400 to be able to run make dist and make distcheck. Proposed by Dan
403 2003-12-07 Stefan Petersen <spe@stacken.kth.se>
405 * src/gerbv.c, src/project.[hc]: Project now saves ev. inversion of
406 layer, all layers accept all parameters and commandline switch
407 --project=<project file> also works.
409 * src/gerbv.c, src/gerbv_screen.h: Added invert layer functionality.
410 Closes feature request 777547.
412 2003-12-06 Stefan Petersen <spe@stacken.kth.se>
414 * src/gerb_file.[hc]: Added function gerb_find_file.
415 * src/draw_amacro.c: Forgot to make some internal functions static.
416 * src/*: Scheme interpreter added to be used by project files as a
417 start. Also project file handling added. A short description of
418 the format used in project files also added. A massive commit.
420 2003-11-22 Stefan Petersen <spe@stacken.kth.se>
422 * configure.in, acconfig.h: acconfig.h removed and more information
423 added to configure.in after information in warning messages from
426 2003-11-13 Stefan Petersen <spe@stacken.kth.se>
428 * src/export_image.c: Changes pixbuf_to_file_as_png simplify operation
429 No major speedup since that is not the time hog.
433 2003-10-06 Stefan Petersen <spe@stacken.kth.se>
435 * src/draw_amacro.c: Drawing of aperture macro primitive 7 was
436 severly broken. Revealed by Drew Moore who sent an example
437 along. Thanks Drew! Closes bug #818307.
439 2003-09-28 Stefan Petersen <spe@stacken.kth.se>
441 * src/gerber.c: Patch from Peter Brueckner. Some Gerbers don't
442 have G04 but just G4. Peters patch fixes that for G- and M-codes.
444 2003-09-08 Stefan Petersen <spe@stacken.kth.se>
446 * src/gerber.c: Patch from Simon Munton to fix a problem with polygons
447 sometimes not being filled properly. Closes bug #800928 (which
448 he promptly had submitted).
450 * src/gerber.c: Another patch from Simon. This time it fixes
451 circular polygon outlines by with a number of short segments.
452 Closes bug #603183, which was almost a year old. Thanks Simon!
456 2003-05-31 Stefan Petersen <spe@stacken.kth.se>
458 * configure.in, src/amacro.c: Removed the last remaining malloc.h
459 after tips from Charles Lepple on the geda mailinglist.
461 2003-04-18 Stefan Petersen <spe@stacken.kth.se>
463 * src/draw_amacro.c: Larry Doolittle had a problem when drawing
464 one of his files, a circle seemed to explode. I couldn't
465 reproduce it, but after his tests I added this patch. Thanks Larry!
467 2003-04-07 Stefan Petersen <spe@stacken.kth.se>
469 * src/gerber.c: RS274D caused segfaults again. Reported by Skurk.
473 2003-03-16 Stefan Petersen <spe@stacken.kth.se>
475 * src/draw.c, src/gerb_image.h, src/gerber.c: Angles are now
476 calculated as doubles instead of ints. For instance, the cslk
477 example now draws properly at the same time as Dans ridicously
478 small arcs also works.
480 * src/gerber.c: Better sanity checks for angles of arcs, so
481 cw are drawn cw and ccw are drawn ccw. Closes bug #703265
482 which was reported by Mark Whitis. Thanks!
484 2003-03-10 Stefan Petersen <spe@stacken.kth.se>
486 * src/gerber.c: Doesn't warn anymore if a gerber file requests an
487 image rotate on zero degrees. Reported by Balaji V.
489 2003-03-02 Stefan Petersen <spe@stacken.kth.se>
491 * src/draw_amacro.c: Aperture macro primitive 1 is a filled circle.
492 * Makefile.am, configure.in, src/gerbv.c, src/Makefile.am,
493 src/gerbv.1.in: Removed all traces of Guile. batch.c is left, but
496 2003-03-01 Stefan Petersen <spe@stacken.kth.se>
498 * src/gerb_image.[hc], gerber.c: Redesigned step-and-repeat
499 parser. And when I was at it I also cleaned up new_gerb_image()
502 2003-02-24 Stefan Petersen <spe@stacken.kth.se>
504 * src/Makefile.am,src/gerbv.c,src/gerbv_screen.h,src/log.c,
505 src/setup.[hc]: Added setup to handle all things that can
506 be setup by commandline or (future) rc files. We have the
507 screen variable, but some didn't think it was appropriate
508 to add setup things to.
510 2003-02-22 Stefan Petersen <spe@stacken.kth.se>
512 * src/gerber.c: Changed comparision if two angles are equal
513 to double since Dan McMahill discovered a case where the difference
514 between the angles were actually less than 0.5 degrees.
517 * src/gerbv.c: I you tried to swap layer with an unused layer
518 gerbv segfaulted. Also discovered by Dan McMahill. Cudos to him
519 as usual... Closes bug #689667.
521 2003-02-12 Stefan Petersen <spe@stacken.kth.se>
523 * src/gerber.c: A patch from Peter Monta for incremental
524 coordinates. He also discovered that I had made a mistake
525 when parsing incremental/absolute coordinates.
529 2003-02-06 Stefan Petersen <spe@stacken.kth.se>
531 * src/drill.c; Exchanged the last fprintf(stderr, with
534 * src/gerbv.c: Added swap of tooltips information too.
536 2003-02-02 Stefan Petersen <spe@stacken.kth.se>
538 * src/drill.c: Added patch from Dan McMahill since + sign
539 before coordinates seemed to confuse the drill parser.
542 * src/gerbv.c: Now you can move around layers in the right
543 sidebar so you can select in which order the layers should
546 * src/draw.c, src/drill.c, src/gerb_image.[hc], src/gerber.c:
547 A new system to keep track of mm and inches. Everything is
548 still drawn based on inches and min/max is also stored as
549 inches. But now every aperture and every coordinate has a
550 unit attached to it that is used when drawing. I hope I
551 haven't breaked anything, patricular in drill.c. And I have
552 very few (one) reference examples in millimeters.
554 2003-01-26 Stefan Petersen <spe@stacken.kth.se>
556 * src/log.[hc], src/gerbv.c: Made sure error messages are
557 directed to the right place (shell and popup) at the
558 right moment and that the error messages look nicer.
560 * .cvsignore, man/.cvsignore, scheme/.cvsignore, src/.cvsignore:
561 Added these files submitted by Holger Waechtler. Thanks!
563 2003-01-25 Stefan Petersen <spe@stacken.kth.se>
565 * src/gerber.c, src/gerb_image.[hc]: Added a patch from
566 Holger Waechtler regarding G70/G71 which opened up a whole
567 can of worms. After thinking and hacking the following works:
568 * all in inches (as always).
569 * apertures in inches and vectors in millimeters.
570 The reason for not fixing apertures in millimeter are because
571 the calculation must happen in the drawing engine, since we
572 don't know until the moment of drawing if the paramters defines
573 a length or an angle. It's probably just a matter of fixing the
574 scaling when drawing, but I fix that later on.
576 2003-01-19 Stefan Petersen <spe@stacken.kth.se>
578 * src/gerber.c: Fixed bug in arc/circle drawing that caused
579 some odd cases (not noticed so far elsewhere) that made
580 ccw arcs to be drawn cw. Discovered by Jukka Marin. Thanks.
582 2003-01-16 Stefan Petersen <spe@stacken.kth.se>
584 * man/gerbv.1, src/gerbv.c : Updated documentation to reflect
585 the new log commandline switch.
586 * files2tag, TODO: Minor documentation updates to reflect
589 2003-01-15 Stefan Petersen <spe@stacken.kth.se>
591 * src/Makefile.am, src/color.c, src/draw.c, src/drill.c,
592 src/gerber.c, src/gerbv.c, src/gerbv_screen.h. Added are
593 src/log.[hc], src/gerb_error.h: Finally have managed to
594 change all error reporting routines so it works with
595 Dinos log system. Now should all errors and warnings pop up
596 in an explicit window so it behaves like a proper
597 X-application. Thanks to Dino I got this fixed. Maybe
598 all code is not what Dino expected, but anyhow I owe him
599 a great THANKS. Maybe all compilation errors should have
600 "return;" after them?
602 2003-01-14 Stefan Petersen <spe@stacken.kth.se>
604 * src/gerbv.c: A fix for the previous fix. The previous fix
605 was not good and had to be redone. now. We check the
606 parsed image before we put it in use so we don't have to
607 save alot of thing to be able to back off if error.
609 2003-01-13 Stefan Petersen <spe@stacken.kth.se>
611 * src/gerbv.c: When gerbv discovered RS274D and terminated
612 it tried to free memory to hadn't been allocated due to
613 it had discovered error in the gerber file. This caused
614 windows to never close and segfaults when terminating.
616 2002-12-25 Stefan Petersen <spe@stacken.kth.se>
618 * src/gerbv_screen.h, src/gerbv.c: Changed how the
619 different windows are stored in the screen struct.
620 * src/amacro.h: Forgot to include stdlib.h which was needed
621 to remove warnings regarding free missing.
622 * src/gerbv.c: Minor beautification cleanups.
624 2002-12-11 Stefan Petersen <spe@stacken.kth.se>
626 * src/gerbv.c: Fixed 64-bit compilation warning by casting
627 gpointer to long int. Closes bug #642703.
629 2002-12-09 Stefan Petersen <spe@stacken.kth.se>
631 * src/gerber.c: Fixed some kind of bug causing some filled
632 polygons not to get displayed. Reported by Chris Ellec.
635 2002-12-02 Anders Eriksson <anders@umunet.org>
637 * configure.in, src/amacro.c: Applied patch from
638 Charles Lepple to fix bug #646268 (building on MacOS X).
640 2002-11-26 Anders Eriksson <anders@umunet.org>
642 * src/gerbv.c: Fixes bug #643799 (zoom out_line stopped
645 2002-11-26 Stefan Petersen <spe@stacken.kth.se>
647 * src/gerbv.c: Added idea and (hacked up by me) patch for
648 turning all layers on and off from Martin Sigrand. It should
649 really need an overhaul regarding non freed memory.
651 2002-11-24 Stefan Petersen <spe@stacken.kth.se>
653 * doc/eagle/*: Added information for Eagle CAD users from
654 Daniel Dorau. It also made the webpage. Thanks Daniel!
656 * src/gerber.c: Yet another G-code (55) discovered in an
657 example in the "standard" by our russian friend Yuri.
659 2002-11-23 Stefan Petersen <spe@stacken.kth.se>
661 * src/amacro.c, src/draw.c, src/draw_amacro.c, src/gerber.c:
662 More files with the same mistake in as below. I cleaned up
663 my own mess this time.
665 2002-11-23 Anders Eriksson <anders@umunet.org>
667 * src/gerbv.c: Fixed bug 642600, Don't use default labels without
668 any statement after. Also use comments for label after #endif.
672 2002-11-19 Stefan Petersen <spe@stacken.kth.se>
674 * src/gerbv.c: Anders optimized drawing optimized away setting
675 of superimpose function. Not any longer. Daniel Dorau pointed
676 out this and the one below.
678 * src/draw.c: Hopefully fixed the one pixel gap between lines
679 when it should be a filled area.
681 2002-11-17 Stefan Petersen <spe@stacken.kth.se>
683 * src/exportimage.c: Background color was ignored. Noticed by Dino.
685 2002-11-16 Stefan Petersen <spe@stacken.kth.se>
687 * src/gerbv.c: Made sure all cancels and destroy_event from
688 different popup windows are handled and destroyed properly.
689 Also made some minor fixes in new "set explicit scale" functions.
690 * src/gerbv.c: Made explicit set scale also center image properly.
692 2002-11-15 Stefan Petersen <spe@stacken.kth.se>
694 * src/gerbv.c: Robustified if someone tries to parse RS274D.
695 Happend to fix bug #639127.
696 * doc/PNG-print/*: Added doc on how to print PNGs generated by gerbv.
697 * src/gerbv.c: Added explicit setting of scale. Good when generating
698 PNGs for printing. Both patch and above doc is thanks to
701 2002-11-15 Andreas Andersson <e92_aan@e.kth.se>
703 * src/drill.c: Slight change to allow broken drill files from
704 Orcad386. Not pretty. But then again, neither is Orcad.
706 2002-11-07 Anders Eriksson <anders@umunet.org>
708 * src/gerbv.c: Minor cleanups, prepare idle_redraw to
709 be reentrant to allow calling it more than once (i.e.
710 for png export as well as for screen redraw).
712 2002-11-06 Anders Eriksson <anders@umunet.org>
714 * src/gerbv.c: Re-read some gtk-docs, we weree mistreating
715 the gtk_idle-functions. This patch fixes this and closes
716 pixmap leakage caused by complete redraw when we had a
718 Oops, you need to start the idle function at least once.
720 2002-11-05 Anders Eriksson <anders@umunet.org>
722 * src/gerbv.c, src/gerbv_screen.h: Removed clipping/no
723 clipping kludge since export_png now behaves as Dino
724 expects. We should make a function of common code in
725 export_png and redraw_pixmap to make it more maintainable.
726 * src/gerbv.c (redraw_pixmap): Don't try to sneak out doing
727 events from redraw_pixmap, check for them and preempt if
728 there are events on queue. This closes the everythinh-is-
729 not-redrawn-sometimes bug (I hope).
731 2002-11-04 Stefan Petersen <spe@stacken.kth.se>
733 * src/exportimage.c, gerbv.c: export_png now export whole image
734 despite whats displayed (still depending on zoom/scale thou).
735 If export_png receives an imagetosave, that will be the image
736 that will be saved, so it's more general now. Must hack some
737 more to be able to utilize both ways. Anders can happily remove
738 all what he calls kludges.
740 2002-10-31 Stefan Petersen <spe@stacken.kth.se>
742 * src/gerber.c: Yet another commando that doesn't complain if
743 default values are given. AS is the lucky one this time.
744 * src/gerber.c, src/draw.c: By considering an undefined aperture
745 despite we didn't draw caused strange lines around the first line
748 2002-10-31 Anders Eriksson <anders@umunet.org>
750 * src/gerbv.c: Replace incremental redraw with clipping
751 option. It is now possible to turn clipping off, this
752 might be useful for export png (sorry for breaking this,
755 2002-10-30 Stefan Petersen <spe@stacken.kth.se>
757 * src/gerb_image.h, src/gerber.c: Implemented %SF% and %SR% in
758 parser, but ignored the draw engine. If any of these parameters
759 not are default a warning is issued. Closed a feature request.
761 2002-10-30 Anders Eriksson <anders@umunet.org>
763 * src/gerbv.c, src/gerbv_screen.h: Added restartable
764 redraw by keeping redraw state between calls to
765 redraw_pixmap(). Also added drawing status on statusbar.
767 2002-10-29 Stefan Petersen <spe@stacken.kth.se>
769 * src/draw_amacro.c: Fixed a bug when drawing primitive 20
770 discovered by jj. Caused slanted (by coordinates) primitives
771 to "slant" in the wrong direction.
773 2002-10-29 Anders Eriksson <anders@umunet.org>
775 * src/gerbv.c (redraw_pixmap): Free pixmaps also when
776 preempted, we used to leek pixmaps (bad!).
778 2002-10-28 Anders Eriksson <anders@umunet.org>
780 * src/gerbv.c (autoscale): Wrong sign on clip_bbox.x1 from
781 trans_x. Now even nollezappare is centered correctly.
783 2002-10-27 Stefan Petersen <spe@>
785 * src/draw_amacro.c: Reset the stack pointer after each primitive
786 operation. It's not completly right to do it this way, but since
787 I built the compiler I know how the code generated looks like ;-).
790 2002-10-26 Stefan Petersen <spe@stacken.kth.se>
792 * src/gerber.c: Removed some nested use of strncmp with simple
793 switch/case instead in parse_G_code.
794 * src/gerber.c: Added an extra check so RS274D doesn't casue
795 segfault. Discovered by Jukka Marin. Thanks.
797 2002-10-24 Anders Eriksson <anders@umunet.org>
799 * src/gerbv.c, src/gerbv_screen.h: Played with clipping. Allocated
800 pixmap is now same size as window. GTK does all clipping (we
801 could optimize this somewhat with "object" bounding boxes). This
802 makes it possible to zoom where no gerbv has zoomed before.
803 Some interesting effects can be found by zooming in a lot.
805 -- Release 0.0.10 debian release 2 --
807 2002-10-18 Stefan Petersen <spe@stacken.kth.se>
809 * src/drill.c, src/gerb_file.[hc], src/gerber.c, src/gerbv.c:
810 Alot of abuse using EOF(-1) when char actually is unsigned
811 caused a lot of warnings when Debian build system tried to
812 build it for a couple of platforms.
814 2002-10-14 Anders Eriksson <anders@umunet.org>
816 * src/gerbv.c: Activate millimeters in unit menu if this
818 (update_statusbar()): Check that statusbar has been
819 created before trying to set text to it. This eliminates
820 an annoying GTK assertion.
824 2002-10-13 Stefan Petersen <spe@stacken.kth.se>
826 * configure.in: Updated version to 0.0.10
828 2002-10-11 Anders Eriksson <anders@umunet.org>
830 * configure.in, acconfig.h, src/gerbv.c: Added configure-option
831 to change default unit for status bar to millimeters instead
832 of the built-in default of mils.
834 2002-10-09 Stefan Petersen <spe@stacken.kth.se>
836 * src/gerber.c: The undefined aperture fix below is, in princip,
837 only valid if aperture type != from aperture macro.
839 2002-10-07 Stefan Petersen <spe@stacken.kth.se>
841 * src/gerber.c: If aperture was undefined (as in polygon outline)
842 it caused a segfault in min-max routine. Closes bug #619652.
844 * man/gerbv.1.in: Added blurb about the new command line
845 switches. Also added some text on backends.
847 * src/gerbv.c: Added some GDK/GTK specific command line
848 parameters. Also added the parameter --geometry.
849 Currently ignoring placement parameters, though I parse them
851 2002-10-06 Anders Eriksson <anders@umunet.org>
853 * src/gerbv_screen.h, src/gerbv.c: Added menu selection for
854 units. Decreased width of status bar. This closes the too
855 wide window problem in bug #615475. The default minimum
856 height is still too high to fit in an 800x600 display.
857 By limiting the number of files to 17 or so this problem
860 2002-09-29 Anders Eriksson <anders@umunet.org>
862 * src/gerber.c, src/gerbv.c, src/gerbv_screen.h: Removed last
863 traces of IMG_EXTRA hack. Now using proper aperture width to
864 increase width of bounding box. This may give slightly too
865 big bbox, but it is better than before. I consider this to
868 2002-09-17 Stefan Petersen <spe@stacken.kth.se>
870 * configure.in: exportpng is configured in default and removed
871 if asked (--disable-exportpng).
872 * configure.in, acconfig.h, src/gerbv_screen.h: Setting of MAX_FILES
876 2002-09-09 Stefan Petersen <spe@stacken.kth.se>
878 * src/gerbv.c: Added version number in main windows title.
881 2002-09-07 Stefan Petersen <spe@stacken.kth.se>
883 * src/batch.c, src/draw.c, src/gerb_image.h, src/gerber.c,
884 src/gerber.h: Changed how multiquadrant circles are supported.
885 Now it's more of a state, before it was considered an interpolation.
886 Therefore not all multiquadrant circles were detected as such and
887 got defined wrong. Some parts of the EAGLECAD_KLUDGE was removed,
888 though EagleCad had some other surprises in store.
889 * src/amacro.[hc], draw.c, draw_amacro.[hc]: Dynamic allocation
890 of stack when drawing aperture macros. Closes the evil bug 603147.
893 2002-09-02 Stefan Petersen <spe@stacken.kth.se>
895 * src/batch.c, src/draw.c, src/gerb_image.h, src/gerber.c:
896 Polygon drawing got it's own gc (pgc) since we must have
897 our own outline pen size. Now we don't have to have an aperture
898 defined to be able to draw polygon areas. Closes bug 602965.
899 * Removed PAREA_FILL as an interpolation. Has only PAREA_START
900 and PAREA_END left so the application has to keep track if it's
901 in polygon area fill or not by itself. PAREA_FILL was not a
902 proper "interpolation", it is instead any of the other
903 interpolations. Closes bug 603146.
906 2002-09-01 Stefan Petersen <spe@stacken.kth.se>
908 * src/draw.c: Polygon Area Fill could never have worked at
909 all since number of points reported to gdk_draw_polygon
912 2002-08-31 Anders Eriksson <anders@umunet.org>
914 * src/gerbv.c (redraw_pixmap): Removed redundant bounding
917 2002-08-27 Anders Eriksson <anders@umunet.org>
919 * src/gerbv.c, src/gerbv_screen.h, src/gerbv_icon.h: Calculate
920 proper initial translation when doing autoscale. Center image.
921 Added #define for extra 0.1 inches in autoscale. New icon image.
922 Also added outline debugging code (within #ifdef's).
924 2002-08-27 Andreas Andersson <e92_aan@e.kth.se>
926 * src/drill.c: Minor change to the drill file format guessing
927 logic to allow for yet another special case.
929 2002-08-27 Stefan Petersen <spe@stacken.kth.se>
931 * src/gerbv.c: Fixed a couple of minor memoryleaks in color
932 allocation with valgrind after a tips from Anthony J Bybell.
934 2002-08-10 Stefan Petersen <spe@stacken.kth.se>
936 * src/gerbv.c, src/Makefile.am, files2tag.txt modified,
937 src/scm_gerber.[hc] removed, src/batch.[hc] added:
938 All batch functionality broken out to one place, ie batch.[hc].
940 2002-08-09 Stefan Petersen <spe@stacken.kth.se>
942 * src/gerbv.c: Removed two lines causing zoom to stop work
943 when a non-loaded layer recently had been selected or deselected.
944 I didn't find a reason for these two lines to be there. Maybe
945 there was... Closes bug 593109.
946 * src/gerbv.c, src/gerbv_screen.h, man/gerbv.1.in: Added
947 activation/deactivation via the keyboard. Closes feature request
948 593104. Also updated the man page with this info and fixed other
951 2002-08-04 Stefan Petersen <spe@stacken.kth.se>
953 * src/gerbv.c, src/gerbv_screen.h: Added superimposing selectable
954 function to be used when you put "layer upon layer". I call it
955 superimposing functions. Hope it's correct english.
956 * man/gerbv.1.in: Minor layout changes and added part on superimposing
958 * src/gerbv.c: Fixed GTK asserts popping up when starting gerbv
959 without any files loaded.
961 2002-08-01 Stefan Petersen <spe@stacken.kth.se>
963 * src/draw.[hc], src/gerbv.c: Changed how layers are created and
964 stored to be able to be displayed on top of each other. This
965 is based on a grand idea from Dino Ghilardi.
967 2002-07-24 Andreas Andersson (e92_aan@e.kth.se)
969 * src/drill.c: Changed the parser to catch undefined tools
970 and insert default values. It warns the user, though.
971 Fixed a slight bug in min/max coordinate finding.
973 2002-07-16 Stefan Petersen <spe@stacken.kth.se>
975 * src/gerbv.c: Fixed bug 573016, some gerbers not drawn.
976 always do fabs on floats not abs.
977 * src/gerb_image.[hc], gerber.c: Parses and stores %IN%
980 2002-07-15 Anders Eriksson <anders@umunet.org>
982 * src/gerbv.c, src/gerbv_icon.h: Added application icon.
984 2002-07-13 Stefan Petersen <spe@stacken.kth.se>
986 * configure.in: Added --with-gtk-config to fit FreeBSD
987 after patch from Bruno Schwander <bruno@tinkerbox.org>.
988 * example/ekf/README: Fixed bug 578583 basically saying that
989 this example shouldn't work.
993 2002-07-06 Stefan Petersen <spe@stacken.kth.se>
995 * configure.in: Updated version to 0.0.9.
996 * man/gerbv.1.in: Updated man page with new features.
998 2002-07-05 Anders Eriksson <anders@umunet.org>
1000 * src/gerbv.c: Save a widget by adding a leading space in
1003 2002-07-04 Anders Eriksson <anders@umunet.org>
1005 * src/gerbv.c: Statusbar => Label to allow setting a fixed
1006 width font and thus avoid getting the coordinates to move
1007 as the number of digits change. Moved font names to header
1008 file. We should consider using a rc-file for font names and
1010 Made status bar not expandable.
1012 2002-07-02 Anders Eriksson <anders@umunet.org>
1014 * src/gerbv.c, src/gerbv_screen.h: Macrofied coordinate unit
1015 conversions to have the constants in one place. Converted
1016 sprintf()s to safer snprintf()s.
1018 2002-07-01 Anders Eriksson <anders@umunet.org>
1020 * src/gerbv_screen.h: Bounding box needs to be doubles, not
1022 * src/gerbv.c (motion_notify_event): Finally it seems I got
1023 the absolute coordinates right. Partly closes feature
1024 request 567965 (still need to add error messages and fix
1026 * Fixed some of the layout issues. Now uses only one statusbar
1027 widget instead of three. The message is composed from three
1028 strings. Still no error messages.
1030 2002-06-20 Anders Eriksson <anders@umunet.org>
1032 * src/gerbv.c: Mils are 0.001 inch and not 0.01, thanks Dan!
1033 This closes bug #571097.
1035 2002-06-19 Anders Eriksson <anders@umunet.org>
1037 * src/gerbv.c (motion_notify_event): py, not px!
1038 * src/gerbv.c, src/gerbv_screen.h, src/draw.c: Added bounding
1039 box translations to get correct gerber coordinates (second
1040 try, did I make it?).
1042 2002-06-18 Stefan Petersen <spe@stacken.kth.se>
1044 * src/gerbv.c: Added background color selection. Closes feature
1047 2002-06-17 Anders Eriksson <anders@umunet.org>
1049 * src/gerbv_screen.h: added msgid for stausbar.
1050 * src/gerbv.c: Changed coordinate output both in statusbar and
1051 in measure mode. Now using mils and mms as units. Coordinates
1052 are now correct in respect to the gerber coordinate system
1053 (at least that's what I think). Too much information is shown
1054 in the statusbar, we will have to add unit selection (either
1055 mils or mms). Minor layout change for statusbar (I need to
1056 learn gtk layout better!).
1058 2002-06-17 Stefan Petersen <spe@stacken.kth.se>
1060 * src/draw.c: Ignored if lines were using rectangular apertures
1061 to draw. Closes bug 567128.
1063 2002-06-13 Anders Eriksson <anders@umunet.org>
1065 * src/gerbv.c, src/gerbv_screeen.h: Added statusbar, prints cursor
1066 position as well as distance when measuring.
1068 2002-06-12 Stefan Petersen <spe@stacken.kth.se>
1070 * src/gerbv.c: Fixed autoscale() not to translate image out of
1071 window. Happened after fix for negative coordinates. Should
1072 translate image to center of window.
1073 * src/draw.c: Moved setting off err_gc outside loop so it's always
1074 done, even if you don't need it.
1076 2002-06-12 Anders Eriksson <anders@umunet.org>
1078 * src/gerbv.c (draw_zoom_outline): Fix division by zero when
1079 drawing a zoom box with no delta y. Closes bug 567166.
1081 2002-06-11 Stefan Petersen <spe@stacken.kth.se>
1083 * src/gerb_file.c: Changed ENODATA to EIO, which is more portable.
1085 * src/gerbv.c: It is now possible to draw images with negative
1086 coordinates. Closes bug 548094.
1087 * src/draw.[hc],src/draw-amacro.[hc], src/Makefile.am: Split out
1088 aperture macro stuff from draw.c to a separate file, draw_amacro.c.
1089 * src/draw_amacro.c: Fixed bug when drawing primitive 4 causing
1090 rotation to be wrong. Thanks to Jonas (you know who you are) for
1091 the excellent files.
1092 * src/draw_amacro.c: Changed interpretation of "closed shape" in
1093 primitive 4. If first point is the same as the last point it's
1094 a closed shape, ie filled according to my interpretation. Don't
1095 know if it's a correct interpretation.
1097 2002-06-10 Anders Eriksson <anders@umunet.org>
1099 * src/gerbv.c: Centered outline zoom uses shift instead of control,
1100 use shift before clicking with button three to initiate centered
1101 outline zoom (rm:ed switching between centered and plain outline).
1102 Changed distance output format to add more digits.
1104 2002-06-09 Anders Eriksson <anders@umunet.org>
1106 * src/gerbv.c: Fix actual zoomed area for centered outline zooming.
1108 2002-06-09 Anders Eriksson <anders@umunet.org>
1110 * src/gerbv.c: Set cross hair cursor as soon as shift key is
1111 pressed (in normal mode, i.e. not zoom outline). Added centered
1112 zoom outline mode (closes Feature Request 553452).
1114 2002-06-09 Anders Eriksson <anders@umunet.org>
1116 * src/gerbv.c: Added measure distance color. Added actual zoom
1117 box for zoom outline mode (this shows the area that will
1118 be included when zooming, displayed as dashed lines). Use
1119 cross-hair cursor when measuring distance.
1121 2002-06-08 Anders Eriksson <anders@umunet.org>
1123 * src/gerbv.c (motion_notify_event, expose_event): Don't
1124 redraw entire image when drawing zoom outline and measured
1125 distance. This makes the outline follow much more smoothly.
1126 The side effect in measure mode is that several measures
1127 may be visible simultaneously. I am not sure if this is
1128 a bug or a feature. :)
1130 2002-06-08 Stefan Petersen <spe@stacken.kth.se>
1132 * src/gerbv.c: Setting up a watch while running export_image.
1133 * configure.in: Adding a check for libpng when export_png enabled.
1135 2002-06-07 Anders Eriksson <anders@umunet.org>
1137 * src/gerbv.c (expose_event): Center distance strings properly,
1138 get string height to properly space the two lines independant
1139 of the resolution (dpi). Minor cleanups.
1141 2002-06-07 Stefan Petersen <spe@stacken.kth.se>
1143 * src/draw.c, src/gerb_image.h, src/gerber.c: Now handles
1144 negative layer polarity (%LP%)! After fixing bug 557368
1145 this was simple to add. Tested with files from PCB.
1147 2002-06-06 Stefan Petersen <spe@stacken.kth.se>
1149 * src/gerbv.c, src/gerbv_screen.h: Added "reload files", gerbv
1150 rereads all loaded files and display them. Usefull if you have
1151 an external gerber manipulation tool.
1153 2002-06-06 Anders Eriksson <anders@umunet.org>
1155 * src/gerbv.c, src/gerbv_screen.h: Added a crude measurement tool,
1156 renamed screen.zstart_[xy] since they are now used for measure-
1157 ment also. To use this tool hold down <SHIFT> while pressing
1158 button 1 (the leftmost). This functionality still needs some work.
1160 2002-06-06 Stefan Petersen <spe@stacken.kth.se>
1162 * src/draw.c, src/gerb_image.h, src/gerber.c: Added counting and
1163 storing of number of corners in polygons, so drawing of polygons
1164 can use dynamically allocated memory. Hard coded array size gave
1165 horrible result with submitted file from David Cussans with a lot
1166 of corners in the polygons.
1169 2002-06-05 Stefan Petersen <spe@stacken.kth.se>
1171 * src/gerbv.c: Added check to autoscale so scale don't screw up
1175 2002-06-02 Stefan Petersen <spe@stacken.kth.se>
1177 * src/gerb_image.h, src/gerber.c: Thanks to Stephen Adam I now know
1178 what %IC??*% means (Input Code) and have added it to the parser.
1181 2002-05-18 Stefan Petersen <spe@stacken.kth.se>
1183 * configure.in, acconfig.h, src/Makefile.am, src/gerbv.c,
1184 src/gerbv_screen.h, src/exportimage.[hc], CONTRIBUTORS:
1185 Added "export image to PNG" contributed by Dino Ghilardi.
1186 Thanks! Currently not default, use --enable-exportpng when
1190 2002-05-17 Stefan Petersen <spe@stacken.kth.se>
1192 * src/gerbv.c, src/gerbv_screen.h: Split out the global
1193 screen variable and it's struct to simplify future
1196 * acconfig.h, configure.in, src/gerbv.c, scm_gerber.c:
1197 Prepared phase out of Guile by changing default to exclude
1198 Guile inclusion.Change flag disable-batch to enable-batch
1199 during configure and changing the variable NO_GUILE to
1203 2002-05-10 Stefan Petersen <spe@stacken.kth.se>
1205 * src/gerb_image.*, src/gerber.*, src/gerbv.c: Moved verify_gerb
1206 to gerb_image and renamed it to gerb_image_verify so drill file
1207 parsing and gerber file parsing could split them. Done after
1208 receiveing Excellon file without drillfile sizes (Innoveda/PADS
1209 Power PCB) from Dino Ghilardi.
1210 * src/gerb_file.c: Improved error reporting.
1213 2002-05-08 Anders Eriksson <anders@umunet.org>
1215 * src/gerbv.c (zoom_outline): Prevent division by zero by
1216 disallowing too small zoom areas in outline mode. Allocate a
1217 separate outline zoom color. Center outline zoom area instead
1218 of using upper left corner as translation points.
1220 2002-05-08 Stefan Petersen <spe@stacken.kth.se>
1222 * INSTALL: Changed gschem->gerbv
1223 * src/gerbv.c: Remember where we loaded file from last time and
1224 start file selection from there.
1227 2002-05-07 Anders Eriksson <anders@umunet.org>
1229 * src/gerbv.c (zoom_outline): Added zoom outline support and
1230 scaled zoom step (zoom 10% of current scale instead of a fixed
1231 number of 10). Some comments in old code. The outline drawing could
1232 probably be optimized quite a bit (it currently piggybacks on the
1233 expose event). With this functionality it is easier to note the
1234 excessive memory usage when zooming in too far.
1239 2002-05-05 Stefan Petersen <spe@stacken.kth.se>
1241 * configure.in: Updated VERSION.
1242 * src/gerbv.c: If gerbv was started without any files loaded,
1243 the watch mouse pointer was running all the time.
1246 2002-05-03 Anders Eriksson <anders@umunet.org>
1248 * AUTHORS: Corrected my e-mail address
1250 2002-05-02 Anders Eriksson <anders@umunet.org>
1252 * src/gerbv.c: Made redraw_pixmap() and image2pixmap()
1253 interruptible by calling g_main_pending() at regular intervals and
1254 registering an idle function to redraw the pixmap at a later time
1255 if there are pending events to process. This partly fixes 550319.
1256 Also added the event to the data sent to the zoom function since
1257 this allows us to read the mouse position at the event generation
1258 and not at processing time which we used to do (giving a very
1259 confusing behaviour if we can't keep up with events).
1261 2002-05-02 Stefan Petersen <spe@stacken.kth.se>
1263 * src/draw.c: Now ovals are ovals and not ellypses.
1265 * HACKING, AUTHORS, CONTRIBUTORS: Updated with more authors
1266 and contributors. Also extended HACKING to include ChangeLog
1268 * src/gerbv.c: Autoscale is more correct, though not completely
1269 perfect. Closes bug 550795.
1271 2002-04-29 Anders Eriksson <anders@umunet.org>
1273 * src/gerbv.c: Improved zoom. Now zooming around image center when
1274 zooming from menu and around mouse pointer when zooming using the
1275 mouse. There seems to be some (small) rounding error in the
1276 centering code, but it is very small. Closes 548128.
1278 2002-04-27 Stefan Petersen (spe@stacken.kth.se)
1280 * src/gerbv.c: Number constants replaced with an enumeration
1281 type. Also error in zooming comments fixed.
1282 * man/gerbv.1.in: Added blurb about zooming.
1283 * src/gerber.c: Bug 549602 fixed so format statements are
1287 2002-04-27 Stefan Petersen (spe@stacken.kth.se)
1289 * src/gerbv.c: Changed name for all *open* functions to
1290 *load*. Implemented "unload file" in right-click popup,
1291 which closes feature req. 548124.
1294 2002-04-24 Stefan Petersen (spe@stacken.kth.se)
1296 * src/gerb_file.c: Fixed bug causing segfault when opening
1297 empty file (bug 548578).
1300 2002-04-24 Stefan Petersen (spe@stacken.kth.se)
1302 * man/gerbv.1: Removed.
1303 * man/gerbv.1.in: Created, so configure can add version of
1304 gerbv automagically. Also added blurb about right-click thing.
1305 * configure.in: man/gerbv.1 is created from man/gerbv.1.in.
1308 2002-04-24 Stefan Petersen (spe@stacken.kth.se)
1310 * example/orcad/*: Added after submission from and with
1311 permission from Dino Ghilardi.
1314 2002-04-10 Stefan Petersen (spe@stacken.kth.se)
1316 * src/gerber.c: Fixed mq arcs so circles are circles and
1317 and width/height are correctly calculated. Closes bug
1321 2002-04-09 Stefan Petersen (spe@stacken.kth.se)
1323 * src/gerber.c: Fixed draw direction of arcs reported in
1324 bug #541089. Not drawn D3 and VR1, and wrong size on some
1325 transistors, still open.
1328 2002-04-03 Stefan Petersen (spe@stacken.kth.se)
1330 * src/gerber.c, src/gerber.h: Fixed some numerical
1331 constants in verify code.
1334 2002-04-03 Stefan Petersen (spe@stacken.kth.se)
1336 * src/gerbv.c: Added color selection on layers.
1337 * TODO: Added zooming and gerber layers.
1340 2002-02-10 Stefan Petersen (spe@stacken.kth.se)
1342 * src/draw.c: Added inclusion of string.h as pointed out by
1349 2002-02-03 Stefan Petersen (spe@stacken.kth.se)
1351 * src/draw.c: Fixed bugs in drawing primitive 6 and 7 after
1352 verification. The last primitives...
1353 * example/am-test/am-test.gbx: The verification suite for
1357 2002-01-06 Stefan Petersen (spe@stacken.kth.se)
1359 * src/amacro.c: Parser handles negative immediate values.
1360 * src/draw.c: Load of minor bugfixes after verification like
1361 rotate points in the other direction, line wiidths constant,
1363 * src/gerber.c: Rewrote parse_aperture_defintion to handle
1364 aperture defintions without parameters.
1367 2002-01-06 Stefan Petersen (spe@stacken.kth.se)
1369 * src/draw.c: All primitive macros are implemented (though not
1370 completely) and passed the MS-test; they compile. Now it's
1371 verify, verify and verify.
1374 2001-12-31 Stefan Petersen (spe@stacken.kth.se)
1376 * src/draw.c: Started to add functions to be able to draw
1377 aperture macros too. Some aperture macro primitives are
1378 half way implemented, so the examples in the distribution
1379 should work. Though not 100% properly.
1382 2001-12-30 Stefan Petersen (spe@stacken.kth.se)
1384 * src/amacro.[hc]: Added, even though I haven't executed
1385 an aperture macro program yet. But parsing seems stable.
1386 * src/gerb_image.[hc], gerber.c, src/Makefile.am: Calls
1387 and keeps track of parsing of aperture macros.
1388 * doc/aperturemacro.txt: simple text on the "program code"
1389 generated when parsing aperture macros.
1392 2001-12-29 Andreas Andersson (e92_aan@e.kth.se)
1395 Fixed gerb_fgetstring() to not write after the end of the
1398 Removed small memory leak in parse_aperture_definition()
1401 2001-12-29 Andreas Andersson (e92_aan@e.kth.se)
1404 Autodetection routine changed back to original style to allow
1405 special cases needed with output from some CAD systems.
1407 Error check for mmap() added to stop gerbv from segdumping
1408 when trying to open a directory instead of a file.
1411 2001-12-29 Stefan Petersen (spe@stacken.kth.se)
1413 * src/gerb_file.[hc], src/gerber.c: Added function
1414 gerb_fgetstring and used it.
1420 2001-12-14 Stefan Petersen (spe@stacken.kth.se)
1422 * src/draw.c : Removed gdk_gc_set_line_attribute when drawing
1424 * src/gerbv.c: Added autoscaling and autocentering, both as
1425 a menu option (Zoom/Fit) and when loading a file.
1428 2001-12-11 Stefan Petersen (spe@stacken.kth.se)
1430 * src/gerbv.c : Removed prelighting on buttons and changed
1431 the "random function" creating colors. Also fixed "clear
1432 all" remaining after the pan speedup rewrite.
1435 2001-12-10 Stefan Petersen (spe@stacken.kth.se)
1437 * src/gerbv.c : Forgot to check if we had any pixmap to draw.
1440 2001-12-09 Stefan Petersen (spe@stacken.kth.se)
1442 * src/gerber.c: Fixed small bug in min/max calculation
1443 which caused big problems.
1444 * src/gerbv.c: Major rewrite of panning code giving major
1445 improvements in screen update speed.
1448 2001-12-07 Stefan Petersen (spe@stacken.kth.se)
1450 * src/draw.[hc], src/gerbv.c : Pseudo optimized drawing.
1451 * src/gerb_file.c, src/gerbv.c: Fixed bug causing segfault
1452 when file didn't exist (oops) and pushed error messages
1453 out of gerb_file.c. And if a file (of many) given at
1454 commandline doesn't exist, the next file is tried instead
1458 2001-12-06 Stefan Petersen (spe@stacken.kth.se)
1460 * src/drill.c, src/gerb_image.c, src/gerber.c, src/gerbv.c:
1461 Exchanged bzero with memset for further portability.
1462 * scheme/Makefile.am: gerb-debug.scm gets installed too.
1465 2001-12-06 Andreas Andersson (e92_aan@e.kth.se)
1468 Very minor change to allow tool number 0.
1471 2001-12-03 Stefan Petersen (spe@stacken.kth.se)
1473 * src/Makefile.am, src/color.c, src/gerber.c, src/scm_gerber.c:
1474 Turned on -Wall and cleaned up after it.
1477 2001-12-03 Stefan Petersen (spe@stacken.kth.se)
1479 * src/drill.h, src/gerber.h, src/gerbv.c:
1480 Fixed bug caused by last minute namechange of
1482 * src/gerb_file.[hc]: Added functions gerb_fgetint and
1484 * src/drill.c, src/gerber.c: Utilize the new file read
1488 2001-12-02 Stefan Petersen (spe@stacken.kth.se)
1490 * src/gerb_file.[hc], src/drill.[hc], src/gerber.[hc], gerbv.c:
1491 Changed method of file IO from fgetc to mmap. Speed increase
1492 up to 3 times noted (loading all of jj's file at ones).
1495 2001-12-02 Stefan Petersen (spe@stacken.kth.se)
1497 * src/drill.c: drill_file_p recoded so it seems to work better.
1498 * src/gerbv.c: Removed and cleaned up "open file" code.
1499 * src/gerbv.c, src/color.c, src/color.h: Fixed the whole mess
1500 with colors. Now colors doesn't set any limits on how many files
1501 you can load. It also checks that you don't give too many files
1505 2001-12-02 Andreas Andersson (e92_aan@e.kth.se)
1508 Changed radiobuttons to togglebuttons, redraw_pixmap() now shows
1509 all switched on images. Slight changes to the zoom/translate code
1510 (it still doesn't work as intended, though). Added mouse commmands
1511 for zooming without scrollwheel. screen.scale no longer goes down
1512 to 0 when zooming out.
1513 * src/draw.h, src/draw.c:
1514 Floating point calculations that are converted to ints for
1515 display are now rounded to the nearest int rather than always
1516 truncated down (or was it up?) Macro round(x) added to make that
1517 prettier. Removed minor stuff that caused warnings with -Wall
1521 2001-11-27 Andreas Andersson (e92_aan@e.kth.se)
1524 Added autodetection of file type.
1526 Corrected stupid bug in autodetection.
1529 2001-11-27 Andreas Andersson (e92_aan@e.kth.se)
1531 * src/drill.h, src/drill.c:
1532 Added drill_file_p(); which checks whether a file could
1533 be a drill file or not.
1536 2001-11-26 Stefan Petersen (spe@stacken.kth.se)
1538 * configure.in: Now --data works when running ./configure.
1539 A patch from Wojciech Kazubski <wk@ire.pw.edu.pl>
1542 2001-11-26 Andreas Andersson (e92_aan@e.kth.se)
1545 Coordinate parsing now works on coordinates with decimal points.
1546 More M codes and some G codes recognized. Most importantly
1547 absolute/incremental mode and zero setting could work, though
1548 it hasn't been properly tested yet.
1551 2001-11-23 Stefan Petersen (spe@stacken.kth.se)
1553 * src/gerb_image.h, src/draw.c, src/gerber.c, src/scm_gerber.c:
1554 Are now able to parse and display polyogon area fill codes.
1557 2001-11-21 Andreas Andersson (e92_aan@e.kth.se)
1560 The format guessing code now guesses right for
1562 More M codes recognized (and later ignored).
1565 2001-11-20 Stefan Petersen (spe@stacken.kth.se)
1567 * src/scm_gerber.c: Backend didn't receive the last
1568 entry in the netlist due to bad loop constraint.
1569 * src/gerber.c: Made sure angles always are positive when
1570 calculating multi quadrant ones.
1571 * src/gerber.c: Improved error detection by checking that
1572 all part of an image is there.
1573 * src/gerber.c: Fix for EagleCad caused other Gerber files
1574 to fail. Only D-code 1-3 on a line should also be considered
1578 2001-11-15 Stefan Petersen (spe@stacken.kth.se)
1580 * src/gerbv.c: Tooltips over radio buttons with name
1587 2001-11-14 Stefan Petersen (spe@stacken.kth.se)
1589 * src/gerbv.c: Changed speed key for zooming in to
1591 * configure.in: Changed version number for release.
1594 2001-11-09 Stefan Petersen (spe@stacken.kth.se)
1596 * src/gerb_image.[hc]: Added.
1597 * src/drill.[hc], src/gerber.[hc], src/scm_gerber.[hc]:
1598 Changed to utilize the new "class", gerb_image.
1601 2001-11-07 Stefan Petersen (spe@stacken.kth.se)
1603 * src/draw.c, src/gerber.c: Implemented multi quadrant arcs.
1604 Calculated with a separate function; should be able to be
1605 combined with single quadrant calculations. Not properly
1606 tested since I need better examples.
1609 2001-11-06 Andreas Andersson (e92_aan@e.kth.se)
1611 * src/drill.h, src/drill.c:
1612 parse_drillfile() now ignores unstandard text in headers.
1613 Also, it now returns the actual unit used (it used to return
1614 the unit of the input file).
1615 Minor fixes, mostly moved stuff around.
1617 2001-11-03 Stefan Petersen (spe@stacken.kth.se)
1619 * src/drill.c, src/scm_gerber.c: Fixed bug causing backend
1620 first not to generate aperture list and then barfing when
1624 2001-11-03 Stefan Petersen (spe@stacken.kth.se)
1626 * src/gerbv.c: Added command line -d|--drill support
1627 for drill files both in graphical mode and batch mode.
1628 Though are drill file tool/apertures not properly handled
1629 by ->scheme converter.
1630 * man/gerbv.1: Changed man page to reflect the new switches.
1632 2001-11-03 Stefan Petersen (spe@stacken.kth.se)
1634 * src/gerber.[hc]: Cleaned up code after latest hack.
1635 * src/scm_gerber.c: Changed format of list delivered to
1636 the backend; no delta center points. Now it's all calculated
1637 center points and angles.
1638 * scheme/gerb-ps.scm: Accept the new list, but doesn't do anything
1642 2001-11-03 Stefan Petersen (spe@stacken.kth.se)
1644 * src/gerber.c: Inserted check for undefined apertures that
1645 was earlier removed.
1648 2001-11-02 Stefan Petersen (spe@stacken.kth.se)
1650 * src/gerber.h, src/gerber.c, src/draw.c: Now almost
1651 all calculation for circles is done when parsing and
1652 not when (re)drawing.
1653 * src/gerbv.c: Removed two unnecessary defines.
1656 2001-10-31 Stefan Petersen (spe@stacken.kth.se)
1658 * src/gerbv.c: Added zooming with scroll wheel on mouse.
1659 * README: Added info on how to configure XFree86 for scroll mouse.
1662 2001-10-28 Stefan Petersen (spe@stacken.kth.se)
1664 * src/gerber.[hc]: Fixed bug causing parser to reports
1665 points with wrong aperture. Pointed out by Dan Christian.
1668 2001-10-30 Andreas Andersson (e92_aan@e.kth.se)
1670 * src/drill.c, src/gerber.h, src/gerber.c
1671 Moved new_image() to the correct place
1674 2001-10-28 Andreas Andersson (e92_aan@e.kth.se)
1677 Added drill.c to SOURCES since it seems to work well enough
1680 Added an input file format guessing function.
1681 Some kludges to get around scaling problems.
1683 Separated File/Open command into File/Open Gerber... and
1684 File/Open Drill... Added functions to open drill files.
1686 A few speling errors fixed.
1689 2001-10-28 Stefan Petersen (spe@stacken.kth.se)
1691 * src/draw.c, src/gerber.h, src/gerber.c, src/scm_gerber.c:
1692 aperture array is now full size and array index is very
1696 2001-10-27 Stefan Petersen (spe@stacken.kth.se)
1698 * src/*.[ch]: typedef:ed all internal structs to *_t
1703 2001-10-27 Stefan Petersen (spe@stacken.kth.se)
1705 * src/gerber.[hc]: EagleCad generates broken Gerber.
1706 I kindly detect and then tries to run as nothing
1707 happened. Disable kludge with commenting out
1708 EAGLECAD_KLUDGE in src/gerber.h.
1709 This was pointed out to me by Dan Christian and
1710 later confirmed by Fredrik Jonsson sent me some
1711 examples. Thanks guys!
1712 * AUTHORS/CONTRIBUTORS: Added latest bunch of contributing
1714 * configure.in: Updated version to 0.0.4 before release.
1717 2001-10-24 Stefan Petersen (spe@stacken.kth.se)
1719 * src/draw.[hc]: Added. Extracted drawing functions from
1721 * src/gerbv.c: Removed add drawing functions into draw.c.
1722 Also minor clean ups. Fixed #def's of Guile support.
1723 * src/Makefile.am: Added draw.c as src file.
1726 2001-10-22 Stefan Petersen (spe@stacken.kth.se)
1728 * example/*: Cleaned out numpres.pcb.* to a separate dir
1729 and added a example received from Joachim Jansen on
1730 separate aperture files.
1733 2001-10-21 Stefan Petersen (spe@stacken.kth.se)
1735 * gerbv.c: Changed how cw and ccw is handled when drawing
1736 arcs to avoid swapping of start and stop points.
1737 * gerbv.c: Red dots at "aperture macros wanna-be's" scale
1738 with ordinary scale, so they don't disappear when scaling
1742 2001-10-09 Stefan Petersen (spe@stacken.kth.se)
1744 * gerber.h, gerber.c: Added 'D' as possible Format
1745 Statement after patches from Uwe Bonnes
1746 <bon@elektron.ikp.physik.tu-darmstadt.de>. Thanks!
1747 * scm_gerber.c: Broke out omit_zeros_t to scm type
1748 conversion and added 'explicit to this type.
1751 2001-09-03 Stefan Petersen (spe@stacken.kth.se)
1753 * configure.in: fixed bug when testing for opt_backend_dir
1754 causing configure to fail at least on Solaris.
1755 * INSTALL: updated with info now that automake's in use.
1758 2001-09-02 Stefan Petersen (spe@stacken.kth.se)
1760 * build-release, rebuild-conf: missing files when running
1761 automake are now copied instead of linked. Thanks
1762 Dan <mcmahill@mtl.mit.edu> for reporting this.
1765 2001-08-31 Stefan Petersen (spe@stacken.kth.se)
1767 * Splitted AUTHORS to AUTHORS and CONTRIBUTORS
1768 * src/gerb-ps.scm: removed
1769 * build_release uses anonymous cvs from sourceforge
1770 to build the release.
1771 * src/scm_gerber.c, src/gerbv.c:
1772 Now the scheme backend receives the name of the parsed file
1773 * scheme/gerb-ps.scm: Utilizes the above feature by creating output
1774 filename by prepending input filename with ".ps"