X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Finput.h;h=2bcd16c96571a9fe0b10d88d5a6845601fd49f52;hb=f42183985c65e1e12f19e9246dee90b8e7e44a34;hp=3449e2b8cb1612d61322f7016d7ae901fab289a6;hpb=3e9c210ddc036cd015228504cc0803c909e27f84;p=r2c2.git diff --git a/source/designer/input.h b/source/designer/input.h index 3449e2b..2bcd16c 100644 --- a/source/designer/input.h +++ b/source/designer/input.h @@ -10,24 +10,25 @@ Distributed under the GPL #include #include +#include class Designer; -class Input +class Input: public Msp::GLtk::Panel { public: sigc::signal signal_accept; sigc::signal signal_cancel; - 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: + Input(Designer &, const std::string &, const std::string & =std::string()); + const std::string &get_text() const; +private: + virtual void key_press(unsigned, unsigned, wchar_t); }; #endif