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
de8f992158
eeshow/gui/render.c: NULL backpointers for delta; don't try to pl_render
2016-08-22 07:01:37 -03:00
Werner Almesberger
0550b016ee
eeshow/gui/: change zoom system to use float; reduce step from 2 to 2^(1/3)
2016-08-22 06:41:03 -03:00
Werner Almesberger
dc4c29c5be
eeshow/: support format symbols %%, %N, %S, and %T in page layout
2016-08-22 05:38:19 -03:00
Werner Almesberger
b925268c90
eeshow/gui/common.h (struct gui_sheet): add back link to history
2016-08-22 05:37:23 -03:00
Werner Almesberger
b5a29b85da
eeshow/diag.c (progress): don't require user to supply newline
2016-08-22 05:06:05 -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
328ddd9ca7
eeshow/gui/history.c (hover_history): compensate jump on dehover
2016-08-21 23:13:27 -03:00
Werner Almesberger
b844bbfed2
eeshow/gui/aoi.c (aoi_hover): also indicate from which direction we enter
2016-08-21 23:02:28 -03:00
Werner Almesberger
c6498a8cc1
eeshow/gui/: hover callback now indicates in which direction we left
2016-08-21 22:31:52 -03:00
Werner Almesberger
3e5c229291
eeshow/gui/history.c (click_history): must go_to_sheet to switch to revision
...
... also if we don't diff.
2016-08-21 12:50:00 -03:00
Werner Almesberger
b6821089a5
eeshow/gui/render.c (render_delta): we had red and green (old/new) reversed
2016-08-21 11:53:57 -03:00
Werner Almesberger
505ffe0c17
eeshow/gui/gui.c: forgot to #include icons.h, oops
2016-08-21 02:41:19 -03:00
Werner Almesberger
c8dfe1c4f6
eeshow/Makefile, gui/sheet.c: grow icons from 16 to 20 pixels reduce padding
2016-08-21 02:01:36 -03:00
Werner Almesberger
e5e53ec904
eeshow/gui/sheet.c (add_delta): use pretty icons instead of unicode
2016-08-21 01:26:44 -03:00
Werner Almesberger
e33f755179
eeshow/: add icon loader and icons for "delta" and "diff"
2016-08-21 01:26:31 -03:00
Werner Almesberger
5a7d37ce73
eeshow/gui/over.c, over.h: support icon overlays
2016-08-21 01:24:42 -03:00
Werner Almesberger
3affbc3c3c
eeshow/gui/over.c, over.h: make coordinates "int" (to avoid bad surprises)
2016-08-20 23:57:56 -03:00
Werner Almesberger
e88fd0ac6c
eeshow/gui/over.c (overlay_draw): break down into more manageable parts
2016-08-20 23:56:16 -03:00
Werner Almesberger
b7fc07b650
eeshow/gui/render.c (on_draw_event): also mark changed subsheets in delta mode
2016-08-20 23:27:02 -03:00
Werner Almesberger
0d2b024d9c
eeshow/gui/ (aoi_click): also protect from access after free
...
Unlike aoi_hover, aoi_click was not observed to actually run into this
problem. But better safe than sorry.
2016-08-20 20:42:34 -03:00
Werner Almesberger
eeda1c1700
eeshow/gui/ (aoi_hover): could cause an access after free
2016-08-20 20:39:08 -03:00
Werner Almesberger
dbcacbde0c
eeshow/gui/glabel.c (hover_glabel): more discussion of "hanging" pop-ups
2016-08-20 18:29:54 -03:00
Werner Almesberger
1e13572283
eeshow/gui/sheet.c (add_delta): show inverted greek delta when in delta mode
2016-08-20 09:30:38 -03:00
Werner Almesberger
23a2340ca8
eeshow/gui/render.c: resurrect delta mode (A toggles between delta and diff)
2016-08-20 09:01:59 -03:00
Werner Almesberger
b5d2b05757
eeshow/gui/render.c (hack): experimental highlighting of changed sub-sheets
...
This doesn't quite work yet, due to delta's sheet_eq being overzealous.
But we get the foot in :)
2016-08-20 08:57:41 -03:00
Werner Almesberger
169e34d50f
eeshow/: Esc cancels current action
2016-08-20 07:50:15 -03:00
Werner Almesberger
654c97e89e
eeshow/: don't use ? for help
...
We may want to use it in the future for searching (/ forward, ? backward, etc.)
2016-08-20 07:01:42 -03:00
Werner Almesberger
67fab71ed7
eeshow/gui/gui.c (gui): show build commit in window title
2016-08-19 21:30:58 -03:00
Werner Almesberger
6b901399ce
eeshow/gfx/diff.c (diff_to_canvas): draw caller-supplied areas
...
These are for future highlighting. WIP.
2016-08-19 21:25:48 -03:00
Werner Almesberger
f244fa09c7
eeshow/gui/gui.c (add_hist): initialize hist->libs_open
...
This is normally done by parse_files, except when we can't find the
schematics file.
2016-08-19 20:46:48 -03:00
Werner Almesberger
1805118940
eeshow/gui/: sel_split to select 2nd version; sel_only doesn't set old_hist
2016-08-19 17:58:03 -03:00
Werner Almesberger
c612cd331b
eeshow/: make WebKit optional; add Gtk-based fallback viewer
2016-08-19 17:35:41 -03:00
Werner Almesberger
3307eb5b05
eeshow/gui/history.c (click_history): jumped to wrong sheet on sel_new + swap
...
In this case, both (!) old and new changed:
old old -> new new
selected -> new old
This caused eeshow to lose sheet navigation.
Reported by Joerg Reisenweber.
2016-08-19 15:30:42 -03:00
Werner Almesberger
35bc584767
eeshow/gui/help.c: properly support the "destroy" event
2016-08-19 14:47:11 -03:00
Werner Almesberger
f8c00fb6a2
eeshow/gui/help.c (new_help_window): set default font size to 10 (was 16)
2016-08-19 14:37:35 -03:00
Werner Almesberger
ebbb986768
eeshow/: add online help with h or ? (WIP)
2016-08-19 14:34:25 -03:00
Werner Almesberger
c6db84aa26
eeshow/gui/sheet.c (toggle_old_new): Tab toggles between diff_old and diff_new
2016-08-19 12:34:37 -03:00
Werner Almesberger
2b0640f15d
eeshow/gui/: in diff_old, use sheet from old_hist for AoIs
2016-08-19 12:24:05 -03:00
Werner Almesberger
133a9c8ae3
eeshow/gui/sheet.c: clicking on the revision overlays changes diff mode
2016-08-19 07:34:31 -03:00
Werner Almesberger
c012addf4a
eeshow/gui/sheet.c (revision_overlays_diff): support selection of diff mode
2016-08-19 07:24:25 -03:00
Werner Almesberger
4f9a9f1d0d
eeshow/gui/sheet.c (sheet_key): recognize GDK_KEY_KP_Home, GDK_KEY_KP_Delete
2016-08-19 07:09:57 -03:00
Werner Almesberger
006d83057b
eeshow/gui/: difference display can now be switched with New/Old/Diff
...
Still need a GUI way to do the same.
2016-08-19 07:08:22 -03:00
Werner Almesberger
6ff7d63312
eeshow/gui/: highlight glabels
2016-08-19 06:49:47 -03:00
Werner Almesberger
b4df01a28d
eeshow/TODO, gui/glabel.c (hover_glabel): update TODO; explain hanging pop-ups
2016-08-19 06:05:42 -03:00
Werner Almesberger
2b80fcad45
eeshow/gui/glabel.c: allow other glabels to replace pop-up
2016-08-19 05:51:05 -03:00
Werner Almesberger
96fa1a2f62
eeshow/gui/aoi.c: make searches only consider AoIs supporting desired function
2016-08-19 05:35:37 -03:00
Werner Almesberger
10c1d0ede0
eeshow/gui/aoi.c (aoi_hover): use in_aoi instead of open-coding the comparison
2016-08-19 05:30:58 -03:00
Werner Almesberger
7eff14b7cd
eeshow/gui/: use overlay_draw_all_d for glabels, due to offsets
...
The offsets can move the coordinates across zero, thus flipping the alignment.
overlay_draw_all_d is immune to this.
2016-08-19 05:22:42 -03:00
Werner Almesberger
85a47724d7
eeshow/gui/glabel.c (add_dest_overlay): show "(unnamed)", not "(null)"
...
... for unnamed sheet.
2016-08-19 05:09:00 -03:00