class TrainItem: public GLtk::List::Item
{
private:
+ GLtk::Label protocol;
GLtk::Label address;
GLtk::Label name;
TrainItem::TrainItem(ValueType train):
+ protocol(train->get_protocol()),
address(lexical_cast<string>(train->get_address())),
name(train->get_name())
{
+ add(protocol);
add(address);
add(name);
}
if(!style)
return;
+ protocol.autosize();
address.autosize();
name.autosize();
if(const GLtk::Part *part = style->get_part("children"))
{
const GLtk::Sides &margin = part->get_margin();
- address.set_position(margin.left, margin.bottom);
- name.set_position(margin.left+30, margin.bottom);
+ protocol.set_position(margin.left, margin.bottom);
+ address.set_position(margin.left+30, margin.bottom);
+ name.set_position(margin.left+60, margin.bottom);
}
}