1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-23 09:30:18 +02:00
Commit Graph

233 Commits

Author SHA1 Message Date
Werner Almesberger
434d942377 eeshow/gui/over.c (overlay_size, _all): calculate height and width of overlay 2016-08-18 17:06:11 -03:00
Werner Almesberger
d364b60ebe eeshow/gui/over.h, over.c: allow also setting of min/max height 2016-08-18 16:08:12 -03:00
Werner Almesberger
f4208ed2ad eeshow/gui/glabel.c (hover_glabel): separate addition of destination overlay 2016-08-18 16:07:33 -03:00
Werner Almesberger
2f65506cdd eeshow/gui/over.c; add section comments 2016-08-18 14:05:22 -03:00
Werner Almesberger
55647987b5 eeshow/TODO: expand glabel issues 2016-08-18 13:53:37 -03:00
Werner Almesberger
25f3d3c509 eeshow/gui/sheet.c (sheet_drag_end): re-hover glabels after dragging 2016-08-18 13:40:09 -03:00
Werner Almesberger
b4384a72f4 eeshow/gui/input.c (clicked_x, _y): avoid accumulation of conversion errors
Gtk uses floating-point coordinates. The double conversion during dragging
(event -> clicked -> difference with next event) caused dragging to "slow
down" in the X- and Y- direction.
2016-08-18 13:36:06 -03:00
Werner Almesberger
d633fbf91d eeshow/gui/sheet.c (sheet_scroll): call input_update to maybe re-hover glabel 2016-08-18 13:13:06 -03:00
Werner Almesberger
baed3f8a69 eeshow/gui/input.c (input_update): update hovering after coordinate changes
E.g., when zooming in or out.
2016-08-18 13:12:09 -03:00
Werner Almesberger
f8742fa050 eeshow/gui/sheet.c (sheet_setup): wrong use of ctx, broke resizing
... with a segfault.
2016-08-18 12:52:37 -03:00
Werner Almesberger
cfa730459c eeshow/gui/gui.c: move rendering to render.c 2016-08-18 12:41:12 -03:00
Werner Almesberger
bbdf819c85 eeshow/gui/sheet.c: remove glabel pop-up when scrolling
Scrolling changes the geometry and the pop-up ended up at weird places.
2016-08-18 12:25:44 -03:00
Werner Almesberger
cb2cdd59e6 eeshow/gui/gui.c: better sectioning; trim includes 2016-08-18 12:16:13 -03:00
Werner Almesberger
7c4ee702e0 eeshow/main.c: run under gdb if argv[1] is "gdb"
I.e., instead of
eeshow foo bar
invoke with
eeshow gdb foo bar
2016-08-18 12:06:33 -03:00
Werner Almesberger
4ffdeeb910 eeshow/gui/input.c: support hover -> drag; set state to idle after cleanup 2016-08-18 04:56:39 -03:00
Werner Almesberger
f2c8693a77 eeshow/gui/input.c (motion_notify_event): misinterpreted hover_update result
This almost worked, except that it sometimes left hovering on after leaving
an AoI, which then caused a subsequent drag to be handled as hover_click.
This caused the history list sometimes to be closed when trying to drag.
2016-08-18 04:36:14 -03:00
Werner Almesberger
fd18690498 eeshow/gui/input.c: add tracing (-v -v -v); rename input_normal to input_idle 2016-08-18 04:34:51 -03:00
Werner Almesberger
822a14fc55 eeshow/gui/sheet.c: improve sectioning of code 2016-08-18 04:22:27 -03:00
Werner Almesberger
aca913b333 eeshow/gui/history.c: void forward-declaration of history_input_ops 2016-08-18 04:12:14 -03:00
Werner Almesberger
8d3b642fb2 eeshow/gui/history.c: provide complete set of input functions 2016-08-18 04:10:35 -03:00
Werner Almesberger
9792a22799 eeshow/gui/gui.c (eeschema_coord): only used in glabel.c, move there 2016-08-18 04:01:45 -03:00
Werner Almesberger
23fed29423 eeshow/gui/gui.c: move history list to history.c 2016-08-18 03:59:12 -03:00
Werner Almesberger
4ae81be02a eeshow/gui/gui.c: move sheet navigation to sheet.c 2016-08-18 03:50:43 -03:00
Werner Almesberger
4191931c06 eeshow/gui/gui.c: move global label pop-up to glabel.c 2016-08-18 03:07:43 -03:00
Werner Almesberger
6975c2b6d5 eeshow/gui/gui.c: move progress bar handling to progress.c 2016-08-18 02:53:39 -03:00
Werner Almesberger
f981ec1a63 eeshow/gui/gui.c: move common data structures to common.h
Preparing for splitting gui.c into more manageable parts.
2016-08-18 02:48:57 -03:00
Werner Almesberger
ab1948a62c eeshow/gui/gui.c: dragging closes glabel pop-up 2016-08-18 02:44:06 -03:00
Werner Almesberger
6847165604 eeshow/aoi.c, aoi.h: remove dragging support (now in input.c)
The crazy detour through aoi.c and over.c is no longer needed.
2016-08-18 02:13:55 -03:00
Werner Almesberger
d78caddaf9 eeshow/gui/over.h, over.c: remove dragging support (now input.c)
The crazy detour through aoi.c and over.c is no longer needed.
2016-08-18 02:08:02 -03:00
Werner Almesberger
fc1fbece43 eeshow/gui/: bring back scrolling of the history
Now it's more usable than before, since clicking between commits won't
close the history.
2016-08-18 02:05:43 -03:00
Werner Almesberger
547e7059ae eeshow/gui/gui.c: begin moving input (mouse, keyboard) handling to input.c (WIP)
We had input state scattered all over the place. This cleans things up.
We also merge the functions of left and (previously) middle button.

