X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwx%2Fconfig_dialog.cc;h=a68f4576dc69f50a5955f64ed1e94bdf8c8383fd;hb=fbe2784c136fa1550815babfce89589f66b35a29;hp=c82956c608a2cf1ad86c85434ad58034c76a956b;hpb=fe9d2a290682021cd12a00bf21fa4db3012e2049;p=dcpomatic.git diff --git a/src/wx/config_dialog.cc b/src/wx/config_dialog.cc index c82956c60..a68f4576d 100644 --- a/src/wx/config_dialog.cc +++ b/src/wx/config_dialog.cc @@ -1410,11 +1410,13 @@ private: table->Add (m, 0, flags, DCPOMATIC_SIZER_Y_GAP); } - _dcp_filename_format = new NameFormatEditor (_panel, Config::instance()->dcp_filename_format()); - dcp::NameFormat::Map example; - example["type"] = "j2c"; - example["id"] = "eb1c112c-ca3c-4ae6-9263-c6714ff05d64"; - _dcp_filename_format->set_example (example); + dcp::NameFormat::Map titles; + titles['t'] = "type (j2c/pcm/sub/cpl/pkl)"; + titles['i'] = "unique ID"; + dcp::NameFormat::Map examples; + examples['t'] = "j2c"; + examples['i'] = "eb1c112c-ca3c-4ae6-9263-c6714ff05d64"; + _dcp_filename_format = new NameFormatEditor (_panel, Config::instance()->dcp_filename_format(), titles, examples); table->Add (_dcp_filename_format->panel(), 1, wxEXPAND | wxALL); #ifdef __WXOSX__