X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpanel.h;h=09096f75c0b06855d3879f517702cde14245b4a2;hb=6deafc9f236b90175a303944815f7c0eac1c95c1;hp=8881f8cb700adac60dfbff20b4336ae2dfe5df76;hpb=405ac4d6193635ae6ee7dacb6ecd6b098fe84c42;p=libs%2Fgltk.git diff --git a/source/panel.h b/source/panel.h index 8881f8c..09096f7 100644 --- a/source/panel.h +++ b/source/panel.h @@ -1,7 +1,7 @@ #ifndef MSP_GLTK_PANEL_H_ #define MSP_GLTK_PANEL_H_ -#include +#include #include "container.h" #include "layout.h" @@ -25,7 +25,7 @@ public: template struct AddChildType { - static void add(Loader &, const std::string &); + void operator()(const std::string &, Loader &) const; }; WidgetMap &wdg_map; @@ -68,7 +68,7 @@ protected: std::vector nav_order; Layout *layout; - static DataFile::LoadableTypeRegistry widget_registry; + static TypeRegistry widget_registry; static bool widget_registry_init_done; Panel(const Panel &); @@ -95,7 +95,7 @@ protected: Widget *find_next_child(int, int, int, int, int) const; static int compute_delta(int, int, int, int, int); - virtual void on_geometry_change(); + virtual void on_size_change(); virtual void on_child_added(Widget &); virtual void on_child_removed(Widget &); }; @@ -126,7 +126,7 @@ void Panel::Loader::unnamed_child() template -void Panel::Loader::AddChildType::add(Loader &ldr, const std::string &kwd) +void Panel::Loader::AddChildType::operator()(const std::string &kwd, Loader &ldr) const { ldr.add(kwd, &Loader::child); ldr.add(kwd, &Loader::unnamed_child);