From c4c115aa8d7fea128cecdcf9d08ae1935907c1ec Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 20 Oct 2014 08:25:07 +0200 Subject: declutter stuff outta UI class --- facetracknoir/facetracknoir.h | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'facetracknoir/facetracknoir.h') diff --git a/facetracknoir/facetracknoir.h b/facetracknoir/facetracknoir.h index 13c2bb59..c90b33f6 100644 --- a/facetracknoir/facetracknoir.h +++ b/facetracknoir/facetracknoir.h @@ -50,39 +50,28 @@ #include "opentrack/tracker.h" #include "opentrack/shortcuts.h" #include "opentrack/work.hpp" +#include "opentrack/state.hpp" #include "curve-config.h" using namespace options; -class FaceTrackNoIR : public QMainWindow +class FaceTrackNoIR : public QMainWindow, private State { Q_OBJECT -public: - pbundle b; - main_settings s; -private: - // XXX move the shit outta the _widget_, establish a class - // for running tracker state, etc -sh 20141014 - Mappings pose; Ui::OpentrackUI ui; QTimer timUpdateHeadPose; - SelectedLibraries libs; - ptr work; - ptr shortcuts_widget; ptr mapping_widget; QShortcut kbd_quit; QPixmap no_feed_pixmap; + ptr pFilterDialog; ptr pProtocolDialog; ptr pTrackerDialog; - Modules modules; - // XXX this shit stinks -sh 20141004 - // TODO move to separate class representing running tracker state ptr current_tracker() { return modules.trackers().value(ui.iconcomboTrackerSource->currentIndex(), nullptr); -- cgit v1.2.3