X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Finput.h;h=a9ecfe1012c77168f24eb2f5d2913866712979b2;hb=1ff06c5bc46a677fa389ef86c6b26664368f1653;hp=3449e2b8cb1612d61322f7016d7ae901fab289a6;hpb=3e9c210ddc036cd015228504cc0803c909e27f84;p=r2c2.git diff --git a/source/designer/input.h b/source/designer/input.h index 3449e2b..a9ecfe1 100644 --- a/source/designer/input.h +++ b/source/designer/input.h @@ -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,24 +10,25 @@ Distributed under the GPL #include #include +#include +#include class Designer; -class Input +class InputDialog: public Msp::GLtk::Dialog { public: - sigc::signal signal_accept; - sigc::signal signal_cancel; + sigc::signal signal_accept; - Input(Designer &, const std::string &, const std::string & =""); - const std::string &get_text() { return text; } - void key_press(unsigned, unsigned, wchar_t); - void render(); private: - Designer &designer; - std::string title; - std::string text; - unsigned pos; + Designer &designer; + Msp::GLtk::Entry *entry; + +public: + 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