diff options
author | Patrick Ruoff <c14-radioactive@19e81ba0-9b1a-49c3-bd6c-561e1906d5fb> | 2012-09-20 15:08:10 +0000 |
---|---|---|
committer | Patrick Ruoff <c14-radioactive@19e81ba0-9b1a-49c3-bd6c-561e1906d5fb> | 2012-09-20 15:08:10 +0000 |
commit | 5da3b245b35cdd2bb4b1490aae81f8d0ff0bde82 (patch) | |
tree | 625b80ab77e3bfc408ea245cffa912affda2a447 /FTNoIR_Tracker_PT/ftnoir_tracker_pt_dialog.cpp | |
parent | 13abb65d05e8eebe2438f952cde0867d9b0fa47e (diff) |
corrected vc9 project file debug settings
Tracker_PT: implemented centering
Tracker_PT: implemented new point extraction
Tracker_PT: various bugfixes
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@148 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Tracker_PT/ftnoir_tracker_pt_dialog.cpp')
-rw-r--r-- | FTNoIR_Tracker_PT/ftnoir_tracker_pt_dialog.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/FTNoIR_Tracker_PT/ftnoir_tracker_pt_dialog.cpp b/FTNoIR_Tracker_PT/ftnoir_tracker_pt_dialog.cpp index 4b79b892..e13ed94a 100644 --- a/FTNoIR_Tracker_PT/ftnoir_tracker_pt_dialog.cpp +++ b/FTNoIR_Tracker_PT/ftnoir_tracker_pt_dialog.cpp @@ -62,6 +62,7 @@ TrackerDialog::TrackerDialog() connect(ui.ok_button, SIGNAL(clicked()), this, SLOT(doOK()));
connect(ui.cancel_button, SIGNAL(clicked()), this, SLOT(doCancel()));
+ connect(ui.center_button, SIGNAL(clicked()), this, SLOT(doCenter()));
connect(&timer,SIGNAL(timeout()), this,SLOT(poll_tracker_info()));
timer.start(100);
@@ -114,6 +115,12 @@ void TrackerDialog::settings_changed() tracker->apply_without_camindex(settings);
}
+void TrackerDialog::doCenter()
+{
+ if (tracker)
+ tracker->CenterTracker();
+}
+
void TrackerDialog::doOK()
{
settings.save_ini();
@@ -196,7 +203,7 @@ void TrackerDialog::unRegisterTracker() {
qDebug()<<"tracker un-registerd";
tracker = NULL;
- ui.tcalib_button->setEnabled(true);
+ ui.tcalib_button->setEnabled(false);
}
//-----------------------------------------------------------------------------
|