_type->SetSelection (0);
{
- int flags = wxALIGN_TOP | wxTOP;
+ int flags = wxALIGN_TOP | wxTOP | wxLEFT | wxRIGHT;
wxString t = _("Filename format");
#ifdef __WXOSX__
flags |= wxALIGN_RIGHT;
table->Add (m, 0, flags, DCPOMATIC_SIZER_Y_GAP);
}
- _filename_format = new NameFormatEditor<KDMNameFormat> (this, Config::instance()->kdm_filename_format());
- 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);
+ 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 wxRadioButton (this, wxID_ANY, _("Write to"));
+ _write_to = new wxCheckBox (this, wxID_ANY, _("Write to"));
table->Add (_write_to, 1, wxEXPAND);
#ifdef DCPOMATIC_USE_OWN_PICKER
table->Add (_folder, 1, wxEXPAND);
- _email = new wxRadioButton (this, wxID_ANY, _("Send by email"));
+ _email = new wxCheckBox (this, wxID_ANY, _("Send by email"));
table->Add (_email, 1, wxEXPAND);
table->AddSpacer (0);
return _write_to->GetValue ();
}
+bool
+KDMOutputPanel::email () const
+{
+ return _email->GetValue ();
+}
+
dcp::Formulation
KDMOutputPanel::formulation () const
{
Config::instance()->set_kdm_filename_format (name_format ());
}
-KDMNameFormat
+dcp::NameFormat
KDMOutputPanel::name_format () const
{
return _filename_format->get ();