This breaks history panning.
2016-08-18 01:49:20 -03:00
Werner Almesberger
c4811c8dd6 eeshow/: util.h and diag.c go to misc/ 2016-08-17 21:37:15 -03:00
Werner Almesberger
4836dcb0ca eeshow/delta.c: goes to kicad/ 2016-08-17 21:33:10 -03:00
Werner Almesberger
766f1d64f3 eeshow/misc.c: goes to gfx/, too 2016-08-17 21:31:56 -03:00
Werner Almesberger
9829f7070f eeshow/: move graphics low-level functions to gfx/ 2016-08-17 21:28:42 -03:00
Werner Almesberger
c353129172 eeshow/kicad/dwg.h: don't include fig.h; forgot to include text.h in lib.h 2016-08-17 21:17:35 -03:00
Werner Almesberger
e0c1e533f4 eeshow/: move parsing and high-level rendering to kicad/ 2016-08-17 21:15:44 -03:00
Werner Almesberger
097192b7b4 eeshow/: move file and history access to file/ 2016-08-17 21:07:13 -03:00
Werner Almesberger
b9329b09d2 eeshow/fmt-pango.c, fmt-pango.h: also move to gui/ 2016-08-17 21:00:02 -03:00
Werner Almesberger
4d40267974 eeshow/: move gui* into subdirectory gui/ 2016-08-17 20:54:25 -03:00
Werner Almesberger
bcd34eaf7d eeshow/diag.h: use __attribute__((format(printf, ... 2016-08-17 04:43:15 -03:00
Werner Almesberger
7604c64d16 eeshow/DEMO: add Olimex A64-OLinuXino 2016-08-17 04:42:00 -03:00
Werner Almesberger
6f79ecdc3f eeshow/gui.c (show_history): skip (compact) commits without changes 2016-08-17 04:41:27 -03:00
Werner Almesberger
3674d4eb75 eeshow/fmt-pango.c: support %u format; use __attribute__((format... 2016-08-17 04:39:59 -03:00
Werner Almesberger
a0be60f935 eeshow/style.h (COLOR_COMP_DWG_BG): use lighter yellow for background
0xffffc2 is the same color KiCad uses.
2016-08-16 12:27:37 -03:00
Werner Almesberger
f08f43d706 eeshow/fig.c: output all user-defined colors 2016-08-16 12:20:27 -03:00
Werner Almesberger
5edf1923f0 eeshow/TODO: update 2016-08-16 05:19:23 -03:00
Werner Almesberger
18fc781b01 eeshow/DEMO: add c4puter/motherboard as another example 2016-08-16 05:17:05 -03:00
Werner Almesberger
f893e17ed9 eeshow/sch-parse.c (parse_field): accept escaped quotes (WIP)
We should also remove the backslash.
2016-08-16 05:15:38 -03:00
Werner Almesberger
3c7033ce61 eeshow/: missing sheets are now flagged in red, instead of failing the revision 2016-08-16 04:07:42 -03:00