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