1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 12:32:24 +02:00
Commit Graph

871 Commits

Author SHA1 Message Date
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
Werner Almesberger
3c73ad6521 sch2fig/test.sch: s/Text, Left, Normal, 100 mil/Text, Left, Bold, 100 mil/ 2016-07-26 18:37:35 -03:00
Werner Almesberger
8db4055882 sch2fig/sch.c (draw_text, sch_parse): support text left, down; ignore busses 2016-07-26 18:36:46 -03:00
Werner Almesberger
f9140bc53f sch2fig/misc.c (matrix_to_angle, matrix_is_mirrored): 1 0 0 1 and 0 1 -1 0
Tentative support. Untested.
2016-07-26 18:35:51 -03:00
Werner Almesberger
47707d700c sch2fig/lib.c (lib_parse): zero2 seems to be text style, ignore 2016-07-26 18:35:14 -03:00
Werner Almesberger
4d75a7f00e sch2fig/Makefile (neo900.pdf): first sheet is #2 2016-07-26 18:10:43 -03:00
Werner Almesberger
e4f3d4944f sch2fig/neo900-template.fig: show BIG sheet number 2016-07-26 18:10:18 -03:00
Werner Almesberger
22bdd42188 sch2fig/sch2pdf: pass sheet number in <NUMBER>; option -n num to set start 2016-07-26 18:09:28 -03:00
Werner Almesberger
8903dd8db7 sch2fig/lib.c (draw_text): support component text orientation other than 0 deg
This is for plain text. Pins and fields already supported rotation before.
2016-07-26 17:48:09 -03:00
Werner Almesberger
0ddd4dbbb3 sch2fig/lib.c (lib_parse): replace all ~ in unquoted strings with spaces 2016-07-26 17:38:12 -03:00
Werner Almesberger
252e92fe64 sch2fig/fig.c (fig_label): offset was reversed for "up" 2016-07-26 14:05:25 -03:00
Werner Almesberger
629412e25c sch2fig/Makefile (diff): ensure that we build sch2fig 2016-07-26 13:59:14 -03:00
Werner Almesberger
c3f73d8335 sch2fig/lib.c (draw_pin_name): flip pin names rotated by 270 degrees 2016-07-26 13:58:33 -03:00
Werner Almesberger
a36ec41dc6 sch2fig/lib.c (draw_pin_name, draw_pin_num), TODO: support "outside" pin names
There's still a rotation bug affecting this, but this existed before.
2016-07-26 13:45:19 -03:00