diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2011-10-22 15:28:38 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2011-10-22 15:28:38 +0000 |
commit | 17fcad9850754d2d0ec662c46e7940b07b64804c (patch) | |
tree | 5875c85a90c8ff3b52bb360f0f1dde9a81b85544 /FaceTrackNoIR/FaceTrackNoIR.cpp | |
parent | c4f8fe0c097a3282270db7eecda4c7eb533b99fc (diff) |
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@94 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/FaceTrackNoIR.cpp')
-rw-r--r-- | FaceTrackNoIR/FaceTrackNoIR.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/FaceTrackNoIR/FaceTrackNoIR.cpp b/FaceTrackNoIR/FaceTrackNoIR.cpp index d71f5954..a9334752 100644 --- a/FaceTrackNoIR/FaceTrackNoIR.cpp +++ b/FaceTrackNoIR/FaceTrackNoIR.cpp @@ -427,9 +427,9 @@ void FaceTrackNoIR::loadSettings() { disconnect(ui.iconcomboProfile, SIGNAL(currentIndexChanged(int)), this, SLOT(profileSelected(int)));
ui.iconcomboProfile->clear();
for ( int i = 0; i < iniFileList.size(); i++) {
- ui.iconcomboProfile->addItem(QIcon(QCoreApplication::applicationDirPath() + "/images/Settings16.png"), iniFileList.at(i));
+ ui.iconcomboProfile->addItem(QIcon(":/images/Settings16.png"), iniFileList.at(i));
if (iniFileList.at(i) == pathInfo.fileName()) {
- ui.iconcomboProfile->setItemIcon(i, QIcon(QCoreApplication::applicationDirPath() + "/images/SettingsOpen16.png"));
+ ui.iconcomboProfile->setItemIcon(i, QIcon(":/images/SettingsOpen16.png"));
ui.iconcomboProfile->setCurrentIndex( i );
}
}
@@ -491,7 +491,7 @@ void FaceTrackNoIR::about() { aboutDialog.setMinimumWidth(270);
aboutDialog.setMinimumHeight(440);
- aboutDialog.setStyleSheet("background:#fff url(UIElements/aboutFaceTrackNoIR.png) no-repeat;");
+ aboutDialog.setStyleSheet("background:#fff url(:/UIElements/aboutFaceTrackNoIR.png) no-repeat;");
}
/** start tracking the face **/
@@ -1533,6 +1533,13 @@ int keyindex; ui.chkInhibitY->setChecked (iniFile.value ( "Inhibit_Y", 0 ).toBool());
ui.chkInhibitZ->setChecked (iniFile.value ( "Inhibit_Z", 0 ).toBool());
+
+ // Reverse Axis
+ ui.chkEnableReverseAxis->setChecked (iniFile.value ( "Enable_ReverseAxis", 0 ).toBool());
+ ui.spinYawAngle4ReverseAxis->setValue( settings.value ( "RA_Yaw", 40 ).toInt() );
+ ui.spinZ_Pos4ReverseAxis->setValue( settings.value ( "RA_ZPos", -20 ).toInt() );
+ ui.spinZ_PosWhenReverseAxis->setValue( settings.value ( "RA_ToZPos", 50 ).toInt() );
+
iniFile.endGroup ();
settingsDirty = false;
@@ -1581,6 +1588,12 @@ void KeyboardShortcutDialog::save() { iniFile.setValue ( "Inhibit_Y", ui.chkInhibitY->isChecked() );
iniFile.setValue ( "Inhibit_Z", ui.chkInhibitZ->isChecked() );
+ // Reverse Axis
+ iniFile.setValue ( "Enable_ReverseAxis", ui.chkEnableReverseAxis->isChecked() );
+ settings.setValue( "RA_Yaw", ui.spinYawAngle4ReverseAxis->value() );
+ settings.setValue( "RA_ZPos", ui.spinZ_Pos4ReverseAxis->value() );
+ settings.setValue( "RA_ToZPos", ui.spinZ_PosWhenReverseAxis->value() );
+
iniFile.endGroup ();
settingsDirty = false;
|