summaryrefslogtreecommitdiffhomepage
path: root/tracker-tobii-eyex/tobii-eyex-dialog.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-31 21:04:44 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-10-31 21:04:44 +0100
commitd971b9d699f7862b4c9414abfdb64445f4be9018 (patch)
treef61d31339f1d824b213979d4cabd5b20cdf5358b /tracker-tobii-eyex/tobii-eyex-dialog.cpp
parent74253af3f832df22a742761a5f5a1454f1cc3c9b (diff)
tracker/tobii: set up settings for prototype vesion
The initial version won't have a generalized spline with multiple parameters to configure the gain. But it's doable in one go unlike a fully-fledged version from the start.
Diffstat (limited to 'tracker-tobii-eyex/tobii-eyex-dialog.cpp')
-rw-r--r--tracker-tobii-eyex/tobii-eyex-dialog.cpp28
1 files changed, 2 insertions, 26 deletions
diff --git a/tracker-tobii-eyex/tobii-eyex-dialog.cpp b/tracker-tobii-eyex/tobii-eyex-dialog.cpp
index 8997c6c2..807542e1 100644
--- a/tracker-tobii-eyex/tobii-eyex-dialog.cpp
+++ b/tracker-tobii-eyex/tobii-eyex-dialog.cpp
@@ -7,39 +7,15 @@ tobii_eyex_dialog::tobii_eyex_dialog()
connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &tobii_eyex_dialog::do_ok);
connect(ui.buttonBox, &QDialogButtonBox::rejected, this, &tobii_eyex_dialog::do_cancel);
- ui.tracking_mode->addItem("Relative", tobii_relative);
- ui.tracking_mode->addItem("Absolute", tobii_absolute);
+ ui.tracking_mode->addItem("Snap", tobii_snap);
+ ui.tracking_mode->addItem("Accumulative", tobii_acc);
tie_setting(s.mode, ui.tracking_mode);
-
- ui.relative_mode_gain->setConfig(&rs.acc_mode_spline);
- ui.relative_mode_gain->set_preview_only(true);
-
- tie_setting(rs.dz_len, ui.deadzone);
- tie_setting(rs.expt_slope, ui.exponent);
- tie_setting(rs.expt_len, ui.exponent_len);
- tie_setting(rs.expt_norm, ui.exponent_norm);
-
- tie_setting(rs.log_len, ui.log_len);
-
- connect(rs.b.get(), &bundle_::changed, this, [this]() { rs.make_spline(); }, Qt::QueuedConnection);
-
- // todo add specialization for label with traits
-#if 0
- tie_setting(rs.dz_len, ui.deadzone_label);
- tie_setting(rs.expt_slope, ui.exponent_label);
- tie_setting(rs.expt_len, ui.exponent_len_label);
- tie_setting(rs.expt_norm, ui.exponent_norm_label);
- tie_setting(rs.log_slope, ui.log_base_label);
- tie_setting(rs.log_len, ui.log_len_label);
- tie_setting(rs.log_norm, ui.log_norm_label);
-#endif
}
void tobii_eyex_dialog::do_ok()
{
s.b->save();
- rs.b->save();
close();
}