summaryrefslogtreecommitdiffhomepage
path: root/tracker-tobii-eyex/tobii-eyex-dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-tobii-eyex/tobii-eyex-dialog.cpp')
-rw-r--r--tracker-tobii-eyex/tobii-eyex-dialog.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/tracker-tobii-eyex/tobii-eyex-dialog.cpp b/tracker-tobii-eyex/tobii-eyex-dialog.cpp
new file mode 100644
index 00000000..bb9ffcea
--- /dev/null
+++ b/tracker-tobii-eyex/tobii-eyex-dialog.cpp
@@ -0,0 +1,26 @@
+#include "tobii-eyex.hpp"
+
+tobii_eyex_dialog::tobii_eyex_dialog()
+{
+ ui.setupUi(this);
+
+ 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);
+
+ tie_setting(s.mode, ui.tracking_mode);
+}
+
+void tobii_eyex_dialog::do_ok()
+{
+ s.b->save();
+ rs.b->save();
+ close();
+}
+
+void tobii_eyex_dialog::do_cancel()
+{
+ close();
+}