]> git.tdb.fi Git - r2c2.git/blob - source/designer/input.h
Don't crash if a train has no router
[r2c2.git] / source / designer / input.h
1 #ifndef INPUT_H_
2 #define INPUT_H_
3
4 #include <string>
5 #include <sigc++/sigc++.h>
6 #include <msp/gltk/dialog.h>
7 #include <msp/gltk/entry.h>
8
9 class Designer;
10
11 class InputDialog: public Msp::GLtk::Dialog
12 {
13 public:
14         sigc::signal<void, const std::string &> signal_accept;
15
16 private:
17         Designer &designer;
18         Msp::GLtk::Entry *entry;
19
20 public:
21         InputDialog(Designer &, const std::string &, const std::string & =std::string());
22 private:
23         virtual void key_press(unsigned, unsigned);
24         virtual void on_response(int);
25 };
26
27 #endif