- add(*(ent_group = new GLtk::Entry(zone.get_group())));
- ent_group->set_geometry(GLtk::Geometry(80, geom.h-65, geom.w-90, 20));
-
- add(*(lbl = new GLtk::Label("Qualifier")));
- lbl->set_geometry(GLtk::Geometry(10, geom.h-95, 70, 20));
+ add(*(drp_qualifier = new GLtk::Dropdown));
+ GLtk::ListDataStore<string> &data = dynamic_cast<GLtk::ListDataStore<string> &>(drp_qualifier->get_data());
+ const char *qualifiers[] = { "track", "platform", "siding", 0 };
+ for(unsigned i=0; qualifiers[i]; ++i)
+ {
+ data.append(qualifiers[i]);
+ if(zone.get_qualifier()==qualifiers[i])
+ drp_qualifier->set_selected_index(i);
+ }
+ }