]> git.tdb.fi Git - r2c2.git/blob - source/designer/input.h
276ce5ff0d505a8d08557d99fed230e7861fdba8
[r2c2.git] / source / designer / input.h
1 #ifndef INPUT_H_
2 #define INPUT_H_
3
4 #include <string>
5 #include <sigc++/sigc++.h>
6
7 class Designer;
8
9 class Input
10 {
11 public:
12         sigc::signal<void> signal_accept;
13         sigc::signal<void> signal_cancel;
14
15         Input(Designer &, const std::string &, const std::string & ="");
16         const std::string &get_text() { return text; }
17         void key_press(unsigned, unsigned, wchar_t);
18         void render();
19 private:
20         Designer    &designer;
21         std::string title;
22         std::string text;
23         unsigned    pos;
24 };
25
26 #endif