*/
+#ifndef DCPOMATIC_LANGUAGE_TAG_DIALOG_H
+#define DCPOMATIC_LANGUAGE_TAG_DIALOG_H
+
+
#include "lib/warnings.h"
#include <dcp/language_tag.h>
DCPOMATIC_DISABLE_WARNINGS
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 ();
wxButton* _add_region;
wxButton* _add_variant;
wxButton* _add_external;
+ wxButton* _remove;
};
LanguageSubtagPanel* _panel;
};
+
+#endif