+ class Loader: public DataFile::DerivedObjectLoader<Panel, Widget::Loader>
+ {
+ public:
+ typedef std::map<std::string, Widget *> WidgetMap;
+
+ protected:
+ template<typename T>
+ struct AddChildType
+ {
+ void operator()(const std::string &, Loader &) const;
+ };
+
+ WidgetMap &wdg_map;
+ Widget *last_widget;
+
+ public:
+ Loader(Panel &, WidgetMap &);
+
+ private:
+ Widget &get_last_widget();
+ template<typename T>
+ void arrangement();
+ template<typename T>
+ void child(const std::string &);
+ void constraint(Layout::ConstraintType, const std::string &);
+ void expand(bool, bool);
+ void ghost(bool);
+ void gravity(int, int);
+ void grid(std::size_t);
+ void layout();
+ template<typename T>
+ void unnamed_child();
+
+ friend class Panel;
+ };
+