diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-03-23 00:50:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-03-31 22:48:53 +0200 |
| commit | e0a70cd5cfb11fc2de167f3146acdd437a6faa82 (patch) | |
| tree | 022ceef78d7daa12bccf519ebab0db5e23a3feb6 /src/wx/text_panel.h | |
| parent | 8640da877450479a85c73b2a921897d83b478c84 (diff) | |
Put subtitle language back into content from the film (#1930).
This also adds the main/additional language flag.
Of all the considerations about how to specify subtitle language,
the most important seems to be that the language specification happens
for the content where the language is; i.e. in the content text tab.
Diffstat (limited to 'src/wx/text_panel.h')
| -rw-r--r-- | src/wx/text_panel.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/wx/text_panel.h b/src/wx/text_panel.h index 7f38ff42b..7337e5258 100644 --- a/src/wx/text_panel.h +++ b/src/wx/text_panel.h @@ -23,6 +23,8 @@ class wxCheckBox; +class wxSpinCtrl; +class LanguageTagWidget; class TextView; class FontsDialog; class SpinCtrl; @@ -60,6 +62,8 @@ private: void add_to_grid (); void try_to_load_analysis (); void analysis_finished (); + void language_changed (); + void language_is_additional_changed (); void setup_sensitivity (); void setup_visibility (); @@ -100,9 +104,13 @@ private: FontsDialog* _fonts_dialog; wxButton* _appearance_dialog_button; TextType _original_type; + wxStaticText* _language_label = nullptr; + LanguageTagWidget* _language = nullptr; + wxSizer* _language_sizer = nullptr; + wxChoice* _language_type = nullptr; int _outline_subtitles_row; - int _ccap_track_row; + int _ccap_track_or_language_row; std::weak_ptr<Content> _analysis_content; boost::signals2::scoped_connection _analysis_finished_connection; |
