*/
-#include "editable_list.h"
#include "interop_metadata_dialog.h"
#include "language_tag_widget.h"
#include "rating_dialog.h"
#include "lib/film.h"
#include <dcp/types.h>
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
#include <wx/gbsizer.h>
+LIBDCP_ENABLE_WARNINGS
+using std::shared_ptr;
using std::string;
using std::vector;
using std::weak_ptr;
-using std::shared_ptr;
#if BOOST_VERSION >= 106100
using namespace boost::placeholders;
#endif
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,
- false
- );
sizer->Add (_ratings, 1, wxEXPAND);
add_label_to_sizer (sizer, panel, _("Content version"), true, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL);
}
-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 ()
{