]> git.tdb.fi Git - r2c2.git/blob - source/designer/input.h
Convert designer to use mspgltk for UI
[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 #include <msp/gltk/entry.h>
14
15 class Designer;
16
17 class Input: public Msp::GLtk::Panel
18 {
19 public:
20         sigc::signal<void> signal_accept;
21         sigc::signal<void> signal_cancel;
22
23 private:
24         Designer &designer;
25         Msp::GLtk::Entry *entry;
26
27 public:
28         Input(Designer &, const std::string &, const std::string & =std::string());
29         const std::string &get_text() const;
30 private:
31         virtual void key_press(unsigned, unsigned, wchar_t);
32 };
33
34 #endif