X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftext_panel.cc;h=7bbead30ccb91926004e34e4cf49a1c557ae55b3;hb=8fb0919c3c0f11f076eeda2a7d356f6284284ec6;hp=ebeb518ddb2e1f2d15e2e9483aad74fcab2aae39;hpb=65bd479a3008fb269925e1ce92e547c863ede73d;p=dcpomatic.git diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc index ebeb518dd..7bbead30c 100644 --- a/src/wx/text_panel.cc +++ b/src/wx/text_panel.cc @@ -61,9 +61,16 @@ using boost::bind; TextPanel::TextPanel (ContentPanel* p, TextType t) : ContentSubPanel (p, std_to_wx(text_type_to_name(t))) , _original_type (t) +{ + +} + + +void +TextPanel::create () { wxString refer = _("Use this DCP's subtitle as OV and make VF"); - if (t == TextType::CLOSED_CAPTION) { + if (_original_type == TextType::CLOSED_CAPTION) { refer = _("Use this DCP's closed caption as OV and make VF"); } @@ -131,6 +138,8 @@ TextPanel::TextPanel (ContentPanel* p, TextType t) add_to_grid(); content_selection_changed (); + + _sizer->Layout (); } @@ -165,7 +174,7 @@ TextPanel::setup_visibility () _language_type->Append (_("Main")); _language_type->Append (_("Additional")); _language_type->Bind (wxEVT_CHOICE, boost::bind(&TextPanel::language_is_additional_changed, this)); - _language_sizer->Add (_language_type, 0); + _language_sizer->Add (_language_type, 0, wxALIGN_CENTER_VERTICAL | wxTOP, DCPOMATIC_CHOICE_TOP_PAD); _grid->Add (_language_sizer, wxGBPosition(_ccap_track_or_language_row, 1), wxGBSpan(1, 2)); film_content_changed (TextContentProperty::LANGUAGE); film_content_changed (TextContentProperty::LANGUAGE_IS_ADDITIONAL);