]> git.tdb.fi Git - r2c2.git/blob - source/designer/input.h
Add Id tags and copyright notices to files
[r2c2.git] / source / designer / input.h
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2008 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
14 class Designer;
15
16 class Input
17 {
18 public:
19         sigc::signal<void> signal_accept;
20         sigc::signal<void> signal_cancel;
21
22         Input(Designer &, const std::string &, const std::string & ="");
23         const std::string &get_text() { return text; }
24         void key_press(unsigned, unsigned, wchar_t);
25         void render();
26 private:
27         Designer    &designer;
28         std::string title;
29         std::string text;
30         unsigned    pos;
31 };
32
33 #endif