2 Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
4 This file is part of DCP-o-matic.
6 DCP-o-matic is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 DCP-o-matic is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
22 #include "lib/config.h"
40 class InteropMetadataDialog;
41 class SMPTEMetadataDialog;
49 DCPPanel (wxNotebook *, std::shared_ptr<Film>, std::weak_ptr<FilmViewer> viewer);
51 DCPPanel (DCPPanel const&) = delete;
52 DCPPanel& operator= (DCPPanel const&) = delete;
54 void set_film (std::shared_ptr<Film>);
55 void set_general_sensitivity (bool);
57 void film_changed (Film::Property);
58 void film_content_changed (int);
60 wxPanel* panel () const {
66 void use_isdcf_name_toggled ();
67 void edit_isdcf_button_clicked ();
68 void copy_isdcf_name_button_clicked ();
69 void container_changed ();
70 void dcp_content_type_changed ();
71 void j2k_bandwidth_changed ();
72 void frame_rate_choice_changed ();
73 void frame_rate_spin_changed ();
74 void best_frame_rate_clicked ();
75 void content_timeline_clicked ();
76 void audio_channels_changed ();
77 void resolution_changed ();
78 void three_d_changed ();
79 void standard_changed ();
80 void encrypted_toggled ();
81 void audio_processor_changed ();
82 void show_audio_clicked ();
83 void reel_type_changed ();
84 void reel_length_changed ();
85 void markers_clicked ();
86 void metadata_clicked ();
87 void reencode_j2k_changed ();
89 void setup_frame_rate_widget ();
90 void setup_container ();
91 void setup_dcp_name ();
93 void add_video_panel_to_grid ();
94 void add_audio_panel_to_grid ();
95 void add_audio_processors ();
97 int minimum_allowed_audio_channels () const;
99 wxPanel* make_general_panel ();
100 wxPanel* make_video_panel ();
101 wxPanel* make_audio_panel ();
103 void config_changed (Config::Property p);
105 void setup_sensitivity ();
108 wxNotebook* _notebook;
110 wxGridBagSizer* _grid;
111 wxGridBagSizer* _video_grid;
112 wxGridBagSizer* _audio_grid;
114 wxStaticText* _name_label;
116 wxStaticText* _dcp_name;
117 wxCheckBox* _use_isdcf_name;
118 wxStaticText* _container_label;
119 wxChoice* _container;
120 wxStaticText* _container_size;
121 wxButton* _edit_isdcf_button;
122 wxButton* _copy_isdcf_name_button;
123 wxStaticText* _j2k_bandwidth_label;
124 wxStaticText* _mbits_label;
125 wxSpinCtrl* _j2k_bandwidth;
126 wxStaticText* _dcp_content_type_label;
127 wxChoice* _dcp_content_type;
128 wxStaticText* _frame_rate_label;
129 wxChoice* _frame_rate_choice;
130 wxSpinCtrl* _frame_rate_spin;
131 wxSizer* _frame_rate_sizer;
132 wxStaticText* _channels_label;
133 wxChoice* _audio_channels;
134 wxStaticText* _processor_label;
135 wxChoice* _audio_processor;
136 wxButton* _show_audio;
137 wxButton* _best_frame_rate;
138 wxCheckBox* _three_d;
139 wxCheckBox* _reencode_j2k;
140 wxStaticText* _resolution_label;
141 wxChoice* _resolution;
142 wxStaticText* _standard_label;
144 wxCheckBox* _encrypted;
145 wxStaticText* _reels_label;
146 wxChoice* _reel_type;
147 wxStaticText* _reel_length_label;
148 wxStaticText* _reel_length_gb_label;
149 wxSpinCtrl* _reel_length;
152 wxSizer* _audio_panel_sizer;
154 AudioDialog* _audio_dialog;
155 MarkersDialog* _markers_dialog;
156 InteropMetadataDialog* _interop_metadata_dialog;
157 SMPTEMetadataDialog* _smpte_metadata_dialog;
159 std::shared_ptr<Film> _film;
160 std::weak_ptr<FilmViewer> _viewer;
161 bool _generally_sensitive;