1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-07-01 03:36:23 +03:00
Commit Graph

35 Commits

Author SHA1 Message Date
Werner Almesberger
1b250bd467 eeshow/: change file name handling from positional to be extension-driven
This also enables versioning for page layouts.
We no longer need the option -P.
2016-08-22 20:49:29 -03:00
Werner Almesberger
af626042f8 eeshow/main.c (main): draw page layout also in non-interactive mode 2016-08-22 07:18:47 -03:00
Werner Almesberger
6c4eae22e1 eeshow/gui/: experimental support for page layout; option -P pl-file.kicad_wks
Unlike libraries and schematics, page layouts are not (yet) tracked through
revision history.
2016-08-22 04:06:59 -03:00
Werner Almesberger
0caae88fa9 eeshow/main.c: eeshow -S <file parses S-exprs and dumps to stdout 2016-08-22 01:12:21 -03:00
Werner Almesberger
5fd877a6f8 eeshow/gfx/cro.c: support PDF TOC addition; option -T to suppress it 2016-08-21 11:37:47 -03:00
Werner Almesberger
7652f3a88f eeshow/gfx/gfx.c (gfx_sheet_name): pass sheet name (title) to driver 2016-08-21 11:32:13 -03:00
Werner Almesberger
a6640058ff eeshow/: eeshow -V prints the commit from which eeshow was built 2016-08-19 19:53:32 -03:00
Werner Almesberger
7c4ee702e0 eeshow/main.c: run under gdb if argv[1] is "gdb"
I.e., instead of
eeshow foo bar
invoke with
eeshow gdb foo bar
2016-08-18 12:06:33 -03:00
Werner Almesberger
c4811c8dd6 eeshow/: util.h and diag.c go to misc/ 2016-08-17 21:37:15 -03:00
Werner Almesberger
9829f7070f eeshow/: move graphics low-level functions to gfx/ 2016-08-17 21:28:42 -03:00
Werner Almesberger
e0c1e533f4 eeshow/: move parsing and high-level rendering to kicad/ 2016-08-17 21:15:44 -03:00
Werner Almesberger
097192b7b4 eeshow/: move file and history access to file/ 2016-08-17 21:07:13 -03:00
Werner Almesberger
b9329b09d2 eeshow/fmt-pango.c, fmt-pango.h: also move to gui/ 2016-08-17 21:00:02 -03:00
Werner Almesberger
4d40267974 eeshow/: move gui* into subdirectory gui/ 2016-08-17 20:54:25 -03:00
Werner Almesberger
d1fdcaeab4 eeshow/gui.c: limit = 0 means "no limit", not "no revisions" 2016-08-12 10:42:03 -03:00
Werner Almesberger
62ca12c2da eeshow/: use dedicated functions for diagnostics, instead of fprintf and exit 2016-08-12 10:40:55 -03:00
Werner Almesberger
5581a34444 eeshow/main.c (verbose): move to new file diag.c
In preparation of a more flexible diagnostics system.
2016-08-11 16:36:24 -03:00
Werner Almesberger
8a0a79e461 eeshow/util.h (alloc_type_n): get rid of all these alloc_size(sizeof(foo), n) 2016-08-10 20:28:31 -03:00
Werner Almesberger
8f352832e0 eeshow/: simple caching of sheets
We only reuse previous sheets if ...

- they have no sub-sheets, and
- all the libraries are identical.

This reduces the -N-150 time from 8.3 s (caching only libraries) to 4.3 s.

Since we only need to know whether there are sub-sheets, but not what
exactly they are, we can also partially undo the previous commit,
77c0e07590
2016-08-10 19:37:44 -03:00
Werner Almesberger
54922dc343 eeshow/: option -N depth to limit history depth; -N-depth exits after parsing 2016-08-10 09:08:22 -03:00
Werner Almesberger
18c3b6e476 eeshow/: use printf-style formatting for overlay text; test mode -F fmt string 2016-08-06 19:14:31 -03:00
Werner Almesberger
fffa29bbb3 eeshow/main.c (usage): update to show GUI invocation 2016-08-05 21:19:56 -03:00
Werner Almesberger
e949130daf eeshow/main.c (main): gtk_init removes --, so only call it if we have none 2016-08-05 21:14:26 -03:00
Werner Almesberger
f4944a5da9 eeshow/ (file_open, *_parse): return 0 on error (may still exit) 2016-08-05 21:02:57 -03:00
Werner Almesberger
59b7946a5f eeshow/lib-parse.c (lib_free): add cleanup of component data 2016-08-05 20:34:15 -03:00
Werner Almesberger
c54bf3de06 eeshow/sch-parse.c (sch_free): add cleanup of schematics data 2016-08-05 20:25:58 -03:00
Werner Almesberger
5f0678097f eeshow/gui.c: get only list of file names from main, parse on its own 2016-08-05 10:24:39 -03:00
Werner Almesberger
17e70172bf eeshow/: if sheet is in repo, retrieve history, display in GUI on Up/Down (WIP)
This isn't useful yet.
2016-08-04 20:35:41 -03:00
Werner Almesberger
e18c146323 eeshow/: option -H path_into_repo to list branched history of repository 2016-08-04 16:45:48 -03:00
Werner Almesberger
1771c635b0 eeshow/: separate sheet context from GUI ctx; record all sheets we have
"record" as in "render with record_*"
2016-08-03 10:54:06 -03:00
Werner Almesberger
76c1f916df eeshow/: add rendering on Gtk canvas 2016-08-03 07:38:57 -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
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
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