X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpanel.h;h=bf17829c101449747c07a23d61170811dcb08d4c;hb=e7bc29984e91ee36555d6a4e4eece22170d10ba4;hp=31be7e57c1afb530c0ef58600d69c9e31110c12b;hpb=c062ca892fc6e10f74a76991b5d4b4349c046b5f;p=libs%2Fgltk.git diff --git a/source/panel.h b/source/panel.h index 31be7e5..bf17829 100644 --- a/source/panel.h +++ b/source/panel.h @@ -9,6 +9,19 @@ namespace GLtk { class Panel: public Widget { public: + class Loader: public Widget::Loader + { + private: + Panel &panel; + std::map &wdg_map; + + public: + Loader(Panel &, std::map &); + private: + template + void child(const std::string &); + }; + Panel(const Resources &); ~Panel(); @@ -16,18 +29,23 @@ public: void button_press(int, int, unsigned); void button_release(int, int, unsigned); void pointer_motion(int, int); + void key_press(unsigned, unsigned, wchar_t); + void key_release(unsigned, unsigned); + void focus_out(); private: typedef std::list ChildSeq; ChildSeq children; Widget *pointer_focus; unsigned pointer_grab; + Widget *input_focus; Panel(const Panel &); Panel &operator=(const Panel &); const char *get_class() const { return "panel"; } void render_part(const Part &) const; void set_pointer_focus(Widget *); + void set_input_focus(Widget *); }; } // namespace GLtk