summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/curve-config.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-09-27 20:58:40 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-09-27 20:58:40 +0200
commit8ba44aa35d45c1b16e755e2917421281b3e3f7bd (patch)
treedeb3e81b98fead3e433f11a4df44df971678f948 /facetracknoir/curve-config.cpp
parente44bc913ca3d212e5e8eea8c70c47d58c633f335 (diff)
whitespace only
Diffstat (limited to 'facetracknoir/curve-config.cpp')
-rw-r--r--facetracknoir/curve-config.cpp25
1 files changed, 11 insertions, 14 deletions
diff --git a/facetracknoir/curve-config.cpp b/facetracknoir/curve-config.cpp
index 81383688..abf03a5e 100644
--- a/facetracknoir/curve-config.cpp
+++ b/facetracknoir/curve-config.cpp
@@ -3,11 +3,11 @@
CurveConfigurationDialog::CurveConfigurationDialog(FaceTrackNoIR *ftnoir, QWidget *parent) :
QWidget( parent, Qt::Dialog ), mainApp(ftnoir)
{
- ui.setupUi( this );
-
+ ui.setupUi( this );
+
// rest of mapping settings taken care of by options::value<t>
mainApp->load_mappings();
-
+
{
struct {
QFunctionConfigurator* qfc;
@@ -21,7 +21,7 @@ CurveConfigurationDialog::CurveConfigurationDialog(FaceTrackNoIR *ftnoir, QWidge
{ ui.txconfig, TX, false },
{ ui.tyconfig, TY, false },
{ ui.tzconfig, TZ, false },
-
+
{ ui.rxconfig_alt, Yaw, true },
{ ui.ryconfig_alt, Pitch, true},
{ ui.rzconfig_alt, Roll, true },
@@ -30,24 +30,21 @@ CurveConfigurationDialog::CurveConfigurationDialog(FaceTrackNoIR *ftnoir, QWidge
{ ui.tzconfig_alt, TZ, true },
{ nullptr, Yaw, false }
};
-
+
for (int i = 0; qfcs[i].qfc; i++)
{
const bool altp = qfcs[i].altp;
THeadPoseDOF& axis = mainApp->axis(qfcs[i].axis);
FunctionConfig* conf = altp ? &axis.curveAlt : &axis.curve;
const auto& name = qfcs[i].altp ? axis.name2 : axis.name1;
-
+
qfcs[i].qfc->setConfig(conf, name);
}
}
-
+
setFont(qApp->font());
QPoint offsetpos(120, 30);
- this->move(parent->pos() + offsetpos);
-
-
-
+ this->move(parent->pos() + offsetpos);
connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(doOK()));
connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel()));
@@ -75,7 +72,7 @@ CurveConfigurationDialog::CurveConfigurationDialog(FaceTrackNoIR *ftnoir, QWidge
tie_setting(mainApp->s.a_x.invert, ui.invert_x);
tie_setting(mainApp->s.a_y.invert, ui.invert_y);
tie_setting(mainApp->s.a_z.invert, ui.invert_z);
-
+
tie_setting(mainApp->s.a_yaw.src, ui.src_yaw);
tie_setting(mainApp->s.a_pitch.src, ui.src_pitch);
tie_setting(mainApp->s.a_roll.src, ui.src_roll);
@@ -85,8 +82,8 @@ CurveConfigurationDialog::CurveConfigurationDialog(FaceTrackNoIR *ftnoir, QWidge
}
void CurveConfigurationDialog::doOK() {
- save();
- this->close();
+ save();
+ this->close();
}
void CurveConfigurationDialog::doCancel() {