X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwx%2Fjob_manager_view.h;h=fde9199ffb80d5890e0397a08e006d719a07c414;hb=b6c780d3107557d452c6612d715d01e2be52dbda;hp=b10446cdda4f7d215df9b152e3f3ab1cbfd879e6;hpb=977b36672892b14de4ecb68e98415c64946e8a93;p=dcpomatic.git diff --git a/src/wx/job_manager_view.h b/src/wx/job_manager_view.h index b10446cdd..fde9199ff 100644 --- a/src/wx/job_manager_view.h +++ b/src/wx/job_manager_view.h @@ -26,6 +26,7 @@ #include class Job; +class JobRecord; /** @class JobManagerView * @brief Class which is a wxPanel for showing the progress of jobs. @@ -35,18 +36,14 @@ class JobManagerView : public wxScrolledWindow public: JobManagerView (wxWindow *); - void update (); - private: - void periodic (wxTimerEvent &); + void job_added (boost::weak_ptr); + void periodic (); + void sized (wxSizeEvent &); - boost::shared_ptr _timer; wxPanel* _panel; wxFlexGridSizer* _table; - struct JobRecord { - wxGauge* gauge; - wxStaticText* message; - }; + boost::shared_ptr _timer; - std::map, JobRecord> _job_records; + std::list > _job_records; };