add_label_to_sizer (table, this, _("KDM type"), true);
_type = new wxChoice (this, wxID_ANY);
- _type->Append ("Modified Transitional 1");
- _type->Append ("DCI Any");
- _type->Append ("DCI Specific");
+ _type->Append ("Modified Transitional 1", ((void *) dcp::MODIFIED_TRANSITIONAL_1));
+ if (!film->interop ()) {
+ _type->Append ("DCI Any", ((void *) dcp::DCI_ANY));
+ _type->Append ("DCI Specific", ((void *) dcp::DCI_SPECIFIC));
+ }
table->Add (_type, 1, wxEXPAND);
_type->SetSelection (0);
return _write_to->GetValue ();
}
-libdcp::KDM::Formulation
+dcp::Formulation
KDMDialog::formulation () const
{
- switch (_type->GetSelection()) {
- case 0:
- return libdcp::KDM::MODIFIED_TRANSITIONAL_1;
- case 1:
- return libdcp::KDM::DCI_ANY;
- case 2:
- return libdcp::KDM::DCI_SPECIFIC;
- default:
- assert (false);
- }
+ return (dcp::Formulation) reinterpret_cast<intptr_t> (_type->GetClientData (_type->GetSelection()));
}
void