summaryrefslogtreecommitdiff
path: root/src/wx/kdm_output_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-17 00:21:26 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-17 00:21:26 +0100
commit55861a0b4ad4270f80b8d1ae10230cf2ebb25735 (patch)
treebc637b891ffce5070ee6b807796d0e7e839bc8fa /src/wx/kdm_output_panel.cc
parentfdcce9bdc44b246151ffe1aa6250f456e41d9c3d (diff)
Make KDM output options checkboxes rather than radios (part of #848).
Diffstat (limited to 'src/wx/kdm_output_panel.cc')
-rw-r--r--src/wx/kdm_output_panel.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/wx/kdm_output_panel.cc b/src/wx/kdm_output_panel.cc
index 4130e4938..88ead96e2 100644
--- a/src/wx/kdm_output_panel.cc
+++ b/src/wx/kdm_output_panel.cc
@@ -71,7 +71,7 @@ KDMOutputPanel::KDMOutputPanel (wxWindow* parent, bool interop)
_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
@@ -84,7 +84,7 @@ KDMOutputPanel::KDMOutputPanel (wxWindow* parent, bool interop)
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);
@@ -114,6 +114,12 @@ KDMOutputPanel::write_to () const
return _write_to->GetValue ();
}
+bool
+KDMOutputPanel::email () const
+{
+ return _email->GetValue ();
+}
+
dcp::Formulation
KDMOutputPanel::formulation () const
{