diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-11-23 00:01:54 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-11-29 00:15:02 +0100 |
| commit | da822af56c5e4acab361b8531fb75a1dcb4b110e (patch) | |
| tree | d9a55547f801ef67e8091de7d878181f25a65d72 /src/wx/full_config_dialog.cc | |
| parent | 34435f5733bac96df052b62661a981d091787704 (diff) | |
Remove default container configuration option.
I think this is basically useless now that DoM guesses a good container
when the first video is added. It made more sense before we did that.
Diffstat (limited to 'src/wx/full_config_dialog.cc')
| -rw-r--r-- | src/wx/full_config_dialog.cc | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/wx/full_config_dialog.cc b/src/wx/full_config_dialog.cc index c688109c9..ba596162e 100644 --- a/src/wx/full_config_dialog.cc +++ b/src/wx/full_config_dialog.cc @@ -285,10 +285,6 @@ private: #endif table->Add (_directory, 1, wxEXPAND); - add_label_to_sizer (table, _panel, _("Default container"), true, 0, wxLEFT | wxRIGHT | wxALIGN_CENTRE_VERTICAL); - _container = new wxChoice (_panel, wxID_ANY); - table->Add (_container); - add_label_to_sizer (table, _panel, _("Default content type"), true, 0, wxLEFT | wxRIGHT | wxALIGN_CENTRE_VERTICAL); _dcp_content_type = new wxChoice (_panel, wxID_ANY); table->Add (_dcp_content_type); @@ -369,12 +365,6 @@ private: _use_isdcf_name_by_default->bind(&DefaultsPage::use_isdcf_name_by_default_changed, this); - for (auto i: Ratio::containers()) { - _container->Append (std_to_wx(i->container_nickname())); - } - - _container->Bind (wxEVT_CHOICE, boost::bind (&DefaultsPage::container_changed, this)); - for (auto i: DCPContentType::all()) { _dcp_content_type->Append (std_to_wx (i->pretty_name ())); } @@ -407,13 +397,6 @@ private: { auto config = Config::instance (); - auto containers = Ratio::containers (); - for (size_t i = 0; i < containers.size(); ++i) { - if (containers[i] == config->default_container()) { - _container->SetSelection (i); - } - } - auto const ct = DCPContentType::all (); for (size_t i = 0; i < ct.size(); ++i) { if (ct[i] == config->default_dcp_content_type()) { @@ -541,12 +524,6 @@ private: Config::instance()->set_default_still_length (_still_length->GetValue ()); } - void container_changed () - { - auto ratio = Ratio::containers (); - Config::instance()->set_default_container (ratio[_container->GetSelection()]); - } - void dcp_content_type_changed () { auto ct = DCPContentType::all (); @@ -591,7 +568,6 @@ private: wxSpinCtrl* _kdm_duration; wxChoice* _kdm_duration_unit; CheckBox* _use_isdcf_name_by_default; - wxChoice* _container; wxChoice* _dcp_content_type; wxChoice* _dcp_audio_channels; wxChoice* _standard; |
