summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-06-08 02:11:18 +0200
committerCarl Hetherington <cth@carlh.net>2020-06-08 17:09:15 +0200
commit8755ef75cb001cf7fba230ffa98fb40eb2547849 (patch)
treea6884e631d07c0d01e57dab6b9612f584b202426 /src/wx
parentce9ca273648d879a4aee700593b757147336d884 (diff)
Always sign DCPs (#1760).
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/dcp_panel.cc26
-rw-r--r--src/wx/dcp_panel.h2
2 files changed, 0 insertions, 28 deletions
diff --git a/src/wx/dcp_panel.cc b/src/wx/dcp_panel.cc
index c3cfc91d4..d8ddd1bca 100644
--- a/src/wx/dcp_panel.cc
+++ b/src/wx/dcp_panel.cc
@@ -97,7 +97,6 @@ DCPPanel::DCPPanel (wxNotebook* n, shared_ptr<Film> film, weak_ptr<FilmViewer> v
_dcp_content_type_label = create_label (_panel, _("Content Type"), true);
_dcp_content_type = new wxChoice (_panel, wxID_ANY);
- _signed = new CheckBox (_panel, _("Signed"));
_encrypted = new CheckBox (_panel, _("Encrypted"));
wxClientDC dc (_panel);
@@ -134,7 +133,6 @@ DCPPanel::DCPPanel (wxNotebook* n, shared_ptr<Film> film, weak_ptr<FilmViewer> v
_edit_isdcf_button->Bind (wxEVT_BUTTON, boost::bind (&DCPPanel::edit_isdcf_button_clicked, this));
_copy_isdcf_name_button->Bind(wxEVT_BUTTON, boost::bind (&DCPPanel::copy_isdcf_name_button_clicked, this));
_dcp_content_type->Bind (wxEVT_CHOICE, boost::bind (&DCPPanel::dcp_content_type_changed, this));
- _signed->Bind (wxEVT_CHECKBOX, boost::bind (&DCPPanel::signed_toggled, this));
_encrypted->Bind (wxEVT_CHECKBOX, boost::bind (&DCPPanel::encrypted_toggled, this));
_edit_key->Bind (wxEVT_BUTTON, boost::bind (&DCPPanel::edit_key_clicked, this));
_reel_type->Bind (wxEVT_CHOICE, boost::bind (&DCPPanel::reel_type_changed, this));
@@ -203,12 +201,6 @@ DCPPanel::add_to_grid ()
_grid->Add (_dcp_content_type, wxGBPosition (r, 1));
++r;
- _signed->Show (full);
- if (full) {
- _grid->Add (_signed, wxGBPosition (r, 0), wxGBSpan (1, 2));
- ++r;
- }
-
_grid->Add (_encrypted, wxGBPosition (r, 0), wxGBSpan (1, 2));
++r;
@@ -298,16 +290,6 @@ DCPPanel::j2k_bandwidth_changed ()
}
void
-DCPPanel::signed_toggled ()
-{
- if (!_film) {
- return;
- }
-
- _film->set_signed (_signed->GetValue ());
-}
-
-void
DCPPanel::encrypted_toggled ()
{
if (!_film) {
@@ -425,18 +407,12 @@ DCPPanel::film_changed (int p)
checked_set (_dcp_content_type, DCPContentType::as_index (_film->dcp_content_type ()));
setup_dcp_name ();
break;
- case Film::SIGNED:
- checked_set (_signed, _film->is_signed ());
- break;
case Film::ENCRYPTED:
checked_set (_encrypted, _film->encrypted ());
if (_film->encrypted ()) {
- _film->set_signed (true);
- _signed->Enable (false);
_key->Enable (_generally_sensitive);
_edit_key->Enable (_generally_sensitive);
} else {
- _signed->Enable (_generally_sensitive);
_key->Enable (false);
_edit_key->Enable (false);
}
@@ -641,7 +617,6 @@ DCPPanel::set_film (shared_ptr<Film> film)
film_changed (Film::DCP_CONTENT_TYPE);
film_changed (Film::CONTAINER);
film_changed (Film::RESOLUTION);
- film_changed (Film::SIGNED);
film_changed (Film::ENCRYPTED);
film_changed (Film::KEY);
film_changed (Film::J2K_BANDWIDTH);
@@ -680,7 +655,6 @@ DCPPanel::setup_sensitivity ()
if (_film && _film->encrypted ()) {
si = false;
}
- _signed->Enable (si);
_encrypted->Enable (_generally_sensitive);
_key->Enable (_generally_sensitive && _film && _film->encrypted ());
diff --git a/src/wx/dcp_panel.h b/src/wx/dcp_panel.h
index 887ae7c77..69fc65532 100644
--- a/src/wx/dcp_panel.h
+++ b/src/wx/dcp_panel.h
@@ -72,7 +72,6 @@ private:
void resolution_changed ();
void three_d_changed ();
void standard_changed ();
- void signed_toggled ();
void encrypted_toggled ();
void edit_key_clicked ();
void audio_processor_changed ();
@@ -139,7 +138,6 @@ private:
wxChoice* _resolution;
wxStaticText* _standard_label;
wxChoice* _standard;
- wxCheckBox* _signed;
wxCheckBox* _encrypted;
wxStaticText* _key_label;
wxStaticText* _key;