summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-12-02 08:19:25 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-12-02 08:22:08 +0100
commit2396ac190a62c30cbc687bb7c19119e1a8fd431e (patch)
tree7a9395183e54834ebde1eb718dfbd77fad53ce54
parenta46f6d07c5f8c6d65940b2d8ec62535ee1983315 (diff)
tracker/tobii: TODO
-rw-r--r--tracker-tobii-eyex/tobii-eyex-dialog.hpp11
-rw-r--r--tracker-tobii-eyex/tobii-settings.hpp16
2 files changed, 14 insertions, 13 deletions
diff --git a/tracker-tobii-eyex/tobii-eyex-dialog.hpp b/tracker-tobii-eyex/tobii-eyex-dialog.hpp
index 8ff0e46f..67cab885 100644
--- a/tracker-tobii-eyex/tobii-eyex-dialog.hpp
+++ b/tracker-tobii-eyex/tobii-eyex-dialog.hpp
@@ -6,15 +6,16 @@
#include "ui_tobii-eyex-dialog.h"
#include <QObject>
-struct tobii_eyex_dialog final : public ITrackerDialog
+class tobii_eyex_dialog final : public ITrackerDialog
{
- tobii_eyex_dialog();
- void register_tracker(ITracker*) override {}
- void unregister_tracker() override {}
-private:
+ Q_OBJECT
Ui::tobii_eyex_dialog_widgets ui;
settings s;
private slots:
void do_ok();
void do_cancel();
+public:
+ tobii_eyex_dialog();
+ void register_tracker(ITracker*) override {}
+ void unregister_tracker() override {}
};
diff --git a/tracker-tobii-eyex/tobii-settings.hpp b/tracker-tobii-eyex/tobii-settings.hpp
index cfdfa65c..a486306d 100644
--- a/tracker-tobii-eyex/tobii-settings.hpp
+++ b/tracker-tobii-eyex/tobii-settings.hpp
@@ -23,14 +23,14 @@ struct settings final : public opts
{
value<tobii_mode> mode { b, "mode", tobii_snap };
- value<slider_value> snap_speed { b, "snap-speed", slider_value(.1, .05, 1) },
- snap_inv_dz { b, "snap-screen-edge-length", slider_value(.35, .1, .5) };
- value<slider_value> acc_speed { b, "acc-speed", slider_value(.1, .05, 1) },
- acc_dz_len { b, "acc-screen-edge-length", slider_value(.1, .1, 1) };
- value<max_yaw> snap_yaw { b, "snap-max-yaw", y20 },
- acc_yaw { b, "acc-max-yaw", y20 };
- value<max_pitch> snap_pitch { b, "snap-max-pitch", p15 },
- acc_pitch { b, "acc-max-pitch", p15 };
+ value<slider_value> snap_speed {b, "snap-speed", slider_value(.1, .05, 1)},
+ snap_inv_dz {b, "snap-screen-edge-length", slider_value(.35, .1, .5)};
+ value<slider_value> acc_speed {b, "acc-speed", slider_value(.1, .05, 1)},
+ acc_dz_len {b, "acc-screen-edge-length", slider_value(.1, .1, 1)};
+ value<max_yaw> snap_yaw {b, "snap-max-yaw", y20},
+ acc_yaw {b, "acc-max-yaw", y20};
+ value<max_pitch> snap_pitch {b, "snap-max-pitch", p15},
+ acc_pitch {b, "acc-max-pitch", p15};
settings() : opts("tobii-eyex") {}
};