Support buttons.
[dcpomatic.git] / src / wx / kdm_output_panel.cc
index 694957ee8444e5a4aedfc2eeaf32b6e3573c80d6..bcaad33e4c3f4376c6f807d8d6c09bbe3a779f58 100644 (file)
@@ -28,6 +28,8 @@
 #include "wx_util.h"
 #include "kdm_advanced_dialog.h"
 #include "name_format_editor.h"
+#include "check_box.h"
+#include "dcpomatic_button.h"
 #include <dcp/exceptions.h>
 #include <dcp/types.h>
 #ifdef DCPOMATIC_USE_OWN_PICKER
@@ -65,7 +67,7 @@ KDMOutputPanel::KDMOutputPanel (wxWindow* parent, bool interop)
        }
        type->Add (_type, 1, wxEXPAND);
        _type->SetSelection (0);
-       wxButton* advanced = new wxButton (this, wxID_ANY, _("Advanced..."));
+       wxButton* advanced = new Button (this, _("Advanced..."));
        type->Add (advanced, 0, wxALIGN_CENTER_VERTICAL);
        table->Add (type, 1, wxEXPAND);
 
@@ -89,7 +91,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 wxCheckBox (this, wxID_ANY, _("Write to"));
+       _write_to = new CheckBox (this, _("Write to"));
        table->Add (_write_to, 1, wxEXPAND);
 
 #ifdef DCPOMATIC_USE_OWN_PICKER
@@ -117,7 +119,7 @@ KDMOutputPanel::KDMOutputPanel (wxWindow* parent, bool interop)
        table->AddSpacer (0);
        table->Add (write_options);
 
-       _email = new wxCheckBox (this, wxID_ANY, _("Send by email"));
+       _email = new CheckBox (this, _("Send by email"));
        table->Add (_email, 1, wxEXPAND);
        table->AddSpacer (0);