Werner Almesberger
3e236d0456
eeshow/: output progress messages with "progress"
2016-08-11 17:44:26 -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
1a7c311c87
eeshow/lib-render.c (draw_pin_name): "~" means "no name"
2016-08-11 10:08:28 -03:00
Werner Almesberger
5a2324169e
eeshow/: properly handle fake history record for uncommitted changes
2016-08-11 03:24:34 -03:00
Werner Almesberger
2ef7eab861
eeshow/lib-render.c (draw_pin_name): skip initial ~ in pin name
2016-08-11 03:09:23 -03:00
Werner Almesberger
82635e8a41
eeshow/sch-parse.c (parse_line): use sub-sheet name as title, instead of title
...
In Anelok, all sheets have the same title, but different sub-sheet names.
So this is probably a more reliable heuristic.
2016-08-11 02:49:40 -03:00
Werner Almesberger
7cc2142e83
eeshow/sch-parse.c: remove #include left over from debugging
2016-08-11 02:44:33 -03:00
Werner Almesberger
f6352219b1
eeshow/sch-render.c (render_sheet): place subsheet labels correctly
2016-08-11 02:43:01 -03:00
Werner Almesberger
353aec1863
eeshow/dwg.c (dwg_hlabel): style for tri-state is the same as for bidir
2016-08-11 02:42:37 -03:00
Werner Almesberger
bddbad65f1
eeshow/misc.c (matrix_to_angle, matrix_is_mirrored): add matrix 0, -1, 1, 0
...
Probably mirrored + 270 deg.
2016-08-11 02:35:56 -03:00
Werner Almesberger
06d5a924c6
eeshow/: support component aliases
2016-08-11 02:32:00 -03:00
Werner Almesberger
3e102752f6
eeshow/gui.c (select_subsheet): do nothing if we didn't load subsheets
2016-08-11 01:49:49 -03:00
Werner Almesberger
f5c908c36f
eeshow/gui.c: proof-of-concept implementation of jumping by glabel
...
What's still missing:
- don't require click to dehover
- help to find glabel on destination sheet
- help with finding glabel on current sheet
- avoid darkened overlap
- maybe indicate in/out/bidir/passive
2016-08-11 01:27:59 -03:00
Werner Almesberger
cfa25b4b4c
eeshow/gui.c: show glabel pop-up on glabel
2016-08-10 23:47:08 -03:00
Werner Almesberger
0fdce017fb
eeshow/: make glabels hoverable (WIP)
2016-08-10 21:50:07 -03:00
Werner Almesberger
08de2f7b4b
eeshow/sch.h (sch_obj_glabel): indicate global labels (in data) more clearly
2016-08-10 20:49:01 -03:00
Werner Almesberger
d63b534fb3
eeshow/gui.c: show sheet number on hover
2016-08-10 20:41:33 -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
2ab72ab0e3
eeshow/gui.c (sheet_selector_recurse): we can now jump to the exact sheet
...
No need for the "go up" hack.
2016-08-10 20:24:03 -03:00
Werner Almesberger
97de1dda47
eeshow/gui.c (struct gui_sheet): record ctx, to allow for simpler callbacks
2016-08-10 20:20:51 -03:00
Werner Almesberger
cf2ca585f5
eeshow/gui.c: write down some more thoughts on making caching better
2016-08-10 20:15:07 -03:00
Werner Almesberger
06235a3966
Merge branch 'master' of projects.qi-hardware.com:eda-tools
2016-08-10 19:56:30 -03:00
Werner Almesberger
9524447bf1
eeshow/sch.h (struct sheet.parent): remove; we can just record it locally
2016-08-10 19:41:17 -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
77c0e07590
aeeshow/sch.h, sch-parse.c: record subsheets in parent, for future caching
2016-08-10 16:33:40 -03:00
Werner Almesberger
b6975e3998
eeshow/gui.c: only parse libraries if any have changed
...
This reduced the time for
./eeshow -N-150 -r neo900.lib /home/qi/kicad-libs/components/powered.lib /home/n9/ee/hw/neo900.sch
from 10.3 (not caching anything) s to 8.3 s (caching libraries).
2016-08-10 16:17:58 -03:00
Werner Almesberger
fb6d6c026b
eeshow/git-file.c (related_other_repo): print warning only once
2016-08-10 16:03:16 -03:00
Werner Almesberger
ab613fcc86
eeshow/lib-parse.c (lib_parse_file): separate "core" from lib_parse
2016-08-10 15:26:03 -03:00
Werner Almesberger
4a2177e041
eeshow/gui.c (add_hist): avoid excessive use of "(*anchor)"
2016-08-10 14:07:03 -03:00
Werner Almesberger
971ba27131
eeshow/gui.c (struct gui_hist.hist): rename to vcs_hist
...
Removing some ambiguity.
2016-08-10 14:05:11 -03:00
Werner Almesberger
3d794c5965
eeshow/file.c, git-file.c: give access to object IDs, for caching
2016-08-10 13:52:56 -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
02e4d6e071
eeshow/TODO: update, add more GUI-related items
2016-08-10 09:08:15 -03:00
Werner Almesberger
539f72b0d9
eeshow/gui.c: move style definitions to gui-style.h
2016-08-09 19:21:02 -03:00
Werner Almesberger
ea3f98c569
eeshow/gui-style.h, gui-style.c: remove unused styles
2016-08-09 19:14:15 -03:00
Werner Almesberger
e520f20532
eeshow/gui-style.h, gui-style.c: remove unused styles
2016-08-09 19:07:10 -03:00
Werner Almesberger
2682625e7d
eeshow/gui.c (setup_styles): we no longer need this (compose on the fly)
2016-08-09 19:05:03 -03:00
Werner Almesberger
672228148d
eeshow/gui.c: replace {curr,last}_hist with {new,old}_hist
...
Since we already change the UI paradigm, this greatly simplifies the code.
2016-08-09 19:01:05 -03:00
Werner Almesberger
2bd452d3b3
eeshow/gui.c: redesign selection history to use old/new paradigm (WIP)
...
Also improved visual representation.
2016-08-09 18:28:59 -03:00
Werner Almesberger
6bb814bae6
eeshow/gui-over.h: use struct for color, instead of array
...
That way, we can use assignments on them.
2016-08-09 16:01:01 -03:00
Werner Almesberger
f973abd98c
eeshow/gui-over.c: move styles to gui-style.c
2016-08-09 15:30:30 -03:00
Werner Almesberger
315494d617
eeshow/diff.c: make red a little less dominant
2016-08-09 14:19:21 -03:00
Werner Almesberger
29f4db55ed
eeshow/gui.c: newer revision is on top and in diffs it's green
2016-08-09 14:16:05 -03:00
Werner Almesberger
afe744c63e
eeshow/gui.c: clicking outside the history list now closes it
2016-08-09 13:28:27 -03:00
Werner Almesberger
bfd2ef39a2
eeshow/gui-over.c: style is now copied, not just referenced
...
This way, we can generate styles on the fly and won't have to manage a
huge collection of pre-designed styles.
2016-08-09 13:13:18 -03:00
Werner Almesberger
bbb375ce26
eeshow/gui.c: show clickable overlay boxes also for parents of current sheet
2016-08-09 12:55:29 -03:00
Werner Almesberger
629b9356e2
eeshow/: fix offset calculation and also get rid of rounding artefacts
2016-08-09 12:28:21 -03:00
Werner Almesberger
cc3befe110
eeshow/diff.c (diff_to_canvas): simplify offset calculation
2016-08-09 12:08:08 -03:00
Werner Almesberger
d4e3018c12
eeshow/gui.c (go_to_sheet): don't try to access history if we have none
2016-08-09 12:03:36 -03:00
Werner Almesberger
d320dbbf2b
eeshow/diff.c (diff_to_canvas): fix offset calculation
2016-08-09 11:21:52 -03:00