From 9a573dbf66f8baddf1aabe79960c8658cbb0ee9e Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Tue, 28 Sep 2010 20:37:14 +0000 Subject: UpdateSettings after change of INI-file. Added curve to tracker git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@21 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb --- FaceTrackNoIR/FaceTrackNoIR.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'FaceTrackNoIR/FaceTrackNoIR.h') diff --git a/FaceTrackNoIR/FaceTrackNoIR.h b/FaceTrackNoIR/FaceTrackNoIR.h index 410547e2..c14d4e16 100644 --- a/FaceTrackNoIR/FaceTrackNoIR.h +++ b/FaceTrackNoIR/FaceTrackNoIR.h @@ -58,6 +58,7 @@ public: ~FaceTrackNoIR(); void getGameProgramName(); // Get the ProgramName from the game and display it. + void updateSettings(); // Update the settings (let Tracker read INI-file). private: Ui::FaceTrackNoIRClass ui; @@ -158,7 +159,7 @@ class PreferencesDialog: public QWidget, public Ui::UICPreferencesDialog Q_OBJECT public: - explicit PreferencesDialog( QWidget *parent=0, Qt::WindowFlags f=0 ); + explicit PreferencesDialog( FaceTrackNoIR *ftnoir, QWidget *parent=0, Qt::WindowFlags f=0 ); virtual ~PreferencesDialog(); void showEvent ( QShowEvent * event ); @@ -169,6 +170,7 @@ private: /** helper **/ bool settingsDirty; + FaceTrackNoIR *mainApp; private slots: void doOK(); @@ -182,7 +184,7 @@ class KeyboardShortcutDialog: public QWidget, public Ui::UICKeyboardShortcutDial Q_OBJECT public: - explicit KeyboardShortcutDialog( QWidget *parent=0, Qt::WindowFlags f=0 ); + explicit KeyboardShortcutDialog( FaceTrackNoIR *ftnoir, QWidget *parent=0, Qt::WindowFlags f=0 ); virtual ~KeyboardShortcutDialog(); void showEvent ( QShowEvent * event ); @@ -193,6 +195,7 @@ private: /** helper **/ bool settingsDirty; + FaceTrackNoIR *mainApp; QList stringList; // List of strings, that describe the keyboard-keys QList keyList; // List of keys, with the values of the keyboard-keys @@ -208,7 +211,7 @@ class CurveConfigurationDialog: public QWidget, public Ui::UICCurveConfiguration Q_OBJECT public: - explicit CurveConfigurationDialog( QWidget *parent=0, Qt::WindowFlags f=0 ); + explicit CurveConfigurationDialog( FaceTrackNoIR *ftnoir, QWidget *parent=0, Qt::WindowFlags f=0 ); virtual ~CurveConfigurationDialog(); void showEvent ( QShowEvent * event ); @@ -219,6 +222,7 @@ private: /** helper **/ bool settingsDirty; + FaceTrackNoIR *mainApp; private slots: void doOK(); -- cgit v1.2.3