diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2010-12-18 14:18:36 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2010-12-18 14:18:36 +0000 |
commit | 53231950ec75f67a931d47b78987a6bcac9d2eb0 (patch) | |
tree | 8a3b2b7c1568126c59150a067a6b9d997bd04467 /FaceTrackNoIR/FaceTrackNoIR.cpp | |
parent | 9e0250dcad1ef02dc6cba1315fe37c8c2329769a (diff) |
Tracker Source beginning FTNoIR tracker
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@31 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/FaceTrackNoIR.cpp')
-rw-r--r-- | FaceTrackNoIR/FaceTrackNoIR.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/FaceTrackNoIR/FaceTrackNoIR.cpp b/FaceTrackNoIR/FaceTrackNoIR.cpp index cbed2ffd..7298a207 100644 --- a/FaceTrackNoIR/FaceTrackNoIR.cpp +++ b/FaceTrackNoIR/FaceTrackNoIR.cpp @@ -314,6 +314,10 @@ void FaceTrackNoIR::save() { iniFile.setValue ( "Selection", ui.iconcomboBox->currentIndex() );
iniFile.endGroup ();
+ iniFile.beginGroup ( "TrackerSource" );
+ iniFile.setValue ( "Selection", ui.iconcomboTrackerSource->currentIndex() );
+ iniFile.endGroup ();
+
settingsDirty = false;
}
@@ -402,6 +406,10 @@ void FaceTrackNoIR::loadSettings() { setIcon( ui.iconcomboBox->currentIndex() );
iniFile.endGroup ();
+ iniFile.beginGroup ( "TrackerSource" );
+ ui.iconcomboTrackerSource->setCurrentIndex(iniFile.value ( "Selection", 0 ).toInt());
+ iniFile.endGroup ();
+
settingsDirty = false;
// Put the filename in the window-title
@@ -445,7 +453,7 @@ void FaceTrackNoIR::startTracker( ) { //
// Create the Tracker and setup
//
- tracker = new Tracker ( ui.iconcomboBox->currentIndex() );
+ tracker = new Tracker ( ui.iconcomboBox->currentIndex(), ui.iconcomboTrackerSource->currentIndex() );
// Show the video widget
ui.video_frame->show();
@@ -880,6 +888,7 @@ void FaceTrackNoIR::iconActivated(QSystemTrayIcon::ActivationReason reason) //
void FaceTrackNoIR::trackingSourceSelected(int index)
{
+ settingsDirty = true;
switch (ui.iconcomboTrackerSource->currentIndex()) {
case 0: // Face API
break;
|