summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/ui.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-05-22 17:00:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-05-22 17:00:10 +0200
commit0148b26e427d7a5bbe24cdff14f3e035dc19bd1c (patch)
tree2ba08da225039948586aee8b17d87c4ed3aa6d36 /facetracknoir/ui.h
parent65bad699fc8472b49189a412f730409eb2e96311 (diff)
main: allow automatically run profiles when executables run
Issue: #160
Diffstat (limited to 'facetracknoir/ui.h')
-rw-r--r--facetracknoir/ui.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/facetracknoir/ui.h b/facetracknoir/ui.h
index aea4991d..d0ea4e75 100644
--- a/facetracknoir/ui.h
+++ b/facetracknoir/ui.h
@@ -55,6 +55,7 @@
#include "opentrack/state.hpp"
#include "curve-config.h"
#include "shortcut-dialog.hpp"
+#include "process_detector.h"
using namespace options;
@@ -65,6 +66,7 @@ class MainWindow : public QMainWindow, private State
Ui::OpentrackUI ui;
mem<QSystemTrayIcon> tray;
QTimer pose_update_timer;
+ QTimer det_timer;
mem<KeyboardShortcutDialog> shortcuts_widget;
mem<MapWidget> mapping_widget;
QShortcut kbd_quit;
@@ -72,6 +74,7 @@ class MainWindow : public QMainWindow, private State
mem<IFilterDialog> pFilterDialog;
mem<IProtocolDialog> pProtocolDialog;
mem<ITrackerDialog> pTrackerDialog;
+ process_detector_worker det;
mem<dylib> current_tracker()
{
@@ -94,7 +97,6 @@ class MainWindow : public QMainWindow, private State
void fill_profile_combobox();
void display_pose(const double* mapped, const double* raw);
void ensure_tray();
- void set_working_directory();
public slots:
void shortcutRecentered();
void shortcutToggled();
@@ -115,15 +117,16 @@ private slots:
void showHeadPose();
void restore_from_tray(QSystemTrayIcon::ActivationReason);
-
+ void maybe_start_profile_from_executable();
public slots:
void startTracker();
void stopTracker();
-
public:
MainWindow();
~MainWindow();
void save_mappings();
void load_mappings();
static QString remove_app_path(const QString full_path);
+ static void set_working_directory();
+ static void set_profile(const QString& profile);
};