Store subtitle language(s) in Film, and allow setup of those
[dcpomatic.git] / src / wx / language_tag_dialog.h
index 3fc5251b8990107ce3d1aacf8542b901088b8115..705359d6bed045c4fcb9a07c568db1cedb91bee5 100644 (file)
 */
 
 
+#ifndef DCPOMATIC_LANGUAGE_TAG_DIALOG_H
+#define DCPOMATIC_LANGUAGE_TAG_DIALOG_H
+
+
+#include "lib/warnings.h"
 #include <dcp/language_tag.h>
+DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
+DCPOMATIC_ENABLE_WARNINGS
 
 
 class wxListCtrl;
@@ -43,16 +50,17 @@ public:
                std::string last_search;
        };
 
-       LanguageTagDialog (wxWindow* parent, dcp::LanguageTag tag);
+       LanguageTagDialog (wxWindow* parent, dcp::LanguageTag tag = dcp::LanguageTag("en"));
 
        dcp::LanguageTag get () const;
-
+       void set (dcp::LanguageTag tag);
 
 private:
 
        std::string subtag_type_name (dcp::LanguageTag::SubtagType type);
        void search_changed (std::string search);
        void add_to_current_tag (dcp::LanguageTag::SubtagType type, boost::optional<dcp::LanguageTag::SubtagData> subtag);
+       void remove_from_current_tag ();
        void current_tag_selection_changed ();
        void chosen_subtag_changed (boost::optional<dcp::LanguageTag::SubtagData> selection);
        void setup_sensitivity ();
@@ -64,6 +72,7 @@ private:
        wxButton* _add_region;
        wxButton* _add_variant;
        wxButton* _add_external;
+       wxButton* _remove;
 };
 
 
@@ -79,3 +88,5 @@ private:
        LanguageSubtagPanel* _panel;
 };
 
+
+#endif