summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'facetracknoir/ui.h')
-rw-r--r--facetracknoir/ui.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/facetracknoir/ui.h b/facetracknoir/ui.h
index 91e4ebbf..1b71b7f8 100644
--- a/facetracknoir/ui.h
+++ b/facetracknoir/ui.h
@@ -45,26 +45,16 @@ class MainWindow : public QMainWindow, private State
mem<MapWidget> mapping_widget;
QShortcut kbd_quit;
QPixmap no_feed_pixmap;
- mem<IFilterDialog> pFilterDialog;
mem<IProtocolDialog> pProtocolDialog;
- mem<ITrackerDialog> pTrackerDialog;
process_detector_worker det;
QMenu profile_menu;
bool is_refreshing_profiles;
QTimer save_timer;
- mem<dylib> current_tracker()
- {
- return modules.trackers().value(ui.iconcomboTrackerSource->currentIndex(), nullptr);
- }
mem<dylib> current_protocol()
{
return modules.protocols().value(ui.iconcomboProtocol->currentIndex(), nullptr);
}
- mem<dylib> current_filter()
- {
- return modules.filters().value(ui.iconcomboFilter->currentIndex(), nullptr);
- }
void changeEvent(QEvent* e) override;
@@ -76,15 +66,15 @@ class MainWindow : public QMainWindow, private State
static bool get_new_config_name_from_dialog(QString &ret);
void set_profile(const QString& profile);
void maybe_save();
+ bool maybe_not_close_tracking();
+ void closeEvent(QCloseEvent *e) override;
private slots:
void _save();
void save();
void exit();
void profileSelected(QString name);
- void showTrackerSettings();
void showProtocolSettings();
- void showFilterSettings();
void show_options_dialog();
void showCurveConfiguration();
void showHeadPose();