path: root/main.c
AgeCommit message (Collapse)AuthorFilesLines
2016-08-28file/git-hist.c, gui/: support multiple heads; update GUI accordinglyWerner Almesberger1-4/+1
While we try to iterate HEAD first, this won't result in HEAD coming out on top if there is another branch that is ahead of HEAD. While we could try some heuristics to avoid this, it'll be better to just sort the whole list first by (partial) git history order and then by date. That way, the result will never be too far from what a human user will expect to see.
2016-08-27file/git-hist.h (struct hist, struct history): prepend vcs_Werner Almesberger1-2/+2
2016-08-27file/git-hist.c: introduce history descriptor to API, removing global "history"Werner Almesberger1-3/+3
This will be used for more things in the future.
2016-08-27non-interactive diff now exits with 0 if no differences, 1 if differencesWerner Almesberger1-2/+3
2016-08-25eeshow -V now also shows the build dateWerner Almesberger1-1/+1
2016-08-25main.c (main): free file names (give valgrind something to trip over)Werner Almesberger1-0/+9
2016-08-25main..c (main): make project file "leader" of libs, just like in the GUIWerner Almesberger1-1/+2
This is mainly for consistency. Not entirely sure which way is "more right". In theory every file could be in a separate repo, with wildly different commit rates, but ...
2016-08-25gui/: "struct gui_ctx *ctx" is now "struct gui_ctx *gui"Werner Almesberger1-1/+1
2016-08-25option -L to suppress page layout; non-interactive diff always implies -LWerner Almesberger1-1/+4
This means that we can now do things like eeshow neo900_SS_5.sch -- \ diff -s 2 -o diff.png neo900_SS_5.sch
2016-08-25undocumented option -O to disable overline drawing (in case it crashes)Werner Almesberger1-1/+4
2016-08-25main.c (main): select C localeWerner Almesberger1-0/+3
Else we fail to parse things containing decimal points.
2016-08-24gfx/cro.c (cr_text): experimental Pango support; option -P to enableWerner Almesberger1-1/+4
2016-08-24gfx/gfx.c (gfx_args): don't need to reset "optind" all over the placeWerner Almesberger1-2/+0
2016-08-24separate argument list from gfx_init; related API changesWerner Almesberger1-1/+3
2016-08-24remove global gfx state (pass context as argument)Werner Almesberger1-11/+12
2016-08-23main.c: new option -e to enable rendering of pin typesWerner Almesberger1-2/+11
2016-08-22eshow/main.c: support using project file as leader (instead of top sheet)Werner Almesberger1-9/+17
2016-08-22eeshow/: change file name handling from positional to be extension-drivenWerner Almesberger1-32/+32
This also enables versioning for page layouts. We no longer need the option -P.
2016-08-22eeshow/main.c (main): draw page layout also in non-interactive modeWerner Almesberger1-0/+4
2016-08-22eeshow/gui/: experimental support for page layout; option -P pl-file.kicad_wksWerner Almesberger1-2/+19
Unlike libraries and schematics, page layouts are not (yet) tracked through revision history.
2016-08-22eeshow/main.c: eeshow -S <file parses S-exprs and dumps to stdoutWerner Almesberger1-2/+24
2016-08-21eeshow/gfx/cro.c: support PDF TOC addition; option -T to suppress itWerner Almesberger1-2/+3
2016-08-21eeshow/gfx/gfx.c (gfx_sheet_name): pass sheet name (title) to driverWerner Almesberger1-0/+1
2016-08-19eeshow/: eeshow -V prints the commit from which eeshow was builtWerner Almesberger1-2/+8
2016-08-18eeshow/main.c: run under gdb if argv[1] is "gdb"Werner Almesberger1-1/+16
I.e., instead of eeshow foo bar invoke with eeshow gdb foo bar
2016-08-17eeshow/: util.h and diag.c go to misc/Werner Almesberger1-2/+2
2016-08-17eeshow/: move graphics low-level functions to gfx/Werner Almesberger1-4/+4
2016-08-17eeshow/: move parsing and high-level rendering to kicad/Werner Almesberger1-2/+2
2016-08-17eeshow/: move file and history access to file/Werner Almesberger1-2/+2
2016-08-17eeshow/fmt-pango.c, fmt-pango.h: also move to gui/Werner Almesberger1-1/+1
2016-08-17eeshow/: move gui* into subdirectory gui/Werner Almesberger1-1/+1
2016-08-12eeshow/gui.c: limit = 0 means "no limit", not "no revisions"Werner Almesberger1-1/+1
2016-08-12eeshow/: use dedicated functions for diagnostics, instead of fprintf and exitWerner Almesberger1-8/+3
2016-08-11eeshow/main.c (verbose): move to new file diag.cWerner Almesberger1-3/+1
In preparation of a more flexible diagnostics system.
2016-08-10eeshow/util.h (alloc_type_n): get rid of all these alloc_size(sizeof(foo), n)Werner Almesberger1-3/+3
2016-08-10eeshow/: simple caching of sheetsWerner Almesberger1-1/+1
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, 77c0e075907a0dc97712c10ed63442da4168bd0c
2016-08-10eeshow/: option -N depth to limit history depth; -N-depth exits after parsingWerner Almesberger1-8/+13
2016-08-06eeshow/: use printf-style formatting for overlay text; test mode -F fmt stringWerner Almesberger1-1/+14
2016-08-05eeshow/main.c (usage): update to show GUI invocationWerner Almesberger1-2/+5
2016-08-05eeshow/main.c (main): gtk_init removes --, so only call it if we have noneWerner Almesberger1-2/+3
2016-08-05eeshow/ (file_open, *_parse): return 0 on error (may still exit)Werner Almesberger1-5/+10
2016-08-05eeshow/lib-parse.c (lib_free): add cleanup of component dataWerner Almesberger1-0/+1
2016-08-05eeshow/sch-parse.c (sch_free): add cleanup of schematics dataWerner Almesberger1-0/+2
2016-08-05eeshow/gui.c: get only list of file names from main, parse on its ownWerner Almesberger1-3/+11
2016-08-04eeshow/: if sheet is in repo, retrieve history, display in GUI on Up/Down (WIP)Werner Almesberger1-1/+1
This isn't useful yet.
2016-08-04eeshow/: option -H path_into_repo to list branched history of repositoryWerner Almesberger1-2/+17
2016-08-03eeshow/: separate sheet context from GUI ctx; record all sheets we haveWerner Almesberger1-1/+1
"record" as in "render with record_*"
2016-08-03eeshow/: add rendering on Gtk canvasWerner Almesberger1-3/+14
2016-08-02eeshow/: make libraries "related" to the [main] schematics sheetWerner Almesberger1-3/+8
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-02eeshow/: split file_read into open/read/closeWerner Almesberger1-1/+5
This is to allow for a better implementation of "related" in the future.