]> git.tdb.fi Git - r2c2.git/blob - source/designer/input.h
e3fc7c34147441e335a4e0757f12a29b7d27cc04
[r2c2.git] / source / designer / input.h
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2008, 2010  Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef INPUT_H_
9 #define INPUT_H_
10
11 #include <string>
12 #include <sigc++/sigc++.h>
13 #include <msp/gltk/dialog.h>
14 #include <msp/gltk/entry.h>
15
16 class Designer;
17
18 class InputDialog: public Msp::GLtk::Dialog
19 {
20 public:
21         sigc::signal<void, const std::string &> signal_accept;
22
23 private:
24         Designer &designer;
25         Msp::GLtk::Entry *entry;
26
27 public:
28         InputDialog(Designer &, const std::string &, const std::string & =std::string());
29 private:
30         virtual void key_press(unsigned, unsigned, wchar_t);
31         virtual void on_response(int);
32 };
33
34 #endif