summaryrefslogtreecommitdiffhomepage
path: root/tracker-tobii-eyex/tobii-eyex.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-tobii-eyex/tobii-eyex.hpp')
-rw-r--r--tracker-tobii-eyex/tobii-eyex.hpp63
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: