summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/options-dialog.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-06-18 08:45:52 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-06-18 08:45:52 +0200
commit47a512da1e98b88cd96fc761c567cef4eadd376c (patch)
tree5e1562b547dcf0f7ee3aa8fb9a6f387ce665b204 /facetracknoir/options-dialog.hpp
parent33287155bdc7e4beefb45ceef0aaaeb4ecb742a7 (diff)
flush
It crashes after drawing a frame for now.
Diffstat (limited to 'facetracknoir/options-dialog.hpp')
-rw-r--r--facetracknoir/options-dialog.hpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/facetracknoir/options-dialog.hpp b/facetracknoir/options-dialog.hpp
index 33ae1810..6f752a08 100644
--- a/facetracknoir/options-dialog.hpp
+++ b/facetracknoir/options-dialog.hpp
@@ -2,9 +2,14 @@
#include <QObject>
#include <QWidget>
+#include <QTimer>
#include "ui_settings.h"
+#include "opentrack/state.hpp"
#include "opentrack/shortcuts.h"
#include "ftnoir_tracker_pt/ftnoir_tracker_pt_settings.h"
+#include "facetracknoir/trans_calib.h"
+#include "ftnoir_tracker_pt/ftnoir_tracker_pt.h"
+#include "ftnoir_filter_accela/ftnoir_filter_accela.h"
class OptionsDialog: public QWidget
{
@@ -12,12 +17,28 @@ class OptionsDialog: public QWidget
signals:
void reload();
public:
- OptionsDialog();
+ OptionsDialog(State &state);
private:
Ui::UI_Settings ui;
Shortcuts::settings s;
settings_pt pt;
+ settings_accela acc;
+ QTimer timer;
+ State& state;
+ TranslationCalibrator trans_calib;
+ bool trans_calib_running;
+
+ Tracker_PT* get_pt();
+
+ void update_ewma_display(int value);
+ void update_rot_display(int value);
+ void update_trans_display(int value);
+ void update_rot_dz_display(int value);
+ void update_trans_dz_display(int value);
private slots:
void doOK();
void doCancel();
+ void startstop_trans_calib(bool start);
+ void poll_tracker_info();
+ void trans_calib_step();
};