summaryrefslogtreecommitdiff
path: root/src/wx/general_preferences_page.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-02 12:27:14 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-02 19:22:59 +0100
commita073de1b022b362347d46b7895dc946d6506cf95 (patch)
tree8e8cfb6e0dccbf12cd76a2da6b7a2f742ff87e6d /src/wx/general_preferences_page.h
parent68a61d00f3754f6fc473f6ac86fb3abfe670d190 (diff)
Move General preferences tab parent to its own file.
Diffstat (limited to 'src/wx/general_preferences_page.h')
-rw-r--r--src/wx/general_preferences_page.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/wx/general_preferences_page.h b/src/wx/general_preferences_page.h
new file mode 100644
index 000000000..fda849862
--- /dev/null
+++ b/src/wx/general_preferences_page.h
@@ -0,0 +1,67 @@
+/*
+ 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 GeneralPage : public Page
+{
+public:
+ GeneralPage(wxSize panel_size, int border);
+
+ wxString GetName() const override;
+
+#ifdef DCPOMATIC_OSX
+ wxBitmap GetLargeIcon() const override;
+#endif
+
+protected:
+ void add_language_controls(wxGridBagSizer* table, int& r);
+ void add_config_file_controls(wxGridBagSizer* table, int& r);
+ void add_update_controls(wxGridBagSizer* table, int& r);
+ void config_changed() override;
+
+private:
+ void setup_sensitivity();
+ void set_language_changed();
+ void language_changed();
+ void config_file_changed();
+ void cinemas_file_changed();
+ void export_cinemas_file();
+ void check_for_updates_changed();
+ void check_for_test_updates_changed();
+
+ CheckBox* _set_language;
+ wxChoice* _language;
+ FilePickerCtrl* _config_file;
+ FilePickerCtrl* _cinemas_file;
+ CheckBox* _check_for_updates;
+ CheckBox* _check_for_test_updates;
+};
+
+
+}
+}
+