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

169 Commits

Author SHA1 Message Date
Werner Almesberger
2775b5cb8d eeshow/gui.c: add zoom in/out with + (or =) and - 2016-08-03 10:05:01 -03:00
Werner Almesberger
c8b8dbd174 eeshow/: add panning (middle mouse button) 2016-08-03 09:57:58 -03:00
Werner Almesberger
e2ff07457c eeshow/: scroll wheel zooms 2016-08-03 09:33:16 -03:00
Werner Almesberger
15d434294d eeshow/cro.h (cro_img_end, cro_img_write, cro_canvas_end): don't need void *
Since we don't call these functions through gfx_ops, we don't need
a void pointer.
2016-08-03 07:41:44 -03:00
Werner Almesberger
76c1f916df eeshow/: add rendering on Gtk canvas 2016-08-03 07:38:57 -03:00
Werner Almesberger
3c13d609f7 eeshow/: implement related_same_repo 2016-08-02 19:21:43 -03:00
Werner Almesberger
a21bc66e55 eeshow/: make "related" work also for repositories (WIP)
For now, we only support the case where the file doesn't exists in any
other repo, which is a common situation with sub-sheets.
2016-08-02 19:13:28 -03:00
Werner Almesberger
ade54c6029 eeshow/cro.c: set line cap to CAIRO_LINE_CAP_ROUND or CAIRO_LINE_CAP_SQUARE
CAIRO_LINE_CAP_ROUND is the same as in FIG mode.

Note that all non-dashed lines disappear when generating PDF and
CAIRO_LINE_CAP_ROUND is set. For now, we just use CAIRO_LINE_CAP_SQUARE.
2016-08-02 17:26:02 -03:00
Werner Almesberger
56b4cb89cc eeshow/cro.c (cr_pdf_end): reduce line width to 0.5 * scale
With 2, lines were far too thick. Note that the 0.5 points (1/72 in) we
have now are roughly twice what XFig uses (1/160 in for PDF or PNG),
yet things don't look very fat there.
2016-08-02 17:16:43 -03:00
Werner Almesberger
0d41488f93 eeshow/sch-parse.c (recurse_sheet): clean up handling of next_obj 2016-08-02 17:12:33 -03:00
Werner Almesberger
9182b9ce48 eeshow/fig.c; define color 32 also when using a template 2016-08-02 16:46:50 -03:00
Werner Almesberger
49a6ebd797 eeshow/: make libraries "related" to the [main] schematics sheet
That way, we can use relative paths on the command line, ideally just
./eeshow foo.lib bar.lib com/plex/path/foo.sch
2016-08-02 16:38:21 -03:00
Werner Almesberger
24522c45e0 eeshow/sch-parse.c (recurse_sheet): move parent/related logic to file.c 2016-08-02 16:27:08 -03:00
Werner Almesberger
4721cdea83 eeshow/Makefile (pdf): new test target to exercise eeshow -r 2016-08-02 16:26:33 -03:00
Werner Almesberger
6793f06aeb eeshow/sch-parse.c, lib-parse.c: use file name and line number from "file" 2016-08-02 15:44:28 -03:00
Werner Almesberger
05af03a0fd eeshow/: split file_read into open/read/close
This is to allow for a better implementation of "related" in the future.
2016-08-02 15:36:18 -03:00
Werner Almesberger
86feabf49c sch2fig/git-file.c, git-file.h: start our git_* identifiers with vcs_git_
Since we'll use this name space more intensely, we don't want to risk
clashes
2016-08-02 14:49:54 -03:00
Werner Almesberger
3864743280 eeshow/: PNG and PDF now write to standard output if -o outfile is absent 2016-08-02 11:46:30 -03:00
Werner Almesberger
a941a5f246 rename sch2fig to eeshow 2016-08-02 11:00:08 -03:00