From aa066bdd4622d4f6824fee864f6be6806813f04d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 30 Oct 2015 07:37:41 +0100 Subject: move to subdirectory-based build system Closes #224 --- .../ftnoir_tracker_rift_dialog_025.cpp | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tracker-rift-025/ftnoir_tracker_rift_dialog_025.cpp (limited to 'tracker-rift-025/ftnoir_tracker_rift_dialog_025.cpp') diff --git a/tracker-rift-025/ftnoir_tracker_rift_dialog_025.cpp b/tracker-rift-025/ftnoir_tracker_rift_dialog_025.cpp new file mode 100644 index 00000000..8100e362 --- /dev/null +++ b/tracker-rift-025/ftnoir_tracker_rift_dialog_025.cpp @@ -0,0 +1,26 @@ +#include "ftnoir_tracker_rift_025.h" +#include "opentrack/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(); + this->close(); +} + +void TrackerControls::doCancel() { + s.b->reload(); + close(); +} + -- cgit v1.2.3