From b42fa256f456c13800c8dec026d0802561fa098d Mon Sep 17 00:00:00 2001 From: Valerio Mariani Date: Wed, 29 Jan 2014 17:24:15 +0100 Subject: Arrow keys can be used to move to the previous/next quadrant, with wraparound --- src/dw-hdfsee.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c index 73a56832..57033916 100644 --- a/src/dw-hdfsee.c +++ b/src/dw-hdfsee.c @@ -1902,7 +1902,23 @@ static gint displaywindow_keypress(GtkWidget *widget, GdkEventKey *event, redraw_window(dw); break; - case GDK_1: + case GDK_plus: + if (dw->calib_mode_curr_quad == (dw->image->det->n_rigid_groups-1)) { + dw->calib_mode_curr_quad = 0; + } else { + dw->calib_mode_curr_quad += 1; + } + break; + + case GDK_minus: + if (dw->calib_mode_curr_quad == 0) { + dw->calib_mode_curr_quad = (dw->image->det->n_rigid_groups-1); + } else { + dw->calib_mode_curr_quad -= 1; + } + break; + + case GDK_1: dw->calib_mode_curr_quad = 0; break; -- cgit v1.2.3