X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Finput.h;h=e3fc7c34147441e335a4e0757f12a29b7d27cc04;hb=17c219cff8f859978ec1274786319478cc99450c;hp=276ce5ff0d505a8d08557d99fed230e7861fdba8;hpb=6c61179fe09af2f5366d50f10aadbf5f83438087;p=r2c2.git diff --git a/source/designer/input.h b/source/designer/input.h index 276ce5f..e3fc7c3 100644 --- a/source/designer/input.h +++ b/source/designer/input.h @@ -1,26 +1,34 @@ +/* $Id$ + +This file is part of the MSP Märklin suite +Copyright © 2006-2008, 2010 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; - 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