2 Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
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.
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.
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.
20 /** @file src/config_dialog.h
21 * @brief A dialogue to edit DCP-o-matic configuration.
25 #include <wx/spinctrl.h>
26 #include <wx/listctrl.h>
27 #include <wx/filepicker.h>
33 class ServerDescription;
35 /** @class ConfigDialog
36 * @brief A dialogue to edit DCP-o-matic configuration.
38 class ConfigDialog : public wxDialog
41 ConfigDialog (wxWindow *);
44 void set_language_changed (wxCommandEvent &);
45 void language_changed (wxCommandEvent &);
46 void tms_ip_changed (wxCommandEvent &);
47 void tms_path_changed (wxCommandEvent &);
48 void tms_user_changed (wxCommandEvent &);
49 void tms_password_changed (wxCommandEvent &);
50 void num_local_encoding_threads_changed (wxCommandEvent &);
51 void default_still_length_changed (wxCommandEvent &);
52 void default_directory_changed (wxCommandEvent &);
53 void edit_default_dci_metadata_clicked (wxCommandEvent &);
54 void add_server_clicked (wxCommandEvent &);
55 void edit_server_clicked (wxCommandEvent &);
56 void remove_server_clicked (wxCommandEvent &);
57 void server_selection_changed (wxListEvent &);
58 void default_container_changed (wxCommandEvent &);
59 void default_dcp_content_type_changed (wxCommandEvent &);
60 void issuer_changed (wxCommandEvent &);
61 void creator_changed (wxCommandEvent &);
63 void add_server_to_control (ServerDescription *);
64 void setup_language_sensitivity ();
66 void make_misc_panel ();
67 void make_tms_panel ();
68 void make_metadata_panel ();
69 void make_servers_panel ();
71 wxNotebook* _notebook;
74 wxPanel* _servers_panel;
75 wxPanel* _metadata_panel;
76 wxCheckBox* _set_language;
78 wxChoice* _default_container;
79 wxChoice* _default_dcp_content_type;
81 wxTextCtrl* _tms_path;
82 wxTextCtrl* _tms_user;
83 wxTextCtrl* _tms_password;
84 wxSpinCtrl* _num_local_encoding_threads;
85 wxSpinCtrl* _default_still_length;
86 #ifdef DCPOMATIC_USE_OWN_DIR_PICKER
87 DirPickerCtrl* _default_directory;
89 wxDirPickerCtrl* _default_directory;
91 wxButton* _default_dci_metadata_button;
93 wxButton* _add_server;
94 wxButton* _edit_server;
95 wxButton* _remove_server;