#include "lib/job_manager.h"
#include "lib/send_notification_email_job.h"
#include "lib/transcode_job.h"
-#include "lib/warnings.h"
-DCPOMATIC_DISABLE_WARNINGS
+#include <dcp/warnings.h>
+LIBDCP_DISABLE_WARNINGS
#include <wx/wx.h>
-DCPOMATIC_ENABLE_WARNINGS
+LIBDCP_ENABLE_WARNINGS
#include <boost/algorithm/string.hpp>
_controls = new wxBoxSizer (wxVERTICAL);
_controls->Add (_buttons);
_notify = new CheckBox (_container, _("Notify when complete"));
- _notify->Bind (wxEVT_CHECKBOX, bind (&JobView::notify_clicked, this));
+ _notify->bind(&JobView::notify_clicked, this);
_notify->SetValue (Config::instance()->default_notify());
_controls->Add (_notify, 0, wxTOP, DCPOMATIC_BUTTON_STACK_GAP);
}
if (_job->message()) {
- auto d = new MessageDialog (_parent, std_to_wx(_job->name()), std_to_wx(_job->message().get()));
- d->ShowModal ();
- d->Destroy ();
+ MessageDialog dialog(_parent, std_to_wx(_job->name()), std_to_wx(_job->message().get()));
+ dialog.ShowModal();
}
if (_job->enable_notify() && _notify->GetValue()) {