1 #ifndef USERINTERFACE_H_
2 #define USERINTERFACE_H_
4 #include <msp/gltk/resources.h>
5 #include <msp/gltk/root.h>
6 #include "libr2c2/driver.h"
7 #include "libr2c2/train.h"
8 #include "libr2c2/zone.h"
9 #include "mainwindow.h"
17 Msp::GLtk::Resources resources;
19 Msp::GLtk::Arrangement *root_arrangement;
22 std::set<DynamicDialog *> dyn_dialogs;
25 Msp::Time::TimeStamp status_timeout;
28 UserInterface(Engineer &, Msp::Graphics::Window &, Msp::Input::Keyboard &, Msp::Input::Mouse &);
31 const Msp::GLtk::Resources &get_resources() const { return resources; }
33 void set_status(const std::string &);
34 void add_dynamic_dialog(DynamicDialog &);
35 void remove_dynamic_dialog(DynamicDialog &);
37 void show_train(R2C2::Train &);
38 void show_zone(R2C2::Zone &);
40 void locomotive_detected(const R2C2::Driver::DetectedLocomotive &);
41 void import_finished(int);