- wxStaticText* m = new wxStaticText (parent, wxID_ANY, text);
- table->Add (m, 0, flags, DCPOMATIC_SIZER_Y_GAP);
- }
-
- void setup ()
- {
- wxFlexGridSizer* table = new wxFlexGridSizer (2, DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP);
- table->AddGrowableCol (1, 1);
- _panel->GetSizer()->Add (table, 1, wxALL | wxEXPAND, _border);
-
- {
- add_label_to_sizer (table, _panel, _("Maximum JPEG2000 bandwidth"), true);
- wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL);
- _maximum_j2k_bandwidth = new wxSpinCtrl (_panel);
- s->Add (_maximum_j2k_bandwidth, 1);
- add_label_to_sizer (s, _panel, _("Mbit/s"), false);
- table->Add (s, 1);
- }
-
- _allow_any_dcp_frame_rate = new wxCheckBox (_panel, wxID_ANY, _("Allow any DCP frame rate"));
- table->Add (_allow_any_dcp_frame_rate, 1, wxEXPAND | wxALL);
- table->AddSpacer (0);
-
- _only_servers_encode = new wxCheckBox (_panel, wxID_ANY, _("Only servers encode"));
- table->Add (_only_servers_encode, 1, wxEXPAND | wxALL);
- table->AddSpacer (0);
-
- {
- add_top_aligned_label_to_sizer (table, _panel, _("DCP metadata filename format"));
- dcp::NameFormat::Map titles;
- titles['t'] = "type (cpl/pkl)";
- dcp::NameFormat::Map examples;
- examples['t'] = "cpl";
- _dcp_metadata_filename_format = new NameFormatEditor (
- _panel, Config::instance()->dcp_metadata_filename_format(), titles, examples, "_eb1c112c-ca3c-4ae6-9263-c6714ff05d64.xml"
- );
- table->Add (_dcp_metadata_filename_format->panel(), 1, wxEXPAND | wxALL);
- }
-
- {
- add_top_aligned_label_to_sizer (table, _panel, _("DCP asset filename format"));
- dcp::NameFormat::Map titles;
- titles['t'] = "type (j2c/pcm/sub)";
- titles['r'] = "reel number";
- titles['n'] = "number of reels";
- titles['c'] = "content filename";
- dcp::NameFormat::Map examples;
- examples['t'] = "j2c";
- examples['r'] = "1";
- examples['n'] = "4";
- examples['c'] = "myfile.mp4";
- _dcp_asset_filename_format = new NameFormatEditor (
- _panel, Config::instance()->dcp_asset_filename_format(), titles, examples, "_eb1c112c-ca3c-4ae6-9263-c6714ff05d64.mxf"
- );
- table->Add (_dcp_asset_filename_format->panel(), 1, wxEXPAND | wxALL);
- }
-
- {
- add_top_aligned_label_to_sizer (table, _panel, _("Log"));
- wxBoxSizer* t = new wxBoxSizer (wxVERTICAL);
- _log_general = new wxCheckBox (_panel, wxID_ANY, _("General"));
- t->Add (_log_general, 1, wxEXPAND | wxALL);
- _log_warning = new wxCheckBox (_panel, wxID_ANY, _("Warnings"));
- t->Add (_log_warning, 1, wxEXPAND | wxALL);
- _log_error = new wxCheckBox (_panel, wxID_ANY, _("Errors"));
- t->Add (_log_error, 1, wxEXPAND | wxALL);
- /// TRANSLATORS: translate the word "Timing" here; do not include the "Config|" prefix
- _log_timing = new wxCheckBox (_panel, wxID_ANY, S_("Config|Timing"));
- t->Add (_log_timing, 1, wxEXPAND | wxALL);
- _log_debug_decode = new wxCheckBox (_panel, wxID_ANY, _("Debug: decode"));
- t->Add (_log_debug_decode, 1, wxEXPAND | wxALL);
- _log_debug_encode = new wxCheckBox (_panel, wxID_ANY, _("Debug: encode"));
- t->Add (_log_debug_encode, 1, wxEXPAND | wxALL);
- _log_debug_email = new wxCheckBox (_panel, wxID_ANY, _("Debug: email sending"));
- t->Add (_log_debug_email, 1, wxEXPAND | wxALL);
- table->Add (t, 0, wxALL, 6);
- }