X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fnormal_job_view.cc;h=016fb225559b3d56175f011995f388252616e600;hb=92858c0cc30fed42119ac632988c8106155e1949;hp=22b3e1cc7e9ec07bc448eded42d82d15ad3f6d23;hpb=f5bc071ddac2355da1d116404cc37f4485e97699;p=dcpomatic.git diff --git a/src/wx/normal_job_view.cc b/src/wx/normal_job_view.cc index 22b3e1cc7..016fb2255 100644 --- a/src/wx/normal_job_view.cc +++ b/src/wx/normal_job_view.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2017 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,33 +18,42 @@ */ + +#include "dcpomatic_button.h" #include "normal_job_view.h" #include "lib/job.h" +#include +LIBDCP_DISABLE_WARNINGS #include +LIBDCP_ENABLE_WARNINGS + + +using std::shared_ptr; -using boost::shared_ptr; NormalJobView::NormalJobView (shared_ptr job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table) : JobView (job, parent, container, table) - , _pause (0) { } + void NormalJobView::finish_setup (wxWindow* parent, wxSizer* sizer) { - _pause = new wxButton (parent, wxID_ANY, _("Pause")); + _pause = new Button (parent, _("Pause")); _pause->Bind (wxEVT_BUTTON, boost::bind (&NormalJobView::pause_clicked, this)); sizer->Add (_pause, 1, wxALIGN_CENTER_VERTICAL); } int + NormalJobView::insert_position () const { return 0; } + void NormalJobView::pause_clicked () { @@ -57,6 +66,7 @@ NormalJobView::pause_clicked () } } + void NormalJobView::finished () {