From fe5298dd106579e257c05fa6f0c8f63b10504a61 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 5 Sep 2016 22:47:41 +0200 Subject: gui, logic: add shortcut for "translation compensation off while held" Requested-by: @Sone989 Issue: #440 --- gui/options-dialog.cpp | 3 +- gui/options-dialog.ui | 154 ++++++++++++++++++++++++++++--------------------- 2 files changed, 91 insertions(+), 66 deletions(-) (limited to 'gui') diff --git a/gui/options-dialog.cpp b/gui/options-dialog.cpp index 3c3012b5..dfd99e7b 100644 --- a/gui/options-dialog.cpp +++ b/gui/options-dialog.cpp @@ -92,7 +92,8 @@ OptionsDialog::OptionsDialog(std::function pause_keybindings) : { main.key_start_tracking, ui.start_tracking_text, ui.bind_start }, { main.key_stop_tracking, ui.stop_tracking_text , ui.bind_stop}, { main.key_toggle_tracking, ui.toggle_tracking_text, ui.bind_toggle_tracking }, - { main.key_restart_tracking, ui.restart_tracking_text, ui.bind_restart_tracking } + { main.key_restart_tracking, ui.restart_tracking_text, ui.bind_restart_tracking }, + { main.key_disable_tcomp_press, ui.tcomp_off_held_text, ui.bind_tcomp_off_held }, }; for (const tmp& val_ : tuples) diff --git a/gui/options-dialog.ui b/gui/options-dialog.ui index aa06b407..97ccffff 100644 --- a/gui/options-dialog.ui +++ b/gui/options-dialog.ui @@ -6,7 +6,7 @@ 0 0 - 468 + 546 622 @@ -68,23 +68,61 @@ QGroupBox { border: 0; } - - + + 20 + + + + + + + + + + Bind - - + + - Toggle tracking + Bind + + + + + + + Restart tracking false + + + + + + + + + + + + + + + + + + Bind + + + @@ -92,17 +130,20 @@ - - + + - + Bind - - + + - Bind + Toggle tracking + + + false @@ -113,6 +154,20 @@ + + + + Bind + + + + + + + + + + @@ -144,6 +199,13 @@ + + + + + + + @@ -154,13 +216,6 @@ - - - - - - - @@ -178,13 +233,6 @@ - - - - - - - @@ -195,6 +243,13 @@ + + + + + + + @@ -226,53 +281,22 @@ - - - - Bind - - - - - - - - - - - - + + - Bind + Translation compensation off while held - - + + - - - - Restart tracking - - - false - - - - - - - - - - - - + + Bind @@ -1383,6 +1407,7 @@ It won't work properly with translation compensation enabled. bind_stop bind_toggle_tracking bind_restart_tracking + bind_tcomp_off_held center_at_startup trayp camera_yaw @@ -1412,7 +1437,6 @@ It won't work properly with translation compensation enabled. invert_z tracklogging_enabled tracklogging_fileselectbtn - tracklogging_filenameedit -- cgit v1.2.3