- vector<EditableListColumn> columns;
- columns.push_back (EditableListColumn(_("Agency"), 200, true));
- columns.push_back (EditableListColumn(_("Label"), 50, true));
- _ratings = new EditableList<dcp::Rating, RatingDialog> (
- panel,
- columns,
- boost::bind(&InteropMetadataDialog::ratings, this),
- boost::bind(&InteropMetadataDialog::set_ratings, this, _1),
- [](dcp::Rating r, int c) {
- if (c == 0) {
- return r.agency;
- }
- return r.label;
- },
- true,
- EditableListButton::NEW | EditableListButton::EDIT | EditableListButton::REMOVE
- );