Werner Almesberger
3eaf4567fa
eeshow/git-hist.c (vcs_git_try): ignore repo if empty or corrupted
2016-08-05 08:41:33 -03:00
Werner Almesberger
dc2b477cf8
eeshow/gui.c: show commit on sheet (if available); click to go to history
2016-08-05 08:31:50 -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
17360f7ddd
eeshow/git-file.c (vcs_git_init): common initialization
2016-08-04 19:40:29 -03:00
Werner Almesberger
1c6116a8d6
eeshow/: fix some whitespace issues
...
- trailing space
- space before semicolon
- indentation with spaces instead of tabs (copy & paste)
2016-08-04 19:25:31 -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
9564707f83
eeshow/DEMO: add libgtk-3-dev dependency; add GUI invocation
2016-08-04 10:11:47 -03:00
Werner Almesberger
55cf36b609
eeshow/git-file.c (related_other_repo): mark warning as such; fix typo
2016-08-04 10:10:53 -03:00
Werner Almesberger
8abea1b890
eeshow/gui.c, README: PgUp/PgDn iterate through sheets in sequence
2016-08-04 09:02:33 -03:00
Werner Almesberger
ff17f0e492
eeshow/gui.c: replace ugly and fragile "prev" logic with a simple search
2016-08-04 08:49:54 -03:00
Werner Almesberger
258876ef2c
eeshow/: retrieve title from *.sch; prefer over subsheet name when displaying
2016-08-04 08:42:36 -03:00
Werner Almesberger
1057f2640b
eeshow/README, COPYING.GPLv2
2016-08-04 08:11:36 -03:00
Werner Almesberger
064a561285
eeshow/: add AOI to overlays; clicking on sheet name returns to previous sheet
2016-08-04 07:55:42 -03:00
Werner Almesberger
849b8f33e5
eeshow/gui-aoi.c, gui-aoi.h: split areas of interest from gui.c; abstract better
2016-08-04 07:19:18 -03:00
Werner Almesberger
18f35dc8e0
eeshow/DEMO: update URL for Neo900 "ee" repo
...
Out gitweb is temporarily down, but we have git-daemon up, providing
the much better (faster) git://...
2016-08-03 21:52:28 -03:00
Werner Almesberger
69497551dd
eeshow/gui-over.h, gui-over.c: split overlays from gui.c
2016-08-03 20:55:51 -03:00
Werner Almesberger
2e909029bc
eeshow/gui.c: add overlays; use to show sheet name (WIP)
2016-08-03 19:21:38 -03:00
Werner Almesberger
27b217d062
eeshow/gui.c (redraw): abstract gtk_widget_queue_draw()
2016-08-03 18:49:16 -03:00
Werner Almesberger
d07a5b8d8b
eeshow/gui.c (key_press_event): Home returns to the topmost sheet
2016-08-03 16:00:51 -03:00
Werner Almesberger
9b81d08525
eeshow/gui.c: also zoom to extents when resizing the window
2016-08-03 13:15:25 -03:00
Werner Almesberger
92a0cfab4b
eeshow/gui.c: zoom to extents on [*] and when showing a new sheet
2016-08-03 13:05:30 -03:00
Werner Almesberger
7630325ae6
eeshow/gui.c: delete/backspace return to previous sheet
2016-08-03 12:34:33 -03:00
Werner Almesberger
2135f8ffc9
eeshow/gui.c: add "areas of interest" and selection of sub-sheets
2016-08-03 12:26:22 -03:00
Werner Almesberger
95bc0f06fd
eeshow/sch.h, sch-parse.c: add pointer to sub-sheet to obj.u.sheet
2016-08-03 11:53:03 -03:00
Werner Almesberger
48327e149b
eeshow/sch.h, sch-parse.c, sch-render.c: rename obj.u.sheet to obj.u.name
2016-08-03 11:46:24 -03:00
Werner Almesberger
fb888f3714
eeshow/TODO: split long list by area
2016-08-03 10:57:42 -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
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