diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-24 21:19:00 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-24 21:19:00 +0200 |
| commit | 8725797deff8fb6056336d5df5ec895b9df38063 (patch) | |
| tree | ba1f3c9fb42b095f7d19a46f25c0931b66c867d4 /src/wx | |
| parent | 294aaa315a46ba782f30454d8460a5dc02de31d6 (diff) | |
more
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/dcp_panel.cc | 53 | ||||
| -rw-r--r-- | src/wx/dcp_panel.h | 2 | ||||
| -rw-r--r-- | src/wx/film_editor.cc | 7 | ||||
| -rw-r--r-- | src/wx/film_editor.h | 1 |
4 files changed, 0 insertions, 63 deletions
diff --git a/src/wx/dcp_panel.cc b/src/wx/dcp_panel.cc index 8a3e57304..2ce2813d4 100644 --- a/src/wx/dcp_panel.cc +++ b/src/wx/dcp_panel.cc @@ -125,9 +125,6 @@ DCPPanel::DCPPanel (wxNotebook* n, shared_ptr<Film> film, weak_ptr<FilmViewer> v _notebook = new wxNotebook (_panel, wxID_ANY); _sizer->Add (_notebook, 1, wxEXPAND | wxTOP, 6); - _notebook->AddPage (make_video_panel (), _("Video"), false); - _notebook->AddPage (make_audio_panel (), _("Audio"), false); - _name->Bind (wxEVT_TEXT, boost::bind(&DCPPanel::name_changed, this)); _use_isdcf_name->Bind (wxEVT_CHECKBOX, boost::bind(&DCPPanel::use_isdcf_name_toggled, this)); _copy_isdcf_name_button->Bind(wxEVT_BUTTON, boost::bind(&DCPPanel::copy_isdcf_name_button_clicked, this)); @@ -468,7 +465,6 @@ DCPPanel::film_changed (Film::Property p) break; case Film::Property::CONTENT: setup_dcp_name (); - setup_sensitivity (); break; case Film::Property::AUDIO_LANGUAGE: { @@ -476,7 +472,6 @@ DCPPanel::film_changed (Film::Property p) checked_set (_enable_audio_language, static_cast<bool>(al)); checked_set (_audio_language, al ? std_to_wx(al->to_string()) : wxT("")); setup_dcp_name (); - setup_sensitivity (); break; } case Film::Property::AUDIO_FRAME_RATE: @@ -520,7 +515,6 @@ DCPPanel::film_content_changed (int property) property == DCPContentProperty::REFERENCE_AUDIO || property == DCPContentProperty::REFERENCE_TEXT) { setup_dcp_name (); - setup_sensitivity (); } } @@ -639,54 +633,8 @@ void DCPPanel::set_general_sensitivity (bool s) { _generally_sensitive = s; - setup_sensitivity (); -} - - -void -DCPPanel::setup_sensitivity () -{ - _name->Enable (_generally_sensitive); - _use_isdcf_name->Enable (_generally_sensitive); - _dcp_content_type->Enable (_generally_sensitive); - _copy_isdcf_name_button->Enable (_generally_sensitive); - _enable_audio_language->Enable (_generally_sensitive); - _audio_language->Enable (_enable_audio_language->GetValue()); - _edit_audio_language->Enable (_enable_audio_language->GetValue()); - _encrypted->Enable (_generally_sensitive); - _reel_type->Enable (_generally_sensitive && _film && !_film->references_dcp_video() && !_film->references_dcp_audio()); - _reel_length->Enable (_generally_sensitive && _film && _film->reel_type() == ReelType::BY_LENGTH); - _markers->Enable (_generally_sensitive && _film && !_film->interop()); - _metadata->Enable (_generally_sensitive); - _frame_rate_choice->Enable (_generally_sensitive && _film && !_film->references_dcp_video() && !_film->contains_atmos_content()); - _frame_rate_spin->Enable (_generally_sensitive && _film && !_film->references_dcp_video() && !_film->contains_atmos_content()); - _audio_channels->Enable (_generally_sensitive && _film && !_film->references_dcp_audio() && !_film->contains_atmos_content()); - _audio_processor->Enable (_generally_sensitive && _film && !_film->references_dcp_audio()); - _j2k_bandwidth->Enable (_generally_sensitive && _film && !_film->references_dcp_video()); - _container->Enable (_generally_sensitive && _film && !_film->references_dcp_video()); - _best_frame_rate->Enable ( - _generally_sensitive && - _film && - _film->best_video_frame_rate () != _film->video_frame_rate() && - !_film->references_dcp_video() && - !_film->contains_atmos_content() - ); - _resolution->Enable (_generally_sensitive && _film && !_film->references_dcp_video()); - _three_d->Enable (_generally_sensitive && _film && !_film->references_dcp_video()); - - _standard->Enable ( - _generally_sensitive && - _film && - !_film->references_dcp_video() && - !_film->references_dcp_audio() && - !_film->contains_atmos_content() - ); - - _reencode_j2k->Enable (_generally_sensitive && _film); - _show_audio->Enable (_generally_sensitive && _film); } - void DCPPanel::use_isdcf_name_toggled () { @@ -1024,7 +972,6 @@ DCPPanel::add_audio_processors () void DCPPanel::enable_audio_language_toggled () { - setup_sensitivity (); if (_enable_audio_language->GetValue()) { auto al = wx_to_std (_audio_language->GetLabel()); _film->set_audio_language (al.empty() ? dcp::LanguageTag("en-US") : dcp::LanguageTag(al)); diff --git a/src/wx/dcp_panel.h b/src/wx/dcp_panel.h index 37bc20aa3..7fb997012 100644 --- a/src/wx/dcp_panel.h +++ b/src/wx/dcp_panel.h @@ -106,8 +106,6 @@ private: void config_changed (Config::Property p); - void setup_sensitivity (); - wxPanel* _panel; wxNotebook* _notebook; wxBoxSizer* _sizer; diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index 2ec174260..be14c3060 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -25,7 +25,6 @@ #include "content_panel.h" -#include "dcp_panel.h" #include "film_editor.h" #include "wx_util.h" #include "lib/content.h" @@ -59,8 +58,6 @@ FilmEditor::FilmEditor (wxWindow* parent, weak_ptr<FilmViewer> viewer) _content_panel = new ContentPanel (_main_notebook, _film, viewer); _main_notebook->AddPage (_content_panel->window(), _("Content"), true); - _dcp_panel = new DCPPanel (_main_notebook, _film, viewer); - _main_notebook->AddPage (_dcp_panel->panel (), _("DCP"), false); JobManager::instance()->ActiveJobsChanged.connect ( bind(&FilmEditor::active_jobs_changed, this, _2) @@ -89,7 +86,6 @@ FilmEditor::film_change (ChangeType type, Film::Property p) } _content_panel->film_changed (p); - _dcp_panel->film_changed (p); if (p == Film::Property::CONTENT && !_film->content().empty()) { /* Select newly-added content */ @@ -115,7 +111,6 @@ FilmEditor::film_content_change (ChangeType type, int property) } _content_panel->film_content_changed (property); - _dcp_panel->film_content_changed (property); } @@ -132,7 +127,6 @@ FilmEditor::set_film (shared_ptr<Film> film) _film = film; _content_panel->set_film (_film); - _dcp_panel->set_film (_film); if (!_film) { return; @@ -151,7 +145,6 @@ void FilmEditor::set_general_sensitivity (bool s) { _content_panel->set_general_sensitivity (s); - _dcp_panel->set_general_sensitivity (s); } diff --git a/src/wx/film_editor.h b/src/wx/film_editor.h index 0ba021b62..9aae1facf 100644 --- a/src/wx/film_editor.h +++ b/src/wx/film_editor.h @@ -73,7 +73,6 @@ private: wxNotebook* _main_notebook; ContentPanel* _content_panel; - DCPPanel* _dcp_panel; /** The film we are editing */ std::shared_ptr<Film> _film; |
