summaryrefslogtreecommitdiffhomepage
path: root/tracker-rift-140/dialog.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-11-02 11:55:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-11-02 11:55:41 +0100
commit47c4dbe1fef2af9eaa7d38845e83544320bd0631 (patch)
treeffad8d6e349cea890776bc70104466d9061b97c6 /tracker-rift-140/dialog.cpp
parentf7e622e4f1fea8a49fc1555d446cc76f78d5592c (diff)
tracker/rift-140: add
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();
+}
+