summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-30 01:20:14 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-30 01:22:03 (GMT)
commit7fe214cc9c8d8b68e05f9dffc39c044fe2788893 (patch)
tree3068c6edb2681fca054260e2ed9d9e004bd10fbc
parentafc999c766661b50d9f3070864a3d9c3c2c9c500 (diff)
downloadeeshow-7fe214cc9c8d8b68e05f9dffc39c044fe2788893.zip
eeshow-7fe214cc9c8d8b68e05f9dffc39c044fe2788893.tar.gz
eeshow-7fe214cc9c8d8b68e05f9dffc39c044fe2788893.tar.bz2
"F" now toggles display of invisible footprints
-rw-r--r--README1
-rw-r--r--gui/sheet.c4
-rw-r--r--help.html3
-rw-r--r--help.txt1
-rw-r--r--kicad/sch-render.c12
5 files changed, 19 insertions, 2 deletions
diff --git a/README b/README
index 4b011bd..4907b43 100644
--- a/README
+++ b/README
@@ -228,6 +228,7 @@ Tab toggle between old and new revision
Esc cancel current action (exit history, close pop-up,
de-highlight glabel, close help)
E show/hide extra information (pin types)
+F toggle showing footprints, even if invisible
Shift+D toggle between "diff" and experimental "delta" mode
H show/hide help window
T toggle performance timer
diff --git a/gui/sheet.c b/gui/sheet.c
index 96b911d..ca321ab 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -562,6 +562,10 @@ static void sheet_key(void *user, int x, int y, int keyval)
show_extra ^= gfx_pin_type;
redraw(gui);
break;
+ case GDK_KEY_f:
+ show_extra ^= gfx_footprint;
+ redraw(gui);
+ break;
case GDK_KEY_n:
gui->diff_mode = diff_new;
diff --git a/help.html b/help.html
index bce5b80..0603443 100644
--- a/help.html
+++ b/help.html
@@ -36,6 +36,9 @@
<TD>E
<TD>show/hide extra information (pin types)
<TR>
+ <TD>F
+ <TD>toggle showing footprints, even if invisible
+ <TR>
<TD>Shift+D
<TD>toggle between "diff" and experimental "delta" mode
<TR>
diff --git a/help.txt b/help.txt
index 746a6d9..6ffee27 100644
--- a/help.txt
+++ b/help.txt
@@ -12,6 +12,7 @@ Tab toggle between old and new revision
Esc cancel current action (exit history, close
pop-up, de-highlight glabel, close help)
E show/hide extra information (pin types)
+F toggle showing footprints, even if invisible
Shift+D toggle between "diff" and experimental
"delta" mode
H show/hide help window
diff --git a/kicad/sch-render.c b/kicad/sch-render.c
index 830c99a..fdb945d 100644
--- a/kicad/sch-render.c
+++ b/kicad/sch-render.c
@@ -122,9 +122,17 @@ static void render_comp(const struct sch_comp *comp, struct gfx *gfx)
const struct comp_field *field;
lib_render(comp->comp, gfx, comp->unit, comp->convert, comp->m);
- for (field = comp->fields; field; field = field->next)
- if (field->visible)
+ for (field = comp->fields; field; field = field->next) {
+ if (field->visible) {
dump_field(field, gfx, comp->m);
+ } else {
+ if (field->n == 2) {
+ gfx_set_extra(gfx, gfx_footprint);
+ dump_field(field, gfx, comp->m);
+ gfx_set_extra(gfx, 0);
+ }
+ }
+ }
}