From 47c4dbe1fef2af9eaa7d38845e83544320bd0631 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 2 Nov 2016 11:55:41 +0100 Subject: tracker/rift-140: add --- tracker-rift-140/dialog.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tracker-rift-140/dialog.cpp (limited to 'tracker-rift-140/dialog.cpp') diff --git a/tracker-rift-140/dialog.cpp b/tracker-rift-140/dialog.cpp new file mode 100644 index 00000000..a6bf8126 --- /dev/null +++ b/tracker-rift-140/dialog.cpp @@ -0,0 +1,25 @@ +#include "rift-140.hpp" +#include "api/plugin-api.hpp" + +TrackerControls::TrackerControls() +{ + ui.setupUi( this ); + + connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(doOK())); + connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel())); + + tie_setting(s.constant_drift, ui.constantDrift); + tie_setting(s.deadzone, ui.deadzone); + tie_setting(s.persistence, ui.persistence); + tie_setting(s.useYawSpring, ui.yawSpring); +} + +void TrackerControls::doOK() { + s.b->save(); + close(); +} + +void TrackerControls::doCancel() { + close(); +} + -- cgit v1.2.3