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

834 Commits

Author SHA1 Message Date
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
Werner Almesberger
7caf1fb84a sch2fig/: text can contain newlines (as '\' 'n'), support them 2016-07-29 22:45:56 -03:00
Werner Almesberger
4427d092ef sch2fig/Makefile (CFLAGS), sch.c: add -O; suppress asprintf warning 2016-07-29 22:17:06 -03:00
Werner Almesberger
b8ec957471 sch2fig/ (rx, ry): consolidate into misc.c (integer version) 2016-07-29 22:13:07 -03:00
Werner Almesberger
626cae2210 sch2fig/genpng: start with the first/index sheet 2016-07-29 22:04:39 -03:00
Werner Almesberger
fa8f76eb12 sch2fig/sch2pdf, Makefile: also process the first page 2016-07-29 22:00:57 -03:00
Werner Almesberger
0dfd3ff7e2 sch2fig/: support sheet and file labels in sheet as well 2016-07-29 21:43:27 -03:00
Werner Almesberger
2e68f85914 sch2fig/: support subsheet box and exported labels (WIP) 2016-07-29 20:48:06 -03:00
Werner Almesberger
8721964568 sch2fig/dwg.c (rx, ry): avoid floating-point errors
Even small errors (i.e., one unit), can cause very visible changes in the
graphical output. Perhaps fig2dev is over-reacting at times.
2016-07-29 19:34:59 -03:00
Werner Almesberger
d63d183198 sch2fig/: support hierarchical labels (with new geometry approach) 2016-07-29 19:30:32 -03:00
Werner Almesberger
ab59b4f952 sch2fig/fig.c: more high-level drawing (labels, etc.) functions to dwg.c 2016-07-28 23:09:38 -03:00
Werner Almesberger
8830b9a223 sch2fig/lib.c (draw_text): also support mirroring
test.sch now renders correctly.
2016-07-28 15:49:14 -03:00
Werner Almesberger
7efb3e7e7e sch2fig/lib.c (draw_text): flipping affects both alignments 2016-07-28 15:42:03 -03:00
Werner Almesberger
538f362b0a sch2fig/lib.c (draw_arc): handle mirroring 2016-07-28 15:25:00 -03:00
Werner Almesberger
ff12e388e2 sch2fig/lib.c (draw_pin_num): correct pin number flipping 2016-07-26 20:56:43 -03:00
Werner Almesberger
e5ba111258 sch2fig/Makefile (test): one negation too many 2016-07-26 20:40:39 -03:00
Werner Almesberger
58cd498ded sch2fig/lib.c (draw_text): support horizontal and vertical alignment 2016-07-26 20:39:08 -03:00
Werner Almesberger
76013a5b04 sch2fig/sch.c, sch.h (decode_alignment): prepare for future sharing with lib.c 2016-07-26 20:34:54 -03:00
Werner Almesberger
fb19aeae0a sch2fig/Makefile: add regression testing based on test.fig 2016-07-26 20:27:12 -03:00