diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-23 16:42:28 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-23 16:42:28 +0100 |
| commit | 24dcab1d4d8d7a28a939c7c4d786197684f155f6 (patch) | |
| tree | cdd795a6caff66d17e35ed97fbb8b8d39f4fe9fc /src/wx/text_panel.cc | |
| parent | a5c629cb9b638b67a0e4c2d26fe9ab2e124bf0eb (diff) | |
Introduce the idea of unknown original subtitle type to clean up the GUI a bit.
Diffstat (limited to 'src/wx/text_panel.cc')
| -rw-r--r-- | src/wx/text_panel.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc index 81ea9c941..980dd36cb 100644 --- a/src/wx/text_panel.cc +++ b/src/wx/text_panel.cc @@ -42,8 +42,10 @@ using std::string; using std::list; using std::cout; using boost::shared_ptr; +using boost::optional; using boost::dynamic_pointer_cast; +/** @param t Original text type of the content, if known */ TextPanel::TextPanel (ContentPanel* p, TextType t) : ContentSubPanel (p, std_to_wx(text_type_to_name(t))) , _text_view (0) @@ -52,7 +54,12 @@ TextPanel::TextPanel (ContentPanel* p, TextType t) { wxBoxSizer* reference_sizer = new wxBoxSizer (wxVERTICAL); - _reference = new wxCheckBox (this, wxID_ANY, _("Use this DCP's subtitle as OV and make VF")); + wxString refer = _("Use this DCP's subtitle as OV and make VF"); + if (t == TEXT_CLOSED_CAPTION) { + refer = _("Use this DCP's closed caption as OV and make VF"); + } + + _reference = new wxCheckBox (this, wxID_ANY, refer); reference_sizer->Add (_reference, 0, wxLEFT | wxRIGHT | wxTOP, DCPOMATIC_SIZER_GAP); _reference_note = new wxStaticText (this, wxID_ANY, _("")); |
