diff options
author | Stéphane Lenclud <github@lenclud.com> | 2019-04-13 12:59:22 +0200 |
---|---|---|
committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-24 18:46:12 +0200 |
commit | abaf23d7043c42a07e0d71fc0a17a8264c828d48 (patch) | |
tree | b5e8f14e4730bb45d26d2858a26ac2c6cbfc23a8 /tracker-easy/tracker-easy-dialog.h | |
parent | ac8f7a3e7b29a5ce60ae751ee3a97e3b344c8f3f (diff) |
EasyTracker: Adding namespace. Reducing number of classes.
Diffstat (limited to 'tracker-easy/tracker-easy-dialog.h')
-rw-r--r-- | tracker-easy/tracker-easy-dialog.h | 64 |
1 files changed, 33 insertions, 31 deletions
diff --git a/tracker-easy/tracker-easy-dialog.h b/tracker-easy/tracker-easy-dialog.h index 1f21f92b..8d4cffbd 100644 --- a/tracker-easy/tracker-easy-dialog.h +++ b/tracker-easy/tracker-easy-dialog.h @@ -17,35 +17,37 @@ #include <QTimer> #include <QMutex> - -class EasyTrackerDialog : public ITrackerDialog +namespace EasyTracker { - Q_OBJECT -public: - EasyTrackerDialog(const QString& module_name); - void register_tracker(ITracker *tracker) override; - void unregister_tracker() override; - void save(); -public slots: - void doOK(); - void doCancel(); - - void startstop_trans_calib(bool start); - void trans_calib_step(); - void poll_tracker_info_impl(); - void set_camera_settings_available(const QString& camera_name); - void show_camera_settings(); -signals: - void poll_tracker_info(); -protected: - QString threshold_display_text(int threshold_value); - - pt_settings s; - EasyTracker* tracker; - QTimer timer, calib_timer; - TranslationCalibrator trans_calib; - QMutex calibrator_mutex; - - Ui::UICPTClientControls ui; -}; - + class Dialog : public ITrackerDialog + { + Q_OBJECT + public: + Dialog(); + void register_tracker(ITracker *tracker) override; + void unregister_tracker() override; + void save(); + public slots: + void doOK(); + void doCancel(); + + void startstop_trans_calib(bool start); + void trans_calib_step(); + void poll_tracker_info_impl(); + void set_camera_settings_available(const QString& camera_name); + void show_camera_settings(); + signals: + void poll_tracker_info(); + protected: + QString threshold_display_text(int threshold_value); + + pt_settings s; + Tracker* tracker; + QTimer timer, calib_timer; + TranslationCalibrator trans_calib; + QMutex calibrator_mutex; + + Ui::UICPTClientControls ui; + }; + +} |