X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Finput.h;h=85a58584a41e11d17989ed9cd584b579a0fc1154;hb=c4a5973cff25a0dcdce11c0cbdf8e0fdc1ef4659;hp=9a4dbccd565a4c8580b48e3d58a51774ac700840;hpb=449fb5de95ddb2ac9da4bd72a1c12150505d5549;p=r2c2.git diff --git a/source/designer/input.h b/source/designer/input.h index 9a4dbcc..85a5858 100644 --- a/source/designer/input.h +++ b/source/designer/input.h @@ -1,35 +1,27 @@ -/* $Id$ - -This file is part of the MSP Märklin suite -Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #ifndef INPUT_H_ #define INPUT_H_ #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; private: Designer &designer; - std::string title; - std::string text; - unsigned pos; + Msp::GLtk::Entry *entry; public: - Input(Designer &, const std::string &, const std::string & =std::string()); - const std::string &get_text() { return text; } - void key_press(unsigned, unsigned, wchar_t); - void render(); + InputDialog(Designer &, const std::string &, const std::string & =std::string()); +private: + virtual void key_press(unsigned, unsigned); + virtual void on_response(int); }; #endif