diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-08-28 22:48:28 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-08-28 22:56:42 +0200 |
| commit | 0bbbe85d4a206900b19bc7849a45f63cd8858e89 (patch) | |
| tree | fb56856cf5104a2887b719af23fdc1979fe32006 /src/wx/interop_metadata_dialog.cc | |
| parent | 5c86ef0c95903d64cefe93940534c3672cdce68d (diff) | |
Use the same code for both Interop and SMPTE ratings controls.
Diffstat (limited to 'src/wx/interop_metadata_dialog.cc')
| -rw-r--r-- | src/wx/interop_metadata_dialog.cc | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/wx/interop_metadata_dialog.cc b/src/wx/interop_metadata_dialog.cc index c0be1be28..0258f9ca5 100644 --- a/src/wx/interop_metadata_dialog.cc +++ b/src/wx/interop_metadata_dialog.cc @@ -19,7 +19,6 @@ */ -#include "editable_list.h" #include "interop_metadata_dialog.h" #include "language_tag_widget.h" #include "rating_dialog.h" @@ -60,23 +59,6 @@ InteropMetadataDialog::setup_standard (wxPanel* panel, wxSizer* sizer) sizer->Add (m, 0, flags, DCPOMATIC_SIZER_GAP); } - 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 - ); sizer->Add (_ratings, 1, wxEXPAND); add_label_to_sizer (sizer, panel, _("Content version"), true, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL); @@ -91,20 +73,6 @@ InteropMetadataDialog::setup_standard (wxPanel* panel, wxSizer* sizer) } -vector<dcp::Rating> -InteropMetadataDialog::ratings () const -{ - return film()->ratings (); -} - - -void -InteropMetadataDialog::set_ratings (vector<dcp::Rating> r) -{ - film()->set_ratings (r); -} - - void InteropMetadataDialog::content_version_changed () { |
