diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-03-19 20:30:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-03-19 20:57:45 +0100 |
| commit | c7d1f6e7988888811fdac36c465919f170a06c7a (patch) | |
| tree | 66a502347cae49b0238c008c8c69241a2c1fc506 /src/wx/kdm_output_panel.cc | |
| parent | 525c81d62f96829888b8d10e121e7653926e55e1 (diff) | |
Make a small class to choose KDM types.
Diffstat (limited to 'src/wx/kdm_output_panel.cc')
| -rw-r--r-- | src/wx/kdm_output_panel.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/wx/kdm_output_panel.cc b/src/wx/kdm_output_panel.cc index e7bbe292d..ec2182c36 100644 --- a/src/wx/kdm_output_panel.cc +++ b/src/wx/kdm_output_panel.cc @@ -23,6 +23,7 @@ #include "confirm_kdm_email_dialog.h" #include "dcpomatic_button.h" #include "kdm_advanced_dialog.h" +#include "kdm_choice.h" #include "kdm_output_panel.h" #include "kdm_timing_panel.h" #include "name_format_editor.h" @@ -69,11 +70,7 @@ KDMOutputPanel::KDMOutputPanel (wxWindow* parent) add_label_to_sizer (table, this, _("KDM type"), true, 0, wxLEFT | wxRIGHT | wxALIGN_CENTRE_VERTICAL); auto type = new wxBoxSizer (wxHORIZONTAL); - _type = new wxChoice (this, wxID_ANY); - _type->Append ("Modified Transitional 1", ((void *) dcp::Formulation::MODIFIED_TRANSITIONAL_1)); - _type->Append ("DCI Any", ((void *) dcp::Formulation::DCI_ANY)); - _type->Append ("DCI Specific", ((void *) dcp::Formulation::DCI_SPECIFIC)); - _type->Append ("Multiple Modified Transitional 1", ((void *) dcp::Formulation::MULTIPLE_MODIFIED_TRANSITIONAL_1)); + _type = new KDMChoice (this); type->Add (_type, 1, wxTOP, DCPOMATIC_CHOICE_TOP_PAD); _type->SetSelection (0); auto advanced = new Button (this, _("Advanced...")); @@ -329,7 +326,7 @@ KDMOutputPanel::make ( dcp::Formulation KDMOutputPanel::formulation () const { - return (dcp::Formulation) reinterpret_cast<intptr_t> (_type->GetClientData (_type->GetSelection())); + return _type->get(); } |
