+ {
+ int flags = wxALIGN_TOP | wxTOP | wxLEFT;
+ wxString t = _("DCP filename format");
+#ifdef __WXOSX__
+ flags |= wxALIGN_RIGHT;
+ t += wxT (":");
+#endif
+ wxStaticText* m = new wxStaticText (_panel, wxID_ANY, t);
+ table->Add (m, 0, flags, DCPOMATIC_SIZER_Y_GAP);
+ }
+
+ _dcp_filename_format = new NameFormatEditor<dcp::FilenameFormat> (_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);
+ table->Add (_dcp_filename_format->panel(), 1, wxEXPAND | wxALL);
+