- rows->start_row();
- add(*(lbl1 = new GLtk::Label("Group")));
- add(*(ent_group = new GLtk::Entry(zone.get_group())));
- ent_group->set_edit_size(30, 1);
+ {
+ GLtk::Row row(*layout);
+ add(*(lbl1 = new GLtk::Label("Group")));
+ add(*(ent_group = new GLtk::Entry(zone.get_group())));
+ ent_group->set_edit_size(30, 1);
+ }
+
+ {
+ GLtk::Row row(*layout);
+ add(*(lbl2 = new GLtk::Label("Qualifier")));
+ layout->add_constraint(*lbl1, GLtk::Layout::COPY_WIDTH, *lbl2);
+
+ add(*(drp_qualifier = new GLtk::Dropdown));
+ GLtk::ListDataStore<string> &data = dynamic_cast<GLtk::ListDataStore<string> &>(drp_qualifier->get_data());
+ const char *qualifiers[] = { "(none)", "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);
+ }
+
+ if(zone.get_qualifier().empty())
+ drp_qualifier->set_selected_index(0);
+ }