summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-06-26 19:15:56 +0100
committerCarl Hetherington <cth@carlh.net>2014-06-26 19:15:56 +0100
commit075f418cc6d9be06bed7a1d98257ae8d17ef3019 (patch)
treea5a6924da614ea0c65657802fffd291e67487532 /src/wx
parentd1125d09c7741d05b57b1520531a0451663ad66c (diff)
Support different KDM formulations.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/kdm_dialog.cc23
-rw-r--r--src/wx/kdm_dialog.h2
2 files changed, 25 insertions, 0 deletions
diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc
index 6750e0e98..8df94de9c 100644
--- a/src/wx/kdm_dialog.cc
+++ b/src/wx/kdm_dialog.cc
@@ -159,6 +159,14 @@ KDMDialog::KDMDialog (wxWindow* parent, boost::shared_ptr<const Film> film)
table = new wxFlexGridSizer (2, DCPOMATIC_SIZER_X_GAP, 0);
+ 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");
+ table->Add (_type, 1, wxEXPAND);
+ _type->SetSelection (0);
+
_write_to = new wxRadioButton (this, wxID_ANY, _("Write to"));
table->Add (_write_to, 1, wxEXPAND);
@@ -480,6 +488,21 @@ KDMDialog::write_to () const
return _write_to->GetValue ();
}
+libdcp::KDM::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);
+ }
+}
+
void
KDMDialog::update_cpl_choice ()
{
diff --git a/src/wx/kdm_dialog.h b/src/wx/kdm_dialog.h
index 6327b29e8..13e9196ea 100644
--- a/src/wx/kdm_dialog.h
+++ b/src/wx/kdm_dialog.h
@@ -48,6 +48,7 @@ public:
boost::filesystem::path cpl () const;
boost::filesystem::path directory () const;
bool write_to () const;
+ libdcp::KDM::Formulation formulation () const;
private:
void add_cinema (boost::shared_ptr<Cinema>);
@@ -83,6 +84,7 @@ private:
wxStaticText* _dcp_directory;
wxStaticText* _cpl_id;
wxStaticText* _cpl_annotation_text;
+ wxChoice* _type;
wxRadioButton* _write_to;
#ifdef DCPOMATIC_USE_OWN_DIR_PICKER
DirPickerCtrl* _folder;