+ {
+ int flags = wxALIGN_TOP | wxTOP | wxLEFT | wxRIGHT;
+ wxString t = _("Filename format");
+#ifdef __WXOSX__
+ flags |= wxALIGN_RIGHT;
+ t += wxT (":");
+#endif
+ wxStaticText* m = new wxStaticText (this, wxID_ANY, t);
+ table->Add (m, 0, flags, DCPOMATIC_SIZER_Y_GAP);
+ }
+
+ dcp::NameFormat::Map titles;
+ titles['f'] = "film name";
+ titles['c'] = "cinema";
+ titles['s'] = "screen";
+ titles['b'] = "from date/time";
+ titles['e'] = "to date/time";
+ dcp::NameFormat::Map ex;
+ ex['f'] = "Bambi";
+ ex['c'] = "Lumière";
+ ex['s'] = "Screen 1";
+ ex['b'] = "2012/03/15 12:30";
+ ex['e'] = "2012/03/22 02:30";
+ _filename_format = new NameFormatEditor (this, Config::instance()->kdm_filename_format(), titles, ex, ".xml");
+ table->Add (_filename_format->panel(), 1, wxEXPAND);
+
+ _write_to = new wxCheckBox (this, wxID_ANY, _("Write to"));