summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-20 23:43:34 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-24 16:59:24 +0100
commit816a7b7a9d9c3cae7565cec139bf28068853f94d (patch)
tree718644b178b68fd03e2b1ea18c7bec96da5de4e4 /src/wx
parente93b66f4236ec25dbd0603bbe74c904b53180e91 (diff)
Basic support for variable-Z 3D subtitles.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/closed_captions_dialog.cc2
-rw-r--r--src/wx/dcp_panel.cc2
-rw-r--r--src/wx/language_tag_dialog.cc2
-rw-r--r--src/wx/language_tag_widget.cc2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/closed_captions_dialog.cc b/src/wx/closed_captions_dialog.cc
index c8a04993c..b8618c0cd 100644
--- a/src/wx/closed_captions_dialog.cc
+++ b/src/wx/closed_captions_dialog.cc
@@ -254,7 +254,7 @@ ClosedCaptionsDialog::update_tracks (shared_ptr<const Film> film)
_track->Clear ();
for (auto const& i: _tracks) {
- _track->Append (std_to_wx(String::compose("%1 (%2)", i.name, i.language ? i.language->to_string() : wx_to_std(_("Unknown")))));
+ _track->Append(std_to_wx(String::compose("%1 (%2)", i.name, i.language ? i.language->as_string() : wx_to_std(_("Unknown")))));
}
if (_track->GetCount() > 0) {
diff --git a/src/wx/dcp_panel.cc b/src/wx/dcp_panel.cc
index 0f0edc971..aeddb2a8d 100644
--- a/src/wx/dcp_panel.cc
+++ b/src/wx/dcp_panel.cc
@@ -484,7 +484,7 @@ DCPPanel::film_changed(FilmProperty p)
{
auto al = _film->audio_language();
checked_set (_enable_audio_language, static_cast<bool>(al));
- checked_set (_audio_language, al ? std_to_wx(al->to_string()) : wxString{});
+ checked_set(_audio_language, al ? std_to_wx(al->as_string()) : wxString{});
setup_dcp_name ();
setup_sensitivity ();
_audio_panel_sizer->Layout();
diff --git a/src/wx/language_tag_dialog.cc b/src/wx/language_tag_dialog.cc
index c898d3edb..f5a239c6c 100644
--- a/src/wx/language_tag_dialog.cc
+++ b/src/wx/language_tag_dialog.cc
@@ -96,7 +96,7 @@ LanguageTagDialog::populate_list ()
it.SetText (std_to_wx(i.description()));
_list->InsertItem (it);
it.SetColumn (1);
- it.SetText (std_to_wx(i.to_string()));
+ it.SetText(std_to_wx(i.as_string()));
_list->SetItem (it);
}
};
diff --git a/src/wx/language_tag_widget.cc b/src/wx/language_tag_widget.cc
index cefa4b90c..ff2883bc2 100644
--- a/src/wx/language_tag_widget.cc
+++ b/src/wx/language_tag_widget.cc
@@ -78,7 +78,7 @@ LanguageTagWidget::set (optional<dcp::LanguageTag> tag)
{
_tag = tag;
if (tag) {
- checked_set (_language, std_to_wx(tag->to_string()));
+ checked_set(_language, std_to_wx(tag->as_string()));
} else {
checked_set(_language, wxString{});
}