+
+ Bind (wxEVT_TIMER, boost::bind(&JobViewDialog::periodic, this));
+ _timer.reset (new wxTimer(this));
+ _timer->Start (1000);
+
+ /* Start off with OK disabled and it will be enabled when the job is finished */
+ auto ok = dynamic_cast<wxButton *>(FindWindowById(wxID_OK, this));
+ if (ok) {
+ ok->Enable (false);
+ }