summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/facetracknoir.h
diff options
context:
space:
mode:
Diffstat (limited to 'facetracknoir/facetracknoir.h')
-rw-r--r--facetracknoir/facetracknoir.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/facetracknoir/facetracknoir.h b/facetracknoir/facetracknoir.h
index 6c087c43..bfeb2d38 100644
--- a/facetracknoir/facetracknoir.h
+++ b/facetracknoir/facetracknoir.h
@@ -91,12 +91,15 @@ public:
#if defined(_WIN32)
Key keyCenter;
+ Key keyToggle;
KeybindingWorker* keybindingWorker;
#else
- QxtGlobalShortcut* keyCenter;
+ QxtGlobalShortcut keyCenter;
+ QxtGlobalShortcut keyToggle;
#endif
public slots:
void shortcutRecentered();
+ void shortcutToggled();
private:
HeadPoseData pose;
@@ -109,7 +112,6 @@ private:
IProtocolDialog* pProtocolDialog; // Pointer to Protocol dialog instance (in DLL)
IFilterDialog* pFilterDialog; // Pointer to Filter dialog instance (in DLL)
- /** Widget variables **/
QWidget *_keyboard_shortcuts;
QWidget *_curve_config;
@@ -117,12 +119,15 @@ private:
void GetCameraNameDX();
void loadSettings();
- void setupFaceTrackNoIR();
QList<DynamicLibrary*> dlopen_filters;
QList<DynamicLibrary*> dlopen_trackers;
QList<DynamicLibrary*> dlopen_protocols;
+#ifndef _WIN32
+ void bind_keyboard_shortcut(QxtGlobalShortcut& key, const QString label, QSettings& iniFile);
+#endif
+
bool looping;
private slots: