diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-12-09 12:35:23 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-12-09 12:55:24 +0100 |
commit | 98823d01631fe8cfdf8210751efdbc1b24990af3 (patch) | |
tree | 6db3934306218efd68a853129dc32186d5ec4e1a /tracker-tobii-eyex/tobii-eyex.hpp | |
parent | 5a5cf4bac9af84252b28e56b15b71708f8cd3b7b (diff) |
tracker/tobii: flush further work. it's still broken.
Diffstat (limited to 'tracker-tobii-eyex/tobii-eyex.hpp')
-rw-r--r-- | tracker-tobii-eyex/tobii-eyex.hpp | 63 |
1 files changed, 2 insertions, 61 deletions
diff --git a/tracker-tobii-eyex/tobii-eyex.hpp b/tracker-tobii-eyex/tobii-eyex.hpp index 68acb25c..23173f22 100644 --- a/tracker-tobii-eyex/tobii-eyex.hpp +++ b/tracker-tobii-eyex/tobii-eyex.hpp @@ -8,62 +8,19 @@ * notice appear in all copies. */ +#include "tobii-settings.hpp" + #include <EyeX.h> -#include "ui_tobii-eyex-dialog.h" #include "api/plugin-api.hpp" #include "options/options.hpp" using namespace options; #include "compat/timer.hpp" -#include "spline-widget/spline.hpp" -#include "spline-widget/spline-widget.hpp" #include <functional> #include <atomic> #include <QObject> #include <QMutex> -#include <QTimer> - -enum tobii_mode -{ - tobii_relative, - tobii_absolute, -}; - -class rel_settings final : public QObject, public opts -{ - Q_OBJECT - - using functor = std::function<double(double)>; - - struct part - { - int nparts; - double len, norm; - functor f; - }; - - void make_spline_(part* functors, unsigned len); - -public: - using s = slider_value; - value<slider_value> speed, dz_len, expt_slope, expt_len, expt_norm, log_slope, log_len, log_norm; - spline acc_mode_spline; - rel_settings(); - double gain(double value); - -public slots: - void make_spline(); -}; - -struct settings final : public opts -{ - value<tobii_mode> mode; - settings() : - opts("tobii-eyex"), - mode(b, "mode", tobii_relative) - {} -}; class tobii_eyex_tracker : public ITracker { @@ -123,22 +80,6 @@ private: volatile bool do_center; }; -class tobii_eyex_dialog final : public ITrackerDialog -{ - Q_OBJECT -public: - tobii_eyex_dialog(); - void register_tracker(ITracker *) override {} - void unregister_tracker() override {} -private: - Ui::tobii_eyex_dialog_widgets ui; - settings s; - rel_settings rs; -private slots: - void do_ok(); - void do_cancel(); -}; - class tobii_eyex_metadata : public Metadata { public: |