X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Flanguage_tag_dialog.h;h=705359d6bed045c4fcb9a07c568db1cedb91bee5;hb=bac6ee64d3302977144208a82a8b11824cb328dc;hp=1199e2d537a1de956884e251089a4fa82cfa1382;hpb=f3e5bba0d86dcc43bdeb0d132c7cdf85b55941a9;p=dcpomatic.git diff --git a/src/wx/language_tag_dialog.h b/src/wx/language_tag_dialog.h index 1199e2d53..705359d6b 100644 --- a/src/wx/language_tag_dialog.h +++ b/src/wx/language_tag_dialog.h @@ -19,6 +19,10 @@ */ +#ifndef DCPOMATIC_LANGUAGE_TAG_DIALOG_H +#define DCPOMATIC_LANGUAGE_TAG_DIALOG_H + + #include "lib/warnings.h" #include DCPOMATIC_DISABLE_WARNINGS @@ -46,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 subtag); + void remove_from_current_tag (); void current_tag_selection_changed (); void chosen_subtag_changed (boost::optional selection); void setup_sensitivity (); @@ -67,6 +72,7 @@ private: wxButton* _add_region; wxButton* _add_variant; wxButton* _add_external; + wxButton* _remove; }; @@ -82,3 +88,5 @@ private: LanguageSubtagPanel* _panel; }; + +#endif