/* [XML:opt] Language Language to use in the GUI e.g. <code>fr_FR</code>. */
cxml::add_text_child(root, "Language", _language.get());
}
- if (_default_dcp_content_type) {
- /* [XML:opt] DefaultDCPContentType Default content type to use when creating new films (<code>FTR</code>, <code>SHR</code>,
- <code>TLR</code>, <code>TST</code>, <code>XSN</code>, <code>RTG</code>, <code>TSR</code>, <code>POL</code>,
- <code>PSA</code> or <code>ADV</code>). */
- cxml::add_text_child(root, "DefaultDCPContentType", _default_dcp_content_type->isdcf_name());
- }
/* [XML] DefaultDCPAudioChannels Default number of audio channels to use when creating new films. */
cxml::add_text_child(root, "DefaultDCPAudioChannels", raw_convert<string>(_default_dcp_audio_channels));
/* [XML] DCPIssuer Issuer text to write into CPL files. */
#include "wx_variant.h"
#include "lib/config.h"
#include "lib/cross.h"
-#include "lib/dcp_content_type.h"
#include "lib/email.h"
#include "lib/exceptions.h"
#include "lib/filter.h"
#endif
table->Add (_directory, 1, wxEXPAND);
- 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);
-
add_label_to_sizer (table, _panel, _("Default DCP audio channels"), true, 0, wxLEFT | wxRIGHT | wxALIGN_CENTRE_VERTICAL);
_dcp_audio_channels = new wxChoice (_panel, wxID_ANY);
table->Add (_dcp_audio_channels);
_use_isdcf_name_by_default->bind(&DefaultsPage::use_isdcf_name_by_default_changed, this);
- for (auto i: DCPContentType::all()) {
- _dcp_content_type->Append (std_to_wx (i->pretty_name ()));
- }
-
setup_audio_channels_choice (_dcp_audio_channels, 2);
- _dcp_content_type->Bind (wxEVT_CHOICE, boost::bind (&DefaultsPage::dcp_content_type_changed, this));
_dcp_audio_channels->Bind (wxEVT_CHOICE, boost::bind (&DefaultsPage::dcp_audio_channels_changed, this));
_j2k_video_bit_rate->SetRange(50, 250);
void config_changed () override
{
auto config = Config::instance ();
-
- auto const ct = DCPContentType::all ();
- for (size_t i = 0; i < ct.size(); ++i) {
- if (ct[i] == config->default_dcp_content_type()) {
- _dcp_content_type->SetSelection (i);
- }
- }
-
checked_set (_still_length, config->default_still_length ());
_directory->SetPath (std_to_wx (config->default_directory_or (wx_to_std (wxStandardPaths::Get().GetDocumentsDir())).string ()));
_kdm_directory->SetPath (std_to_wx (config->default_kdm_directory_or (wx_to_std (wxStandardPaths::Get().GetDocumentsDir())).string ()));
Config::instance()->set_default_still_length (_still_length->GetValue ());
}
- void dcp_content_type_changed ()
- {
- auto ct = DCPContentType::all ();
- Config::instance()->set_default_dcp_content_type (ct[_dcp_content_type->GetSelection()]);
- }
-
void standard_changed ()
{
Config::instance()->set_default_interop (_standard->GetSelection() == 1);
wxSpinCtrl* _kdm_duration;
wxChoice* _kdm_duration_unit;
CheckBox* _use_isdcf_name_by_default;
- wxChoice* _dcp_content_type;
wxChoice* _dcp_audio_channels;
wxChoice* _standard;
CheckBox* _enable_audio_language;
Config::instance()->set_master_encoding_threads (boost::thread::hardware_concurrency() / 2);
Config::instance()->set_server_encoding_threads (1);
Config::instance()->set_server_port_base (61921);
- Config::instance()->set_default_dcp_content_type (static_cast<DCPContentType*> (0));
Config::instance()->set_default_audio_delay (0);
Config::instance()->set_default_video_bit_rate(VideoEncoding::JPEG2000, 100000000);
Config::instance()->set_default_interop (false);