+void List::MultiColumnItem::on_style_change()
+{
+ if(!style)
+ return;
+
+ for(std::list<Child *>::const_iterator i=children.begin(); i!=children.end(); ++i)
+ (*i)->widget->autosize();
+
+ vector<unsigned> widths;
+ List *list = static_cast<List *>(parent);
+ for(vector<Item *>::const_iterator i=list->items.begin(); i!=list->items.end(); ++i)
+ if(*i!=this)
+ if(MultiColumnItem *mci = dynamic_cast<MultiColumnItem *>(*i))
+ mci->check_widths(widths);
+
+ vector<unsigned> self_widths(widths);
+ check_widths(self_widths);
+ bool update_all = false;
+ for(unsigned i=0; (!update_all && i<widths.size() && i<self_widths.size()); ++i)
+ update_all = self_widths[i]>widths[i];
+
+ if(update_all)
+ {
+ for(vector<Item *>::const_iterator i=list->items.begin(); i!=list->items.end(); ++i)
+ if(MultiColumnItem *mci = dynamic_cast<MultiColumnItem *>(*i))
+ mci->set_widths(self_widths);
+ }
+
+ set_widths(self_widths);
+}
+
+
+List::BasicItem::BasicItem(const string &text):
+ label(text)
+{
+ add(label);
+}
+