Merge branch 'master' of /home/carl/git/dvdomatic
[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 DVD-o-matic configuration.
22  */
23
24 #include <wx/wx.h>
25 #include <wx/spinctrl.h>
26 #include <wx/listctrl.h>
27
28 class Screen;
29 class ServerDescription;
30
31 /** @class ConfigDialog
32  *  @brief A dialogue to edit DVD-o-matic configuration.
33  */
34 class ConfigDialog : public wxDialog
35 {
36 public:
37         ConfigDialog (wxWindow *);
38
39 private:
40         void tms_ip_changed (wxCommandEvent &);
41         void tms_path_changed (wxCommandEvent &);
42         void tms_user_changed (wxCommandEvent &);
43         void tms_password_changed (wxCommandEvent &);
44         void num_local_encoding_threads_changed (wxCommandEvent &);
45         void colour_lut_changed (wxCommandEvent &);
46         void j2k_bandwidth_changed (wxCommandEvent &);
47         void reference_scaler_changed (wxCommandEvent &);
48         void edit_reference_filters_clicked (wxCommandEvent &);
49         void reference_filters_changed (std::vector<Filter const *>);
50         void add_server_clicked (wxCommandEvent &);
51         void edit_server_clicked (wxCommandEvent &);
52         void remove_server_clicked (wxCommandEvent &);
53         void server_selection_changed (wxListEvent &);
54
55         void add_server_to_control (ServerDescription *);
56         
57         wxTextCtrl* _tms_ip;
58         wxTextCtrl* _tms_path;
59         wxTextCtrl* _tms_user;
60         wxTextCtrl* _tms_password;
61         wxSpinCtrl* _num_local_encoding_threads;
62         wxComboBox* _colour_lut;
63         wxSpinCtrl* _j2k_bandwidth;
64         wxComboBox* _reference_scaler;
65         wxStaticText* _reference_filters;
66         wxButton* _reference_filters_button;
67         wxListCtrl* _servers;
68         wxButton* _add_server;
69         wxButton* _edit_server;
70         wxButton* _remove_server;
71 };
72