diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2010-09-23 07:10:44 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2010-09-23 07:10:44 +0000 |
commit | 511b934a97dc7f9765270de69864c7132e1c5b24 (patch) | |
tree | 25b3dcb29b88750140e4bee729a84739c8f96835 /FaceTrackNoIR/FaceTrackNoIR.h | |
parent | d7021ddf3145e1296236d16d5e845d4c9fa9376a (diff) |
Done clean-up after switch to VS2005
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@17 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/FaceTrackNoIR.h')
-rw-r--r-- | FaceTrackNoIR/FaceTrackNoIR.h | 59 |
1 files changed, 58 insertions, 1 deletions
diff --git a/FaceTrackNoIR/FaceTrackNoIR.h b/FaceTrackNoIR/FaceTrackNoIR.h index 70f3f08d..93160c48 100644 --- a/FaceTrackNoIR/FaceTrackNoIR.h +++ b/FaceTrackNoIR/FaceTrackNoIR.h @@ -35,6 +35,8 @@ #include <QDialog>
#include "ui_FaceTrackNoIR.h"
+#include "ui_FTNoIR_KeyboardShortcuts.h"
+#include "ui_FTNoIR_Preferences.h"
#include <sm_api_qt.h>
#include <Dshow.h>
@@ -56,19 +58,21 @@ public: private:
Ui::FaceTrackNoIRClass ui;
Tracker *tracker;
+ QTimer *timMinimizeFTN;
/** face api variables **/
VideoDisplayWidget *_display;
QVBoxLayout *l;
QWidget *_engine_controls;
QWidget *_server_controls;
+ QWidget *_preferences;
+ QWidget *_keyboard_shortcuts;
/** QT objects **/
QDialog aboutDialog;
QDesktopWidget desktop;
QAction *minimizeAction;
- QAction *maximizeAction;
QAction *restoreAction;
QAction *quitAction;
@@ -103,6 +107,8 @@ private: void showHeadPoseWidget();
void showEngineControls();
void showServerControls();
+ void showPreferences();
+ void showKeyboardShortcuts();
// sensibility sliders
void setSensYaw( int sens );
@@ -140,4 +146,55 @@ private: void about();
};
+// Widget that has controls for FaceTrackNoIR Preferences.
+class PreferencesDialog: public QWidget, public Ui::UICPreferencesDialog
+{
+ Q_OBJECT
+public:
+
+ explicit PreferencesDialog( QWidget *parent=0, Qt::WindowFlags f=0 );
+ virtual ~PreferencesDialog();
+ void showEvent ( QShowEvent * event );
+
+private:
+ Ui::UICPreferencesDialog ui;
+ void loadSettings();
+ void save();
+
+ /** helper **/
+ bool settingsDirty;
+
+private slots:
+ void doOK();
+ void doCancel();
+ void keyChanged( int index ) { settingsDirty = true; };
+};
+
+// Widget that has controls for Keyboard shortcuts.
+class KeyboardShortcutDialog: public QWidget, public Ui::UICKeyboardShortcutDialog
+{
+ Q_OBJECT
+public:
+
+ explicit KeyboardShortcutDialog( QWidget *parent=0, Qt::WindowFlags f=0 );
+ virtual ~KeyboardShortcutDialog();
+ void showEvent ( QShowEvent * event );
+
+private:
+ Ui::UICKeyboardShortcutDialog ui;
+ void loadSettings();
+ void save();
+
+ /** helper **/
+ bool settingsDirty;
+ QList<QString> stringList; // List of strings, that describe the keyboard-keys
+ QList<BYTE> keyList; // List of keys, with the values of the keyboard-keys
+
+private slots:
+ void doOK();
+ void doCancel();
+ void keyChanged( int index ) { settingsDirty = true; };
+};
+
+
#endif // FaceTrackNoIR_H
|