summaryrefslogtreecommitdiff
path: root/src/wx/smpte_metadata_dialog.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-18 01:06:49 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-20 22:57:59 +0100
commite519feaca11005d330e7b8403b948d4ad9cc3ae8 (patch)
tree5c43aba1dd590d1abad189ac7f39b5d4ecbb1f5e /src/wx/smpte_metadata_dialog.h
parent556dd9cc254bf3ef18c41fcfe5948484c91cc440 (diff)
Store subtitle language(s) in Film, and allow setup of those
languages from the Interop/SMPTE metadata dialogues.
Diffstat (limited to 'src/wx/smpte_metadata_dialog.h')
-rw-r--r--src/wx/smpte_metadata_dialog.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wx/smpte_metadata_dialog.h b/src/wx/smpte_metadata_dialog.h
index e47ffe288..36039c501 100644
--- a/src/wx/smpte_metadata_dialog.h
+++ b/src/wx/smpte_metadata_dialog.h
@@ -19,7 +19,9 @@
*/
#include "editable_list.h"
+#include "language_tag_dialog.h"
#include "lib/film.h"
+#include <dcp/language_tag.h>
#include <dcp/types.h>
#include <wx/wx.h>
#include <boost/shared_ptr.hpp>
@@ -45,6 +47,10 @@ private:
void set_content_versions (std::vector<std::string> v);
void name_language_changed (dcp::LanguageTag tag);
void audio_language_changed (dcp::LanguageTag tag);
+ void enable_main_subtitle_changed ();
+ void main_subtitle_language_changed (dcp::LanguageTag tag);
+ std::vector<dcp::LanguageTag> additional_subtitle_languages ();
+ void set_additional_subtitle_languages (std::vector<dcp::LanguageTag> languages);
void edit_release_territory ();
void version_number_changed ();
void status_changed ();
@@ -53,11 +59,15 @@ private:
void facility_changed ();
void luminance_changed ();
void film_changed (ChangeType type, Film::Property property);
+ void setup_sensitivity ();
boost::shared_ptr<Film> film () const;
boost::weak_ptr<Film> _film;
LanguageTagWidget* _name_language;
LanguageTagWidget* _audio_language;
+ wxCheckBox* _enable_main_subtitle_language;
+ LanguageTagWidget* _main_subtitle_language;
+ EditableList<dcp::LanguageTag, LanguageTagDialog>* _additional_subtitle_languages;
wxStaticText* _release_territory;
wxSpinCtrl* _version_number;
wxChoice* _status;