add_label_to_sizer (table, this, _("KDM type"), true);
_type = new wxChoice (this, wxID_ANY);
_type->Append ("Modified Transitional 1", ((void *) dcp::MODIFIED_TRANSITIONAL_1));
+ _type->Append ("Modified Transitional 1 (without AuthorizedDeviceInfo)", ((void *) dcp::MODIFIED_TRANSITIONAL_TEST));
if (!interop) {
_type->Append ("DCI Any", ((void *) dcp::DCI_ANY));
_type->Append ("DCI Specific", ((void *) dcp::DCI_SPECIFIC));
ex['s'] = "Screen 1";
ex['b'] = "2012/03/15 12:30";
ex['e'] = "2012/03/22 02:30";
- _filename_format = new NameFormatEditor<KDMNameFormat> (this, Config::instance()->kdm_filename_format(), titles, ex);
+ _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
_folder = new wxDirPickerCtrl (this, wxID_ANY, wxEmptyString, wxDirSelectorPromptStr, wxDefaultPosition, wxSize (300, -1));
#endif
- _folder->SetPath (wxStandardPaths::Get().GetDocumentsDir());
+ boost::optional<boost::filesystem::path> path = Config::instance()->default_kdm_directory ();
+ if (path) {
+ _folder->SetPath (std_to_wx (path->string ()));
+ } else {
+ _folder->SetPath (wxStandardPaths::Get().GetDocumentsDir());
+ }
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);
_write_to->SetValue (true);
- _write_to->Bind (wxEVT_COMMAND_RADIOBUTTON_SELECTED, boost::bind (&KDMOutputPanel::setup_sensitivity, this));
- _email->Bind (wxEVT_COMMAND_RADIOBUTTON_SELECTED, boost::bind (&KDMOutputPanel::setup_sensitivity, this));
+ _write_to->Bind (wxEVT_RADIOBUTTON, boost::bind (&KDMOutputPanel::setup_sensitivity, this));
+ _email->Bind (wxEVT_RADIOBUTTON, boost::bind (&KDMOutputPanel::setup_sensitivity, this));
SetSizer (table);
}
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 ();