summaryrefslogtreecommitdiff
path: root/src/wx/email_preferences_page.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-01 23:17:09 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-01 23:17:13 +0100
commit3cad01eefa07e14d64ccf8972a35674dc5b23c4a (patch)
treebdfb488b7645f1674b6e3b7c90127835472b191d /src/wx/email_preferences_page.h
parenta1cc8eb29a1e85071bfdb5c7ee3180149be09a69 (diff)
Move Email preferences page to its own file.
Diffstat (limited to 'src/wx/email_preferences_page.h')
-rw-r--r--src/wx/email_preferences_page.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/wx/email_preferences_page.h b/src/wx/email_preferences_page.h
new file mode 100644
index 000000000..8abbcef33
--- /dev/null
+++ b/src/wx/email_preferences_page.h
@@ -0,0 +1,61 @@
+/*
+ Copyright (C) 2025 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 "config_dialog.h"
+
+
+namespace dcpomatic {
+namespace preferences {
+
+
+class EmailPage : public Page
+{
+public:
+ EmailPage(wxSize panel_size, int border);
+
+ wxString GetName() const override;
+
+#ifdef DCPOMATIC_OSX
+ wxBitmap GetLargeIcon() const override;
+#endif
+
+private:
+ void setup() override;
+ void config_changed() override;
+ void server_changed();
+ void port_changed();
+ void protocol_changed();
+ void user_changed();
+ void password_changed();
+ void send_test_email_clicked();
+
+ wxTextCtrl* _server;
+ wxSpinCtrl* _port;
+ wxChoice* _protocol;
+ wxTextCtrl* _user;
+ PasswordEntry* _password;
+ Button* _send_test_email;
+};
+
+
+}
+}
+