summaryrefslogtreecommitdiffhomepage
path: root/tracker-rift-140/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-rift-140/dialog.cpp')
-rw-r--r--tracker-rift-140/dialog.cpp25
1 files changed, 25 insertions, 0 deletions
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();
+}
+