From 2cdf3d9f461b12d0925cc54368105bbd177bbbb3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 31 Aug 2019 02:03:01 +0100 Subject: Primitive subtitle export feature. --- src/wx/export_dialog.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/wx/export_dialog.cc') diff --git a/src/wx/export_dialog.cc b/src/wx/export_dialog.cc index 804200596..b23583d44 100644 --- a/src/wx/export_dialog.cc +++ b/src/wx/export_dialog.cc @@ -28,26 +28,30 @@ using std::string; using boost::bind; -#define FORMATS 2 +#define FORMATS 3 wxString format_names[] = { _("ProRes"), - _("MP4 / H.264") + _("MP4 / H.264"), + _("DCP subtitles") }; wxString format_filters[] = { _("MOV files (*.mov)|*.mov"), _("MP4 files (*.mp4)|*.mp4"), + _("Subtitle files (*.xml)|*.xml"), }; wxString format_extensions[] = { "mov", - "mp4" + "mp4", + "xml", }; ExportFormat formats[] = { EXPORT_FORMAT_PRORES, - EXPORT_FORMAT_H264_AAC + EXPORT_FORMAT_H264_AAC, + EXPORT_FORMAT_SUBTITLES_DCP }; ExportDialog::ExportDialog (wxWindow* parent, string name) @@ -106,6 +110,7 @@ ExportDialog::format_changed () for (int i = 0; i < 2; ++i) { _x264_crf_label[i]->Enable (_format->GetSelection() == 1); } + _mixdown->Enable (_format->GetSelection() != 2); } boost::filesystem::path -- cgit v1.2.3