/* * CoachController.h * * Created on: 7 May 2017 * Author: jeremy */ #ifndef SOURCE_CONTROLLERS_COACHCONTROLLER_H_ #define SOURCE_CONTROLLERS_COACHCONTROLLER_H_ #include #include #include #include #include #include #include #include namespace Controllers { class CoachController { public: CoachController(Glib::RefPtr builder, std::shared_ptr drumKit); virtual ~CoachController(); private: void OpenRhythmCoach(); void CloseRhythmCoach(); bool UpdateCoach(); Glib::RefPtr builder; std::shared_ptr drumKit; Gtk::Window* coachWindow; Gtk::Button* coachButton; Gtk::Button* coachCloseButton; Gtk::Scale* clickMeter; Gtk::Scale* jitterMeter; Gtk::LevelBar* hitMeterBar; Gtk::Label* scoreLabel; sigc::connection coachTimeout; std::vector scores; size_t scoreIndex = 0; long long prevLastTrigTime = 0; }; } /* namespace Controllers */ #endif /* SOURCE_CONTROLLERS_COACHCONTROLLER_H_ */