]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/input.h
Rename the project to R²C²
[r2c2.git] / source / designer / input.h
index 2bcd16c96571a9fe0b10d88d5a6845601fd49f52..a9ecfe1012c77168f24eb2f5d2913866712979b2 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
-This file is part of the MSP Märklin suite
-Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+This file is part of R²C²
+Copyright © 2006-2008, 2010  Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
@@ -10,25 +10,25 @@ Distributed under the GPL
 
 #include <string>
 #include <sigc++/sigc++.h>
+#include <msp/gltk/dialog.h>
 #include <msp/gltk/entry.h>
 
 class Designer;
 
-class Input: public Msp::GLtk::Panel
+class InputDialog: public Msp::GLtk::Dialog
 {
 public:
-       sigc::signal<void> signal_accept;
-       sigc::signal<void> signal_cancel;
+       sigc::signal<void, const std::string &> signal_accept;
 
 private:
        Designer &designer;
        Msp::GLtk::Entry *entry;
 
 public:
-       Input(Designer &, const std::string &, const std::string & =std::string());
-       const std::string &get_text() const;
+       InputDialog(Designer &, const std::string &, const std::string & =std::string());
 private:
        virtual void key_press(unsigned, unsigned, wchar_t);
+       virtual void on_response(int);
 };
 
 #endif