diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-16 13:08:20 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-19 15:10:59 +0200 |
commit | b367b4c39090735ddf40df757ae381f4b4fe13cb (patch) | |
tree | f53c2ea29551bc43744504dfb848f5473f21c0ea /tracker-tobii-eyex/tobii-eyex-dialog.cpp | |
parent | f1fc04d58d90cc0edde82a2bdeaefffb7d4d6951 (diff) |
tracker/tobii-eyex: initial revision
Diffstat (limited to 'tracker-tobii-eyex/tobii-eyex-dialog.cpp')
-rw-r--r-- | tracker-tobii-eyex/tobii-eyex-dialog.cpp | 26 |
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(); +} |