From 2396ac190a62c30cbc687bb7c19119e1a8fd431e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 2 Dec 2017 08:19:25 +0100 Subject: tracker/tobii: TODO --- tracker-tobii-eyex/tobii-eyex-dialog.hpp | 11 ++++++----- tracker-tobii-eyex/tobii-settings.hpp | 16 ++++++++-------- 2 files changed, 14 insertions(+), 13 deletions(-) (limited to 'tracker-tobii-eyex') 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 -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 mode { b, "mode", tobii_snap }; - 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 acc_speed { b, "acc-speed", slider_value(.1, .05, 1) }, - acc_dz_len { b, "acc-screen-edge-length", slider_value(.1, .1, 1) }; - value snap_yaw { b, "snap-max-yaw", y20 }, - acc_yaw { b, "acc-max-yaw", y20 }; - value snap_pitch { b, "snap-max-pitch", p15 }, - acc_pitch { b, "acc-max-pitch", p15 }; + 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 acc_speed {b, "acc-speed", slider_value(.1, .05, 1)}, + acc_dz_len {b, "acc-screen-edge-length", slider_value(.1, .1, 1)}; + value snap_yaw {b, "snap-max-yaw", y20}, + acc_yaw {b, "acc-max-yaw", y20}; + value snap_pitch {b, "snap-max-pitch", p15}, + acc_pitch {b, "acc-max-pitch", p15}; settings() : opts("tobii-eyex") {} }; -- cgit v1.2.3