X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpanel.cpp;h=59c363ce02b658bfbf0de73afc0770d8901b16e7;hb=9f032a71201e6ad964e46a2a06c4003503b7dd54;hp=97e13a2591b34dd9107f2dd65c22baa86750f676;hpb=cfb830ca263defc307f9cfac74fb6771f6b7bfc6;p=libs%2Fgltk.git diff --git a/source/panel.cpp b/source/panel.cpp index 97e13a2..59c363c 100644 --- a/source/panel.cpp +++ b/source/panel.cpp @@ -7,23 +7,26 @@ #include "dropdown.h" #include "entry.h" #include "grid.h" -#include "hslider.h" #include "image.h" #include "indicator.h" #include "label.h" #include "list.h" #include "panel.h" #include "part.h" +#include "progressbar.h" #include "row.h" +#include "slider.h" #include "stack.h" #include "toggle.h" -#include "vslider.h" using namespace std; namespace Msp { namespace GLtk { +DataFile::LoadableTypeRegistry Panel::widget_registry; +bool Panel::widget_registry_init_done = false; + Panel::Panel(): layout(0) { @@ -173,7 +176,7 @@ int Panel::compute_delta(int pos, int dim, int origin_pos, int origin_dim, int n return 0; } -void Panel::on_geometry_change() +void Panel::on_size_change() { if(layout) layout->update(); @@ -210,34 +213,34 @@ Panel::Loader::Loader(Panel &p, map &m): wdg_map(m), last_widget(0) { - add_child_type