1 #ifndef TRAINLISTDIALOG_H_
2 #define TRAINLISTDIALOG_H_
4 #include <sigc++/trackable.h>
5 #include <msp/gltk/dialog.h>
6 #include <msp/gltk/list.h>
7 #include <msp/gltk/listdata.h>
8 #include "libr2c2/layout.h"
12 class TrainListDialog: public Msp::GLtk::Dialog, public sigc::trackable
17 Msp::GLtk::BasicListData<R2C2::Train *> trains;
18 Msp::GLtk::List *lst_trains;
19 Msp::GLtk::BasicListData<const R2C2::Driver::DetectedLocomotive *> detected_locos;
20 Msp::GLtk::List *lst_imported;
23 TrainListDialog(Engineer &);
28 void tab_toggled(bool, Msp::GLtk::Widget *);
29 void locomotive_detected(const R2C2::Driver::DetectedLocomotive &);
30 void locomotive_gone(const R2C2::Driver::DetectedLocomotive &);
31 void train_added(R2C2::Train &);
32 void train_removed(R2C2::Train &);
33 void train_name_changed(R2C2::Train &);