- Panel(const Resources &);
- ~Panel();
-
- void add(Widget &);
- 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<Widget *> ChildSeq;
-
- ChildSeq children;
- Widget *pointer_focus;
- unsigned pointer_grab;
- Widget *input_focus;
+ class Loader: public Widget::Loader
+ {
+ public:
+ typedef std::map<std::string, Widget *> WidgetMap;
+
+ private:
+ Panel &pnl;
+ WidgetMap &wdg_map;
+
+ public:
+ Loader(Panel &, WidgetMap &);
+ private:
+ template<typename T>
+ void child(const std::string &);
+ void panel(const std::string &);
+ };
+
+protected:
+ Layout *layout;