summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/facetracknoir.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-14 17:11:36 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-14 17:11:36 +0200
commit8c3c17c9e0e9d377a69ad44c4a3e350bf9f1d505 (patch)
treee8861d1a0215c412bda709b7006db70c06f5252b /facetracknoir/facetracknoir.h
parenta847cac005d6e42b302fbc9cb58caa0e9acd4ebd (diff)
Move spline configuration into separate file
Unfortunately, there's still a circular dependency between spline configuration and the main widget which *still* contains the most logic for the software.
Diffstat (limited to 'facetracknoir/facetracknoir.h')
-rw-r--r--facetracknoir/facetracknoir.h63
1 files changed, 19 insertions, 44 deletions
diff --git a/facetracknoir/facetracknoir.h b/facetracknoir/facetracknoir.h
index ee4e9132..ab0b8bc5 100644
--- a/facetracknoir/facetracknoir.h
+++ b/facetracknoir/facetracknoir.h
@@ -56,7 +56,6 @@
#include "ui_facetracknoir.h"
#include "ui_ftnoir_keyboardshortcuts.h"
-#include "ui_ftnoir_curves.h"
#include "ftnoir_protocol_base/ftnoir_protocol_base.h"
#include "ftnoir_tracker_base/ftnoir_tracker_base.h"
@@ -64,6 +63,7 @@
#include "global-settings.h"
#include "tracker.h"
+#include "facetracknoir/curve-config.h"
class Tracker; // pre-define class to avoid circular includes
class FaceTrackNoIR;
@@ -161,27 +161,27 @@ private:
bool looping;
- private slots:
- //file menu
- void open();
- void save();
- void saveAs();
- void exit();
+private slots:
+ //file menu
+ void open();
+ void save();
+ void saveAs();
+ void exit();
// void setIcon(int index);
- void profileSelected(int index);
- void protocolSelected(int index);
- void filterSelected(int index);
- void trackingSourceSelected(int index);
+ void profileSelected(int index);
+ void protocolSelected(int index);
+ void filterSelected(int index);
+ void trackingSourceSelected(int index);
- void showVideoWidget();
- void showHeadPoseWidget();
- void showTrackerSettings();
- void showSecondTrackerSettings();
+ void showVideoWidget();
+ void showHeadPoseWidget();
+ void showTrackerSettings();
+ void showSecondTrackerSettings();
- void showServerControls();
- void showFilterControls();
- void showKeyboardShortcuts();
- void showCurveConfiguration();
+ void showServerControls();
+ void showFilterControls();
+ void showKeyboardShortcuts();
+ void showCurveConfiguration();
void setInvertAxis( Axis axis, int invert );
void setInvertYaw(int invert) {
@@ -232,31 +232,6 @@ private slots:
void doCancel();
};
-// Widget that has controls for Keyboard shortcuts.
-class CurveConfigurationDialog: public QWidget
-{
- Q_OBJECT
-public:
-
- explicit CurveConfigurationDialog( FaceTrackNoIR *ftnoir, QWidget *parent=0, Qt::WindowFlags f=0 );
- virtual ~CurveConfigurationDialog();
- void showEvent ( QShowEvent * event );
- void loadSettings();
-private:
- Ui::UICCurveConfigurationDialog ui;
- void save();
-
- /** helper **/
- bool settingsDirty;
- FaceTrackNoIR *mainApp;
-
-private slots:
- void doOK();
- void doCancel();
- void curveChanged( bool change ) { settingsDirty = true; }
- void curveChanged( int change ) { settingsDirty = true; }
-};
-
extern QList<QString> global_key_sequences;
#if defined(__WIN32) || defined(_WIN32)
class KeybindingWorkerDummy {