wxBoxSizer* left = new wxBoxSizer (wxVERTICAL);
wxBoxSizer* right = new wxBoxSizer (wxVERTICAL);
- horizontal->Add (left, 1, wxEXPAND | wxRIGHT, DCPOMATIC_SIZER_X_GAP * 2);
+ horizontal->Add (left, 1, wxEXPAND | wxRIGHT, DCPOMATIC_SIZER_X_GAP * 4);
horizontal->Add (right, 1, wxEXPAND);
/* Font for sub-headings */
_output->name_format(),
name_values
);
- } else {
+ }
+
+ if (_output->email ()) {
JobManager::instance()->add (
shared_ptr<Job> (new SendKDMEmailJob (
CinemaKDMs::collect (screen_kdms),
_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
{
boost::filesystem::path directory () const;
bool write_to () const;
+ bool email () const;
dcp::Formulation formulation () const;
dcp::NameFormat name_format () const;
private:
wxChoice* _type;
NameFormatEditor* _filename_format;
- wxRadioButton* _write_to;
+ wxCheckBox* _write_to;
#ifdef DCPOMATIC_USE_OWN_PICKER
DirPickerCtrl* _folder;
#else
wxDirPickerCtrl* _folder;
#endif
- wxRadioButton* _email;
+ wxCheckBox* _email;
};