diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-09-14 17:11:36 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-09-14 17:11:36 +0200 |
commit | 8c3c17c9e0e9d377a69ad44c4a3e350bf9f1d505 (patch) | |
tree | e8861d1a0215c412bda709b7006db70c06f5252b /facetracknoir/curve-config.h | |
parent | a847cac005d6e42b302fbc9cb58caa0e9acd4ebd (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/curve-config.h')
-rw-r--r-- | facetracknoir/curve-config.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/facetracknoir/curve-config.h b/facetracknoir/curve-config.h new file mode 100644 index 00000000..e783dd33 --- /dev/null +++ b/facetracknoir/curve-config.h @@ -0,0 +1,28 @@ +#pragma once +#include <QWidget> +#include "ui_ftnoir_curves.h" + +class FaceTrackNoIR; + +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(); + + bool settingsDirty; + FaceTrackNoIR *mainApp; + +private slots: + void doOK(); + void doCancel(); + void curveChanged( bool change ) { settingsDirty = true; } + void curveChanged( int change ) { settingsDirty = true; } +}; |