+void Panel::Loader::expand(bool h, bool v)
+{
+ get_layout().set_expand(get_last_widget(), h, v);
+}
+
+void Panel::Loader::ghost(bool g)
+{
+ get_layout().set_ghost(get_last_widget(), g);
+}
+
+void Panel::Loader::gravity(int h, int v)
+{
+ get_layout().set_gravity(get_last_widget(), h, v);
+}
+
+void Panel::Loader::grid(unsigned cols)
+{
+ Grid grd(get_layout(), cols);
+ ArrangedLoader<Grid> ldr(*this, grd);
+ load_sub_with(ldr);
+}
+
+void Panel::Loader::layout()
+{
+ Layout::Loader ldr(get_layout(), wdg_map);
+ load_sub_with(ldr);
+}
+
+template<>
+void Panel::Loader::unnamed_child<Panel>()
+{
+ RefPtr<Panel> pnl = new Panel();
+ load_sub(*pnl, wdg_map);
+ obj.add(*pnl.get());
+ last_widget = pnl.release();
+}
+
+
+template<typename T>
+Panel::ArrangedLoader<T>::ArrangedLoader(Loader &ldr, T &arr):
+ arr_loader(arr)
+{
+ add_auxiliary_loader(ldr);
+ add_auxiliary_loader(arr_loader);