1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-14 06:00:18 +02:00
Commit Graph

502 Commits

Author SHA1 Message Date
Werner Almesberger
c6713dfbd8 sch2lib/: avoid global variables for libraries 2016-08-01 11:47:39 -03:00
Werner Almesberger
a03e79de7c sch2fig/: rename "layer" to "record", and use "layer" for layers in recordings
Clearing up massively confusing naming.
2016-08-01 11:32:22 -03:00
Werner Almesberger
c50e7116cf sch2fig/cairo.c (cr_text_width): add 5%
Cairo seems to underestimate the width a little, as evidenced by G_LEFT_PASS
in test.sch
2016-08-01 11:01:28 -03:00
Werner Almesberger
15bab1c163 sch2fig/cairo.c: support dashed lines (for *_line); line width 2 also for PNG 2016-08-01 10:52:54 -03:00
Werner Almesberger
dc761d2dc2 sch2fig/: use #848400 for hierarchical labels et al., not #c06000 2016-08-01 10:37:24 -03:00
Werner Almesberger
ae736a0fdf sch2fig/dwg.c (dwg_glabel): tag global labels 2016-08-01 10:27:46 -03:00
Werner Almesberger
065c82cf25 sch2fig/: make *_poly vectors "const"; add tagging capability to gfx API 2016-08-01 10:27:41 -03:00
Werner Almesberger
1d3c7d635b sch2fig/cairo.c (cr_pdf_end): reduce line width from 3 to 2 points
With 3 points, lines get too far in realtion to text and junctions.
2016-08-01 01:41:07 -03:00
Werner Almesberger
55f10b8769 sch2fig/: support multi-page PDF 2016-08-01 01:37:00 -03:00
Werner Almesberger
97ac2297e1 sch2fig/main.c (main): zero optind to reset getopt 2016-08-01 01:33:50 -03:00
Werner Almesberger
d8cef3308f sch2fig/sch-parse.c (parse_field): write back realloc'ed pointer 2016-08-01 01:23:57 -03:00
Werner Almesberger
75e16031a0 sch2fig/Makefile: add a few more $(NAME) dependencies 2016-08-01 01:07:44 -03:00
Werner Almesberger
c49cb4a473 sch2fig/TODO: update 2016-08-01 00:50:44 -03:00
Werner Almesberger
93537be396 sch2fig/: add Cairo PDF driver 2016-08-01 00:37:32 -03:00
Werner Almesberger
4ef07e5e29 sch2fig/: rename Cairo PNG driver from "cairo" to "png" 2016-08-01 00:18:22 -03:00
Werner Almesberger
d9eedec02a sch2fig/: new cairo options -o outfile.png and -s scale 2016-08-01 00:11:53 -03:00
Werner Almesberger
8590b960e9 sch2fig/: use bounding box to create PNG of correct size 2016-07-31 23:53:14 -03:00
Werner Almesberger
dd1eb7ddc3 sch2fig/: record drawing operations (for Cairo) and sort by layer 2016-07-31 23:08:04 -03:00
Werner Almesberger
ae7924a01c sch2fig/Makefile (png, pngref): add regression test image also for Cairo-PNG 2016-07-31 23:06:46 -03:00
Werner Almesberger
f3ed4edbd2 sch2fig/: graphics backend can be selected from the command line 2016-07-31 21:52:35 -03:00
Werner Almesberger
01fed0d456 sch2fig/fig.c (fig_init): remove debugging code - oops ! 2016-07-31 21:34:18 -03:00
Werner Almesberger
8491af873e sch2fig/: extend command-line parsing to graphics drivers 2016-07-31 21:16:39 -03:00
Werner Almesberger
b8b259bc8d sch2fig/: command-line option -r to enable recursive sheet parsing and output 2016-07-31 20:52:18 -03:00
Werner Almesberger
5d392d1097 sch2fig/: recursively parse sub-sheets 2016-07-31 20:10:45 -03:00
Werner Almesberger
52b8384008 sch2fig/TODO: add some more items 2016-07-31 18:51:32 -03:00
Werner Almesberger
72e6ed53f4 sch2fig/style.c: forgot to add, oops 2016-07-31 18:39:02 -03:00
Werner Almesberger
71aeab9ab8 sch2fig/main.c (read_file): move to file.c
This is to allow further I/O abstraction, later.
2016-07-31 15:10:14 -03:00
Werner Almesberger
3e18e7a72e sch2fig/lib.c: split into lib-parse.c and lib-render.c 2016-07-31 14:36:42 -03:00
Werner Almesberger
49a32f38e2 sch2fig/lib.c (struct lib_obj), lib.h: prefix externally visible names with lib_
Where "externally" = "in the compilation unit".
This will soon become global.
2016-07-31 14:26:46 -03:00
Werner Almesberger
b781bd6fc8 sch2fig/sch.c: split into sch-parse.c and sch-render.c 2016-07-31 14:19:43 -03:00
Werner Almesberger
d70f8bc7fe sch2fig/sch.c (draw_text): move to dwg 2016-07-31 14:14:18 -03:00
Werner Almesberger
8dddf961b6 sch2fig/: compile with -Wmissing-prototypes -Wmissing-declarations 2016-07-31 14:07:29 -03:00
Werner Almesberger
b3ffcab90c sch2fig/cairo.c (cr_init): use CAIRO_FORMAT_RGB24 instead of CAIRO_FORMAT_ARGB32 2016-07-31 14:04:39 -03:00
Werner Almesberger
7615675485 sch2fig/text.c (guess_width): move width guessing to the graphics back-ends 2016-07-31 03:28:08 -03:00
Werner Almesberger
6293c1e833 sch2fig/gfx.c (gfx_line): fallback to gfx_poly only drew horizontal lines 2016-07-31 03:17:36 -03:00
Werner Almesberger
d5756a2e0e sch2fig/cairo.c (cr_text): implement 2016-07-31 03:17:10 -03:00
Werner Almesberger
6889fe8691 sch2fig/: make the matrix (int m[6]) "const" everywhere 2016-07-31 01:51:04 -03:00
Werner Almesberger
66ca318dbe sch2fig/sch.c: separate parsing from rendering 2016-07-31 01:48:31 -03:00
Werner Almesberger
50242899d3 sch2fig/: add Cairo (PNG) back-end (WIP) 2016-07-31 00:04:43 -03:00
Werner Almesberger
4e8870d193 sch2fig/: make gfx_ops->line optional; add COLOR_WHITE; add color map 2016-07-30 23:43:49 -03:00
Werner Almesberger
d1657de267 sch2fig/gfx.h (gfx_end), gfx.c: add optional termination function 2016-07-30 23:02:15 -03:00
Werner Almesberger
3b18e8b604 sch2fig/: make *_line accept color and layer from dwg 2016-07-30 21:55:23 -03:00
Werner Almesberger
4267efae0d sch2fig/: abstract graphical output interface 2016-07-30 21:50:02 -03:00
Werner Almesberger
b933c9976f sch2fig/fig.h (enum fig_shape): move to dwg.h and rename 2016-07-30 21:33:36 -03:00
Werner Almesberger
3ca2130db5 sch2fig/: implement fig_wire and fig_bus as dwg_* using fig_poly 2016-07-30 21:21:45 -03:00
Werner Almesberger
402e14d78f sch2fig/: support busses and entries 2016-07-30 21:07:36 -03:00
Werner Almesberger
97a1d46659 sch2fig/test.sch: complete set of bus and wire connections 2016-07-30 21:07:03 -03:00
Werner Almesberger
1f257bdc8a sch2fig/TODO: update 2016-07-30 20:44:40 -03:00
Werner Almesberger
9a3c8e5f0a sch2fig/neo900-template.fig: add copyright notice; grow number; move name a bit 2016-07-29 23:29:55 -03:00
Werner Almesberger
9ac486aef8 sch2fig/sch2pdf: add missing backtick; count properly 2016-07-29 23:29:17 -03:00