diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-11 19:03:10 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-11 19:03:10 +0100 |
commit | fbd961775001228f6ffd9cc3bf09aa2de610aeae (patch) | |
tree | b54c35357ea0ec0fbf2d78d14a17bcf4047c9488 /tracker-pt/ftnoir_tracker_pt_dialog.h | |
parent | 71374d0b5cd456e25252775fdec89fe3cf2aa5e6 (diff) |
tracker/pt: allow for reuse
Issue: #718
This allows for replacing the camera and point extractor code. See
`module.cpp' and `pt-api.hpp`.
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt_dialog.h')
-rw-r--r-- | tracker-pt/ftnoir_tracker_pt_dialog.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt_dialog.h b/tracker-pt/ftnoir_tracker_pt_dialog.h index bae03adc..655e52ca 100644 --- a/tracker-pt/ftnoir_tracker_pt_dialog.h +++ b/tracker-pt/ftnoir_tracker_pt_dialog.h @@ -5,11 +5,10 @@ * copyright notice and this permission notice appear in all copies. */ -#ifndef FTNOIR_TRACKER_PT_DIALOG_H -#define FTNOIR_TRACKER_PT_DIALOG_H +#pragma once + +#include "pt-api.hpp" -#include "api/plugin-api.hpp" -#include "ftnoir_tracker_pt_settings.h" #include "ftnoir_tracker_pt.h" #include "ui_FTNoIR_PT_Controls.h" #include "cv/translation-calibrator.hpp" @@ -23,7 +22,7 @@ class TrackerDialog_PT : public ITrackerDialog { Q_OBJECT public: - TrackerDialog_PT(); + TrackerDialog_PT(const QString& module_name); void register_tracker(ITracker *tracker) override; void unregister_tracker() override; void save(); @@ -41,7 +40,7 @@ signals: private: QString threshold_display_text(int threshold_value); - settings_pt s; + pt_settings s; Tracker_PT* tracker; QTimer timer, calib_timer; TranslationCalibrator trans_calib; @@ -50,5 +49,3 @@ private: Ui::UICPTClientControls ui; }; - -#endif //FTNOIR_TRACKER_PT_DIALOG_H |