Various bits mostly related to colour conversions.
[dcpomatic.git] / src / wx / config_dialog.h
1 /*
2     Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
3
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13
14     You should have received a copy of the GNU General Public License
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 */
19
20 /** @file src/config_dialog.h
21  *  @brief A dialogue to edit DCP-o-matic configuration.
22  */
23
24 #include <wx/wx.h>
25 #include <wx/spinctrl.h>
26 #include <wx/listctrl.h>
27 #include <wx/filepicker.h>
28 #include "wx_util.h"
29 #include "editable_list.h"
30
31 class DirPickerCtrl;
32 class wxNotebook;
33 class ServerDescription;
34 class PresetColourConversion;
35 class PresetColourConversionDialog;
36 class ServerDialog;
37
38 /** @class ConfigDialog
39  *  @brief A dialogue to edit DCP-o-matic configuration.
40  */
41 class ConfigDialog : public wxDialog
42 {
43 public:
44         ConfigDialog (wxWindow *);
45
46 private:
47         void set_language_changed ();
48         void language_changed ();
49         void tms_ip_changed ();
50         void tms_path_changed ();
51         void tms_user_changed ();
52         void tms_password_changed ();
53         void num_local_encoding_threads_changed ();
54         void default_still_length_changed ();
55         void default_directory_changed ();
56         void edit_default_dci_metadata_clicked ();
57         void default_container_changed ();
58         void default_dcp_content_type_changed ();
59         void issuer_changed ();
60         void creator_changed ();
61         void default_j2k_bandwidth_changed ();
62
63         void setup_language_sensitivity ();
64
65         void make_misc_panel ();
66         void make_tms_panel ();
67         void make_metadata_panel ();
68         void make_servers_panel ();
69         void make_colour_conversions_panel ();
70
71         wxNotebook* _notebook;
72         wxPanel* _misc_panel;
73         wxPanel* _tms_panel;
74         EditableList<PresetColourConversion, PresetColourConversionDialog>* _colour_conversions_panel;
75         EditableList<ServerDescription, ServerDialog>* _servers_panel;
76         wxPanel* _metadata_panel;
77         wxCheckBox* _set_language;
78         wxChoice* _language;
79         wxChoice* _default_container;
80         wxChoice* _default_dcp_content_type;
81         wxTextCtrl* _tms_ip;
82         wxTextCtrl* _tms_path;
83         wxTextCtrl* _tms_user;
84         wxTextCtrl* _tms_password;
85         wxSpinCtrl* _num_local_encoding_threads;
86         wxSpinCtrl* _default_still_length;
87 #ifdef DCPOMATIC_USE_OWN_DIR_PICKER
88         DirPickerCtrl* _default_directory;
89 #else
90         wxDirPickerCtrl* _default_directory;
91 #endif
92         wxButton* _default_dci_metadata_button;
93         wxTextCtrl* _issuer;
94         wxTextCtrl* _creator;
95         wxSpinCtrl* _default_j2k_bandwidth;
96 };
97