X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Flanguage_tag_dialog.h;fp=src%2Fwx%2Flanguage_tag_dialog.h;h=ae6ea4ef7a1ca2e69f3e6992320db8168af5007f;hp=0000000000000000000000000000000000000000;hb=d461d2685050842cb86875f5a5aa62505779b9ed;hpb=aed5d7b60b78ed6485f617dde4db9edca853d525 diff --git a/src/wx/language_tag_dialog.h b/src/wx/language_tag_dialog.h new file mode 100644 index 000000000..ae6ea4ef7 --- /dev/null +++ b/src/wx/language_tag_dialog.h @@ -0,0 +1,50 @@ +/* + Copyright (C) 2021 Carl Hetherington + + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + DCP-o-matic is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with DCP-o-matic. If not, see . + +*/ + + +#ifndef DCPOMATIC_LANGUAGE_TAG_DIALOG_H +#define DCPOMATIC_LANGUAGE_TAG_DIALOG_H + + +#include +#include + + +class wxListCtrl; + + +class LanguageTagDialog : public wxDialog +{ +public: + LanguageTagDialog (wxWindow* parent, dcp::LanguageTag tag = dcp::LanguageTag("en")); + + dcp::LanguageTag get () const; + void set (dcp::LanguageTag tag); + +private: + void add_language (); + void populate_list (); + + std::vector _presets; + std::vector _custom; + wxListCtrl* _list; +}; + +#endif