diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-12-08 02:12:56 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-12-08 02:12:56 +0000 |
| commit | 5869a4b402e16ea735fb6902fe7604ec4d0ec0d4 (patch) | |
| tree | 5eb6c29217fffd840a68fb3eb9f7e922f04fd8ae /src/wx/send_i18n_dialog.h | |
| parent | d12f444eadb2aafbc61b8b62006d9aa85fc40ba7 (diff) | |
Add sending of translations via email.v2.13.82
Diffstat (limited to 'src/wx/send_i18n_dialog.h')
| -rw-r--r-- | src/wx/send_i18n_dialog.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/wx/send_i18n_dialog.h b/src/wx/send_i18n_dialog.h new file mode 100644 index 000000000..f8d2b5354 --- /dev/null +++ b/src/wx/send_i18n_dialog.h @@ -0,0 +1,45 @@ +/* + Copyright (C) 2018 Carl Hetherington <cth@carlh.net> + + 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 <http://www.gnu.org/licenses/>. + +*/ + +#include "wx_util.h" +#include <wx/wx.h> + +class SendI18NDialog : public wxDialog +{ +public: + SendI18NDialog (wxWindow* parent); + + std::string name () { + return wx_to_std (_name->GetValue()); + } + + std::string email () { + return wx_to_std (_email->GetValue()); + } + + std::string language () { + return wx_to_std (_language->GetValue()); + } + +private: + wxTextCtrl* _name; + wxTextCtrl* _email; + wxTextCtrl* _language; +}; |
