X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fkdm_output_panel.cc;h=4efb9fb27ab02fff695108d9be13ab829b3a5a76;hp=1d9e56f4bac48cf0cea67f19478c10b8ea8f9bef;hb=fbe2784c136fa1550815babfce89589f66b35a29;hpb=fe9d2a290682021cd12a00bf21fa4db3012e2049 diff --git a/src/wx/kdm_output_panel.cc b/src/wx/kdm_output_panel.cc index 1d9e56f4b..4efb9fb27 100644 --- a/src/wx/kdm_output_panel.cc +++ b/src/wx/kdm_output_panel.cc @@ -46,7 +46,7 @@ KDMOutputPanel::KDMOutputPanel (wxWindow* parent, bool interop) _type->SetSelection (0); { - int flags = wxALIGN_TOP | wxTOP | wxLEFT; + int flags = wxALIGN_TOP | wxTOP | wxLEFT | wxRIGHT; wxString t = _("Filename format"); #ifdef __WXOSX__ flags |= wxALIGN_RIGHT; @@ -56,14 +56,19 @@ KDMOutputPanel::KDMOutputPanel (wxWindow* parent, bool interop) table->Add (m, 0, flags, DCPOMATIC_SIZER_Y_GAP); } - _filename_format = new NameFormatEditor (this, Config::instance()->kdm_filename_format()); + 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["film_name"] = "Bambi"; - ex["cinema"] = "Lumière"; - ex["screen"] = "Screen 1"; - ex["from"] = "2012/03/15 12:30"; - ex["to"] = "2012/03/22 02:30"; - _filename_format->set_example (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); table->Add (_filename_format->panel(), 1, wxEXPAND); _write_to = new wxRadioButton (this, wxID_ANY, _("Write to"));