summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-24 13:51:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-24 13:51:47 +0200
commit783ad7d52940b978462afe7b743da72c4529542c (patch)
tree6f4301d807cf2f389598369048c58c42d26f139e /gui
parent2b02544134e5c1badd036f183d2908405d5348a8 (diff)
logic, gui: allow for disabling any of the three tcomp options
Issue: #458 Requested-by: @Borisovich
Diffstat (limited to 'gui')
-rw-r--r--gui/options-dialog.cpp5
-rw-r--r--gui/options-dialog.ui24
2 files changed, 26 insertions, 3 deletions
diff --git a/gui/options-dialog.cpp b/gui/options-dialog.cpp
index be846b35..71297a59 100644
--- a/gui/options-dialog.cpp
+++ b/gui/options-dialog.cpp
@@ -45,7 +45,10 @@ OptionsDialog::OptionsDialog(std::function<void(bool)> pause_keybindings) :
tie_setting(main.center_at_startup, ui.center_at_startup);
tie_setting(main.tcomp_p, ui.tcomp_enable);
- tie_setting(main.tcomp_tz, ui.tcomp_rz);
+
+ tie_setting(main.tcomp_disable_tx, ui.tcomp_tx_disable);
+ tie_setting(main.tcomp_disable_ty, ui.tcomp_ty_disable);
+ tie_setting(main.tcomp_disable_tz, ui.tcomp_tz_disable);
tie_setting(main.a_x.zero, ui.pos_tx);
tie_setting(main.a_y.zero, ui.pos_ty);
diff --git a/gui/options-dialog.ui b/gui/options-dialog.ui
index 7011f156..420a82b8 100644
--- a/gui/options-dialog.ui
+++ b/gui/options-dialog.ui
@@ -821,12 +821,32 @@ It won't work properly with translation compensation enabled.</string>
</widget>
</item>
<item>
- <widget class="QCheckBox" name="tcomp_rz">
+ <widget class="QCheckBox" name="tcomp_tx_disable">
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
- <string>Disable Z axis compensation</string>
+ <string>Disable X compensation</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="tcomp_ty_disable">
+ <property name="styleSheet">
+ <string notr="true"/>
+ </property>
+ <property name="text">
+ <string>Disable Y compensation</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="tcomp_tz_disable">
+ <property name="styleSheet">
+ <string notr="true"/>
+ </property>
+ <property name="text">
+ <string>Disable Z compensation</string>
</property>
</widget>
</item>