summaryrefslogtreecommitdiffhomepage
path: root/tracker-rift-042/ftnoir_tracker_rift_dialog_042.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-rift-042/ftnoir_tracker_rift_dialog_042.cpp')
-rw-r--r--tracker-rift-042/ftnoir_tracker_rift_dialog_042.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/tracker-rift-042/ftnoir_tracker_rift_dialog_042.cpp b/tracker-rift-042/ftnoir_tracker_rift_dialog_042.cpp
new file mode 100644
index 00000000..9a8b7549
--- /dev/null
+++ b/tracker-rift-042/ftnoir_tracker_rift_dialog_042.cpp
@@ -0,0 +1,26 @@
+#include "ftnoir_tracker_rift_042.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();
+}
+