2 Copyright (C) 2012-2014 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 #include <boost/shared_ptr.hpp>
21 #include <boost/noncopyable.hpp>
36 class DCPPanel : public boost::noncopyable
39 DCPPanel (wxNotebook *, boost::shared_ptr<Film>);
41 void set_film (boost::shared_ptr<Film>);
42 void set_general_sensitivity (bool);
44 void film_changed (int);
45 void film_content_changed (int);
47 wxPanel* panel () const {
53 void use_isdcf_name_toggled ();
54 void edit_isdcf_button_clicked ();
55 void copy_isdcf_name_button_clicked ();
56 void container_changed ();
57 void dcp_content_type_changed ();
58 void scaler_changed ();
59 void j2k_bandwidth_changed ();
60 void frame_rate_choice_changed ();
61 void frame_rate_spin_changed ();
62 void best_frame_rate_clicked ();
63 void content_timeline_clicked ();
64 void audio_channels_changed ();
65 void resolution_changed ();
66 void three_d_changed ();
67 void standard_changed ();
68 void signed_toggled ();
69 void burn_subtitles_toggled ();
70 void encrypted_toggled ();
72 void setup_frame_rate_widget ();
73 void setup_container ();
74 void setup_dcp_name ();
76 wxPanel* make_general_panel ();
77 wxPanel* make_video_panel ();
78 wxPanel* make_audio_panel ();
80 void config_changed ();
83 wxNotebook* _notebook;
87 wxStaticText* _dcp_name;
88 wxCheckBox* _use_isdcf_name;
90 wxButton* _edit_isdcf_button;
91 wxButton* _copy_isdcf_name_button;
93 wxSpinCtrl* _j2k_bandwidth;
94 wxChoice* _dcp_content_type;
95 wxChoice* _frame_rate_choice;
96 wxSpinCtrl* _frame_rate_spin;
97 wxSizer* _frame_rate_sizer;
98 wxChoice* _audio_channels;
99 wxButton* _best_frame_rate;
100 wxCheckBox* _three_d;
101 wxChoice* _resolution;
104 wxCheckBox* _burn_subtitles;
105 wxCheckBox* _encrypted;
107 boost::shared_ptr<Film> _film;
108 bool _generally_sensitive;