diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-09 06:27:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-09 06:27:23 +0100 |
commit | b41fdd0111baf86132c3b61b8e1e6085635e77be (patch) | |
tree | 2caea6565fe3c2b070ab5260380664246a4d10fb /tracker-kinect-face/kinect_face_settings.cpp | |
parent | b9d34a26d35d05f793161e54001329edb5122a81 (diff) | |
parent | 26ad3d2b154f9161cf577060f9b161e3312b5e76 (diff) |
Merge pull request #869 from Slion/tracker-kinect-face
Tracker kinect face
Diffstat (limited to 'tracker-kinect-face/kinect_face_settings.cpp')
-rw-r--r-- | tracker-kinect-face/kinect_face_settings.cpp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tracker-kinect-face/kinect_face_settings.cpp b/tracker-kinect-face/kinect_face_settings.cpp new file mode 100644 index 00000000..238a3da6 --- /dev/null +++ b/tracker-kinect-face/kinect_face_settings.cpp @@ -0,0 +1,47 @@ +/* Copyright (c) 2014, Stanislaw Halik <sthalik@misaki.pl> + + * Permission to use, copy, modify, and/or distribute this + * software for any purpose with or without fee is hereby granted, + * provided that the above copyright notice and this permission + * notice appear in all copies. + */ + +#include "kinect_face_settings.h" +#include "kinect_face_tracker.h" +#include "api/plugin-api.hpp" +#include "compat/math-imports.hpp" + +#include <QPushButton> + +#include <cmath> +#include <QDebug> + + +KinectFaceSettings::KinectFaceSettings() +{ + ui.setupUi(this); + + connect(ui.buttonBox, &QDialogButtonBox::clicked, [this](QAbstractButton* btn) { + if (btn == ui.buttonBox->button(QDialogButtonBox::Abort)) + { + // NOLINTNEXTLINE + //*(volatile int*)nullptr = 0; + } + }); + + connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(doOK())); + connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel())); +} + +void KinectFaceSettings::doOK() +{ + //s.b->save(); + close(); +} + +void KinectFaceSettings::doCancel() +{ + close(); +} + +OPENTRACK_DECLARE_TRACKER(KinectFaceTracker, KinectFaceSettings, KinectFaceMetadata) |