summaryrefslogtreecommitdiff
path: root/src/wx/send_i18n_dialog.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-12-08 02:12:56 +0000
committerCarl Hetherington <cth@carlh.net>2018-12-08 02:12:56 +0000
commit5869a4b402e16ea735fb6902fe7604ec4d0ec0d4 (patch)
tree5eb6c29217fffd840a68fb3eb9f7e922f04fd8ae /src/wx/send_i18n_dialog.h
parentd12f444eadb2aafbc61b8b62006d9aa85fc40ba7 (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.h45
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;
+};