diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2010-09-24 17:09:20 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2010-09-24 17:09:20 +0000 |
commit | 44828b42ec40330e2e98033202d76ea29dd219e6 (patch) | |
tree | e5d658a6b4e94b02e6092e2f1adafea02ae7c4da /FaceTrackNoIR/FaceTrackNoIR.h | |
parent | 511b934a97dc7f9765270de69864c7132e1c5b24 (diff) |
Curves added (1st try)
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@18 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/FaceTrackNoIR.h')
-rw-r--r-- | FaceTrackNoIR/FaceTrackNoIR.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/FaceTrackNoIR/FaceTrackNoIR.h b/FaceTrackNoIR/FaceTrackNoIR.h index 93160c48..e1bdc5cb 100644 --- a/FaceTrackNoIR/FaceTrackNoIR.h +++ b/FaceTrackNoIR/FaceTrackNoIR.h @@ -37,6 +37,7 @@ #include "ui_FaceTrackNoIR.h"
#include "ui_FTNoIR_KeyboardShortcuts.h"
#include "ui_FTNoIR_Preferences.h"
+#include "ui_FTNoIR_Curves.h"
#include <sm_api_qt.h>
#include <Dshow.h>
@@ -67,6 +68,7 @@ private: QWidget *_server_controls;
QWidget *_preferences;
QWidget *_keyboard_shortcuts;
+ QWidget *_curve_config;
/** QT objects **/
QDialog aboutDialog;
@@ -109,6 +111,7 @@ private: void showServerControls();
void showPreferences();
void showKeyboardShortcuts();
+ void showCurveConfiguration();
// sensibility sliders
void setSensYaw( int sens );
@@ -196,5 +199,29 @@ private slots: void keyChanged( int index ) { settingsDirty = true; };
};
+// Widget that has controls for Keyboard shortcuts.
+class CurveConfigurationDialog: public QWidget, public Ui::UICCurveConfigurationDialog
+{
+ Q_OBJECT
+public:
+
+ explicit CurveConfigurationDialog( QWidget *parent=0, Qt::WindowFlags f=0 );
+ virtual ~CurveConfigurationDialog();
+ void showEvent ( QShowEvent * event );
+
+private:
+ Ui::UICCurveConfigurationDialog ui;
+ void loadSettings();
+ void save();
+
+ /** helper **/
+ bool settingsDirty;
+
+private slots:
+ void doOK();
+ void doCancel();
+ void curveChanged( bool change ) { settingsDirty = true; };
+};
+
#endif // FaceTrackNoIR_H
|